# List sales lines (/api-reference/sales/listSales)

## GET https://api.ajour.dk/v1/sales

Every receipt line, for when you build your own figures or copy data to a data warehouse. Lines with the same `receiptNumber` and `locationId` make one receipt. These are the lines the dashboard counts, so the sum of `amountInclVat` matches `totalTurnover` of the summary. `vat` has no effect here; each line has both amounts. Sorted by date, then id. For a nightly copy, store the newest `syncedAt` you have and pass it as `syncedSince` next time. The period can be at most 92 days. Requires scope `sales:read`.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `from` | query | string (date) | yes | First day of the period, as a local date in Europe/Copenhagen. |
| `to` | query | string (date) | yes | Last day of the period, included. Local date in Europe/Copenhagen. |
| `locationId` | query | array of integer (int32) | no | Only these locations. Repeat the parameter for more than one. Must be locations the key can see. Leave out for all of them. |
| `productGroupId` | query | string | no | Only this product group (POS number). |
| `productId` | query | array of string | no | Only these products (POS numbers). Repeat the parameter for more than one. |
| `orderType` | query | array of `pos`, `online`, `invoice` | no | Only these order types. Repeat the parameter for more than one. |
| `salesperson` | query | string | no | Only this salesperson, by name as on the register. |
| `vat` | query | `include`, `exclude` | no | Show money amounts including or excluding VAT. |
| `syncedSince` | query | string (date-time) | no | Only lines uploaded to Ajour after this time. |
| `limit` | query | integer (int32) | no | Items per page. |
| `cursor` | query | string | no | The `nextCursor` value from the previous page. |

### Responses

- `200`: OK
- `400`: A parameter has the wrong format, or an unknown value.
- `401`: The API key is missing, wrong or revoked.
- `403`: The key is valid but does not have the scope this call needs, or the company is not active.
- `404`: The item does not exist, or it is a location the key cannot see.
- `422`: The parameters have the right format but are not allowed together.
- `429`: Too many requests for this key. Wait for `Retry-After` seconds.

Example `200` response:

```json
{
  "data": [
    {
      "id": "88213904",
      "locationId": 1031,
      "date": "2026-11-21T08:14:52+01:00",
      "receiptNumber": 204511,
      "orderType": "pos",
      "lineType": "product",
      "product": {
        "id": "1001",
        "name": "Cappuccino"
      },
      "productGroupId": "10",
      "quantity": 2,
      "unitPrice": 42,
      "discount": 0,
      "amountInclVat": 84,
      "amountExclVat": 67.2,
      "isReturn": false,
      "salesperson": "Anna",
      "syncedAt": "2026-11-21T08:20:03Z"
    }
  ],
  "nextCursor": "NjM5MzA4NDIwOTIwMDAwMDAwLjg4MjEzOTA0"
}
```