v1

latestOpenAPI 3.0.0Cabify Api support2026-07-264588127.9 KB
Sales

Fetch client's sales paginated

Get sales paginated

get/api/v4/sales

Query parameters

fromstring date required

Start date

tostring date required

End date

currency'EUR' | 'CLP' | 'PEN' | 'MXN' | 'COP' | 'USD' | 'BRL' | 'ARS' required

Currency of the sale

pageinteger required

Number of page to fetch

perinteger required

Amount of sales per page

Response

Success

pageinteger

Number of page to fetch.

pagesinteger

Total amount of pages.

perinteger

Amount of sales by page.

totalinteger

Amount total of users obtained in all the pages.

Example response

{
  "data": [
    {
      "code": "ESP22AX002004",
      "concept": {
        "type": "journey",
        "type_object": {
          "charge_code": "P004",
          "country": "ES",
          "description": "2022-02-17. Sol, Madrid. P004",
          "end_at": "2022-02-17T09:31:27.028Z",
          "id": "41f11290-8fd4-11ec-879a-acde48001122",
          "region": "madrid",
          "start_at": "2022-02-17T09:30:34.831Z"
        }
      },
      "currency": "EUR",
      "invoice_date": "2022-02-21",
      "price_details": {
        "discount": 0,
        "tax_rate": 0,
        "tax_type": "iva",
        "total": 0
      }
    }
  ],
  "page": 1,
  "pages": 1,
  "per": 25,
  "total": 3
}