---
title: "Fetch client's sales paginated"
method: GET
path: "/api/v4/sales"
tags: ["Sales"]
---

# Fetch client's sales paginated

`GET /api/v4/sales`

Get sales paginated

## Query parameters

- `from` string, date, required
- `to` string, date, required
- `currency` 'EUR' | 'CLP' | 'PEN' | 'MXN' | 'COP' | 'USD' | 'BRL' | 'ARS', required
- `page` integer, required
- `per` integer, required

## Response `200`

Success

- Expense
  - `data` Sale[] — List of sales
    - `code` string — Code of the Sale.
    - `concept` Concept — Prices of the Sale detailed.
      - `type` string — Type of the element being sold.
      - `type_object` union
        - object — Entity description in a Sale.
          - `charge_code` string — Charge code of the Journey of the Sale.
          - `country` string — Country of the Journey of the Sale.
          - `description` string — The Description includes the detail of the Journey associated to the Sale.
          - `dropoff` StopResponse — Stop of a journey. A journey needs to have at least 2 stops: the first one is considered the pickup point the last one the destination.
            - `addr` string — If an address was provided when creating the journey this field will have its value.
            - `city` string — City name where the address is located, e.g. Madrid.
            - `contact` Contact — Contact details on each Stop. Include this object if you want the Driver to see additional Contact details on each Stop.
              - …
            - `contacts` Contact[] — List of contacts for the stop, in case of multiple contacts.
              - …
            - `country` string — Country name where the address is located, e.g. España.
            - `hit_at` string, date-time — DateTime when the driver arrived at the indicated point.
            - `id` string — Id of the stop.
            - `instr` string — Set of instructions for the Driver.
            - `loc` number[], required — The actual coordinates of the address. Required floats per location latitude and longitude.
            - `meeting_point` MeetingPoint — A specific meeting point within a hub location (e.g. a terminal at an airport). Obtained from the hub data returned in the estimates response.
              - …
            - `name` string — A short name for previously stored addresses. These can be viewed in places.
            - `num` string — Street number.
            - `postal_code` string — Postal code of the address.
          - `end_at` string, date-time — DateTime when the Journey ended.
          - `id` string — ID of the Journey of the Sale.
          - `pickup` StopResponse — Stop of a journey. A journey needs to have at least 2 stops: the first one is considered the pickup point the last one the destination.
            - `addr` string — If an address was provided when creating the journey this field will have its value.
            - `city` string — City name where the address is located, e.g. Madrid.
            - `contact` Contact — Contact details on each Stop. Include this object if you want the Driver to see additional Contact details on each Stop.
              - …
            - `contacts` Contact[] — List of contacts for the stop, in case of multiple contacts.
              - …
            - `country` string — Country name where the address is located, e.g. España.
            - `hit_at` string, date-time — DateTime when the driver arrived at the indicated point.
            - `id` string — Id of the stop.
            - `instr` string — Set of instructions for the Driver.
            - `loc` number[], required — The actual coordinates of the address. Required floats per location latitude and longitude.
            - `meeting_point` MeetingPoint — A specific meeting point within a hub location (e.g. a terminal at an airport). Obtained from the hub data returned in the estimates response.
              - …
            - `name` string — A short name for previously stored addresses. These can be viewed in places.
            - `num` string — Street number.
            - `postal_code` string — Postal code of the address.
          - `region` string — Region where the Journey happened.
          - `start_at` string, date-time — DateTime when the Journey started.
        - object
          - `description` string — Description usually indicating the reason of the Rectification.
          - `rectified_sale_id` string — ID of the Sale which was rectified.
    - `currency` string — Currency of the Sale.
    - `invoice_date` string, date — Date of the Invoice of the Sale.
    - `price_details` PriceDetail
      - `discount` integer — Total discount in cents with taxes.
      - `tax_rate` integer — Tax Rate.
      - `tax_type` string — Tax Type. Usually is 'iva_av'.
      - `total` integer — Total amount in cents with taxes.
  - `page` integer — Number of page to fetch.
  - `pages` integer — Total amount of pages.
  - `per` integer — Amount of sales by page.
  - `total` integer — Amount total of users obtained in all the pages.

## Other responses

- `400` — Bad request
- `401` — Unauthorized
- `500` — Internal server error

---

[API](https://skmtc.dev/cabify/apis/ride-hailing-api.md) · [All operations](https://skmtc.dev/cabify/apis/ride-hailing-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/cabify/ride-hailing-api/revisions/8da1cb1270df/schema)
