# Get order details list

`GET /api/v1/Outlets/{outletId}/Orders/DetailedList`

Core API · Orders · base URL `https://core-api.ancon.io` · auth: `Access-Token` header · docs: https://ancon.dev/api/core/orders/get-order-details-list

### Fetching only new and changed orders
Poll with `filter[modified]=gte:<timestamp>` (UTC, ISO 8601), where the timestamp is the time you started the previous poll minus a minute of overlap. This returns only the orders created or changed since then instead of re-reading the whole day. Because of the overlap an order can be returned more than once, so match orders on `id`.

`modified` is the time the order itself was last saved. It changes when the order is created, refunded (the refund is a new order with `parentOrderId`, and the original order is updated too), and when its status, pre-order status or invoice handling status changes. A refund payment result that arrives after the refund (for example from a card terminal) may not change `modified`. The nightly accounting run that publishes the day's voucher basis also updates every order of that day, so each order is returned once more after the day is closed. Kitchen ticket progress is not part of the order and does not change `modified`.

### Available filter properties
- created (datetime)
- modified (datetime)
- order.id (guid)
- orderformat (enum flags)
- customer.id (nullable guid)
- customer.name (string)
- customer.email (string)
- customer.phone (string)
- company.id (guid)
- company.name (string)
- company.email" (string)
- status (enum)
- refundedat (datetime)
- totalamount (decimal)
- totalcurreny (string)
- totalamountplustip (decimal)
- taxamount (decimal)
- subtotalincltaxamount (decimal)
- subtotalexcltaxamount (decimal)
- subtotaldiscountincltaxamount (decimal)
- subtotaldiscountexcltaxamount (decimal)
- feeamountincltaxamount (decimal)
- feeamountexcltaxamount (decimal)
- discount.id (nullable guid)
- discount.name (string)
- discount.type (enum)
- discount.value (decimal)
- fromtype (enum)
- saleslocation.id (guid)
- saleslocation.type (enum)
- source (string)
- createdchecktenantuserid (nullable guid)
- closedchecktenantuserid (nullable guid)
- createdcheckclientid (nullable guid)
- closedcheckclientid (nullable guid)
- ticktedat (nullable datetime)
- ticketdoneat (nullable datetime)
- capturedat (nullable datetime)
- preparationtime (nullable timespan)
- checkoutservicetime.kind (enum)
- checkoutservicetime.time (datetime)
- customname (string)
- payment.ourreference (guid)
- payment.externalreference (string)
- payment.externalidentifier (string)
- payment.name (string)
- payment.type (enum)
- payment.terminalid (nullable guid)
- payment.clientid (nullable guid)
- payment.tenantuserid (nullable guid)
- payment.invoicereferencenote (string)
- payment.amount (decimal)
- payment.currency (string)
- payment.tipamount (decimal)
- payment.tipcurrency (string)
- payment.cashback (decimal)
- payment.cashbackcurrency (string)
- payment.rounding (decimal)
- payment.roundingcurrency (string)
- payment.status (enum)
- ordernumber (long)
- referencenumber (long)
- ticketnumber (long)
- serialnumber (long)
- refundserialnumber (long)

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `outletId` | string (uuid) | yes |  |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `Offset` | integer (int32) | no | Offset the result, defaults to 0 |
| `Limit` | integer (int32) | no | Limits how many items to get, defaults to 100 min 0, max 1000. |
| `Order` | string | no | Order the result. |
| `Search` | string | no |  |
| `Filter` | map<string, array<string>> | no | Filter the result. Filter[created]=gte:2022-01-02 12:00:00&Filter[created]=lte:2022-08-03 22:00:00 |

## Header parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `correlationId` | string | no | Correlation Id for the request |

## Responses

| Status | Description |
| --- | --- |
| 200 | OK |
| 401 | Unauthorized |
| 404 | Not Found |
| 429 | Too Many Requests |

### 200 response (`application/json`)

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `items` | array<object> or null | no |  |
| `items[].id` | string (uuid) | no |  |
| `items[].created` | string (date-time) | no |  |
| `items[].orderFormats` | integer (int32) | no | Allowed values: `0`, `1`, `2`, `4`, `8`, `16`, `32`, `64`, `128`, `159`, `191`. |
| `items[].status` | integer (int32) | no | Allowed values: `0`, `1`, `2`, `3`. |
| `items[].refundedAt` | string (date-time) or null | no |  |
| `items[].customer` | object or null | no |  |
| `items[].customer.email` | string or null | no |  |
| `items[].customer.customerId` | string (uuid) or null | no |  |
| `items[].customer.name` | string or null | no |  |
| `items[].customer.phone` | string or null | no |  |
| `items[].customer.address` | object or null | no |  |
| `items[].customer.address.street` | string or null | no |  |
| `items[].customer.address.zipCode` | string or null | no |  |
| `items[].customer.address.city` | string or null | no |  |
| `items[].customer.address.state` | string or null | no |  |
| `items[].customer.address.country` | string or null | no |  |
| `items[].customer.address.location` | object or null | no |  |
| `items[].customer.address.location.latitude` | number (double) | no |  |
| `items[].customer.address.location.longitude` | number (double) | no |  |
| `items[].delivery` | object or null | no |  |
| `items[].delivery.address` | object or null | no |  |
| `items[].delivery.address.street` | string or null | no |  |
| `items[].delivery.address.zipCode` | string or null | no |  |
| `items[].delivery.address.city` | string or null | no |  |
| `items[].delivery.address.state` | string or null | no |  |
| `items[].delivery.address.country` | string or null | no |  |
| `items[].delivery.address.location` | object or null | no |  |
| `items[].delivery.address.location.latitude` | number (double) | no |  |
| `items[].delivery.address.location.longitude` | number (double) | no |  |
| `items[].delivery.phone` | string or null | no |  |
| `items[].delivery.recipient` | string or null | no |  |
| `items[].totalAmount` | object or null | no | Order total (include tax) This amount includes modifications. This amount includes fees. This amount is calculated from SubtotalInclTax + FeeAmountInclTax This amount is what must be paid or refunded to complete the order. |
| `items[].totalAmount.amount` | number (double) | no |  |
| `items[].totalAmount.currency` | string or null | no |  |
| `items[].taxAmount` | object or null | no | Order total tax. |
| `items[].taxAmount.amount` | number (double) | no |  |
| `items[].taxAmount.currency` | string or null | no |  |
| `items[].subtotalInclTax` | object or null | no | Order sub total (include tax). This amount is calculated from OrderItem.TotalPriceInclTax |
| `items[].subtotalInclTax.amount` | number (double) | no |  |
| `items[].subtotalInclTax.currency` | string or null | no |  |
| `items[].subtotalExclTax` | object or null | no | Order sub total (exclude tax). This amount is calculated from OrderItem.TotalPriceExclTax |
| `items[].subtotalExclTax.amount` | number (double) | no |  |
| `items[].subtotalExclTax.currency` | string or null | no |  |
| `items[].subTotalDiscountInclTax` | object or null | no | Gets the order subtotal discount (include tax) This amount is calculated from OrderItem.DiscountAmountInclTax |
| `items[].subTotalDiscountInclTax.amount` | number (double) | no |  |
| `items[].subTotalDiscountInclTax.currency` | string or null | no |  |
| `items[].subTotalDiscountExclTax` | object or null | no | Gets the order subtotal discount (exclude tax) This amount is calculated from OrderItem.DiscountAmountExclTax |
| `items[].subTotalDiscountExclTax.amount` | number (double) | no |  |
| `items[].subTotalDiscountExclTax.currency` | string or null | no |  |
| `items[].feeAmountInclTax` | object or null | no | Gets the total fee amount (include tax) This amount is calculated from OrderFee.AmountInclTax |
| `items[].feeAmountInclTax.amount` | number (double) | no |  |
| `items[].feeAmountInclTax.currency` | string or null | no |  |
| `items[].feeAmountExclTax` | object or null | no | Gets the total fee amount (exclude tax) This amount is calculated from OrderFee.AmountExclTax |
| `items[].feeAmountExclTax.amount` | number (double) | no |  |
| `items[].feeAmountExclTax.currency` | string or null | no |  |
| `items[].discount` | object or null | no |  |
| `items[].discount.id` | string (uuid) or null | no |  |
| `items[].discount.name` | string or null | no |  |
| `items[].discountValue` | object or null | no | The applied discount value. |
| `items[].discountValue.value` | number (double) or null | no |  |
| `items[].discountValue.type` | integer (int32) or null | no | Allowed values: `0`, `1`. |
| `items[].salesLocation` | object or null | no | Information about where this order was sold (table, bar etc.). |
| `items[].salesLocation.salesLocationId` | string (uuid) or null | no |  |
| `items[].salesLocation.type` | integer (int32) | no | Allowed values: `0`, `1`, `2`, `3`. |
| `items[].source` | string or null | no |  |
| `items[].saleSourceId` | string (uuid) | no |  |
| `items[].outlet` | object or null | no |  |
| `items[].outlet.id` | string (uuid) | no |  |
| `items[].outlet.name` | string or null | no |  |
| `items[].payments` | array<object> or null | no |  |
| `items[].payments[].id` | string (uuid) | no |  |
| `items[].payments[].created` | string (date-time) | no |  |
| `items[].payments[].orderId` | string (uuid) | no |  |
| `items[].payments[].amount` | object or null | no |  |
| `items[].payments[].amount.amount` | number (double) | no |  |
| `items[].payments[].amount.currency` | string or null | no |  |
| `items[].payments[].cashBackAmount` | object or null | no |  |
| `items[].payments[].cashBackAmount.amount` | number (double) | no |  |
| `items[].payments[].cashBackAmount.currency` | string or null | no |  |
| `items[].payments[].roundingAmount` | object or null | no |  |
| `items[].payments[].roundingAmount.amount` | number (double) | no |  |
| `items[].payments[].roundingAmount.currency` | string or null | no |  |
| `items[].payments[].tipAmount` | object or null | no |  |
| `items[].payments[].tipAmount.amount` | number (double) | no |  |
| `items[].payments[].tipAmount.currency` | string or null | no |  |
| `items[].payments[].paymentMethod` | object or null | no |  |
| `items[].payments[].paymentMethod.id` | string or null | no |  |
| `items[].payments[].paymentMethod.type` | integer (int32) | no | Allowed values: `0`, `1`, `2`, `3`, `4`, `5`, `6`, `7`, `8`, `9`, `10`, `11`, `12`, `13`, `14`, `15`, `16`, `17`, `18`, `19`, `20`, `21`, `22`, `23`. |
| `items[].payments[].paymentMethod.displayName` | string or null | no |  |
| `items[].payments[].ourReference` | string (uuid) | no |  |
| `items[].payments[].externalReference` | string or null | no |  |
| `items[].payments[].externalIdentifier` | string or null | no |  |
| `items[].payments[].clientId` | string (uuid) or null | no |  |
| `items[].payments[].tenantUserId` | string (uuid) or null | no |  |
| `items[].payments[].externalTimeStamp` | string (date-time) or null | no |  |
| `items[].payments[].integrationType` | integer (int32) | no | Allowed values: `1`, `2`. |
| `items[].payments[].status` | integer (int32) | no | Allowed values: `0`, `1`, `2`, `3`, `4`. |
| `items[].payments[].centralControlUnitSerial` | string or null | no |  |
| `items[].payments[].invoiceReferenceNote` | string or null | no |  |
| `items[].payments[].invoiceHandlingStatus` | integer (int32) or null | no | Allowed values: `1`, `2`, `4`, `8`. |
| `items[].payments[].refunds` | array<object> or null | no |  |
| `items[].payments[].refunds[].id` | string (uuid) | no |  |
| `items[].payments[].refunds[].refundedAt` | string (date-time) or null | no |  |
| `items[].payments[].refunds[].refundAmount` | object or null | no |  |
| `items[].payments[].refunds[].refundAmount.amount` | number (double) | no |  |
| `items[].payments[].refunds[].refundAmount.currency` | string or null | no |  |
| `items[].payments[].refunds[].roundingAmount` | object or null | no |  |
| `items[].payments[].refunds[].roundingAmount.amount` | number (double) | no |  |
| `items[].payments[].refunds[].roundingAmount.currency` | string or null | no |  |
| `items[].payments[].refunds[].paymentId` | string (uuid) | no |  |
| `items[].payments[].refunds[].status` | integer (int32) | no | Allowed values: `0`, `1`, `2`, `3`, `4`. |
| `items[].payments[].refunds[].refundReference` | string (uuid) | no |  |
| `items[].payments[].mewsInfo` | any or null | no |  |
| `items[].items` | array<object> or null | no |  |
| `items[].items[].id` | string (uuid) | no |  |
| `items[].items[].product` | object or null | no |  |
| `items[].items[].product.productId` | string (uuid) | no |  |
| `items[].items[].product.productName` | string or null | no |  |
| `items[].items[].product.productType` | integer (int32) | no | Allowed values: `0`, `1`, `2`, `3`, `4`, `5`, `6`, `7`, `8`, `9`, `10`. |
| `items[].items[].product.variantId` | string (uuid) | no |  |
| `items[].items[].product.variantName` | string or null | no |  |
| `items[].items[].product.hasVariants` | boolean | no |  |
| `items[].items[].product.productGroupId` | string (uuid) | no |  |
| `items[].items[].product.productGroupName` | string or null | no |  |
| `items[].items[].product.useBasePrice` | boolean | no |  |
| `items[].items[].quantity` | number (double) | no |  |
| `items[].items[].unitQuantity` | number (double) | no |  |
| `items[].items[].unit` | object or null | no |  |
| `items[].items[].unit.name` | string or null | no |  |
| `items[].items[].unit.type` | integer (int32) | no | Allowed values: `0`, `1`, `2`, `3`. |
| `items[].items[].productPriceInclTax` | object or null | no |  |
| `items[].items[].productPriceInclTax.unitPrice` | object or null | no |  |
| `items[].items[].productPriceInclTax.unitPrice.amount` | number (double) | no |  |
| `items[].items[].productPriceInclTax.unitPrice.currency` | string or null | no |  |
| `items[].items[].productPriceInclTax.additionalPrice` | object or null | no |  |
| `items[].items[].productPriceInclTax.additionalPrice.amount` | number (double) | no |  |
| `items[].items[].productPriceInclTax.additionalPrice.currency` | string or null | no |  |
| `items[].items[].productPriceExclTax` | object or null | no |  |
| `items[].items[].productPriceExclTax.unitPrice` | object or null | no |  |
| `items[].items[].productPriceExclTax.unitPrice.amount` | number (double) | no |  |
| `items[].items[].productPriceExclTax.unitPrice.currency` | string or null | no |  |
| `items[].items[].productPriceExclTax.additionalPrice` | object or null | no |  |
| `items[].items[].productPriceExclTax.additionalPrice.amount` | number (double) | no |  |
| `items[].items[].productPriceExclTax.additionalPrice.currency` | string or null | no |  |
| `items[].items[].productMaterialCostExclTax` | object or null | no |  |
| `items[].items[].productMaterialCostExclTax.unitPrice` | object or null | no |  |
| `items[].items[].productMaterialCostExclTax.unitPrice.amount` | number (double) | no |  |
| `items[].items[].productMaterialCostExclTax.unitPrice.currency` | string or null | no |  |
| `items[].items[].productMaterialCostExclTax.additionalPrice` | object or null | no |  |
| `items[].items[].productMaterialCostExclTax.additionalPrice.amount` | number (double) | no |  |
| `items[].items[].productMaterialCostExclTax.additionalPrice.currency` | string or null | no |  |
| `items[].items[].totalPriceInclTax` | object or null | no |  |
| `items[].items[].totalPriceInclTax.amount` | number (double) | no |  |
| `items[].items[].totalPriceInclTax.currency` | string or null | no |  |
| `items[].items[].totalPriceExclTax` | object or null | no |  |
| `items[].items[].totalPriceExclTax.amount` | number (double) | no |  |
| `items[].items[].totalPriceExclTax.currency` | string or null | no |  |
| `items[].items[].totalMaterialCostExclTax` | object or null | no |  |
| `items[].items[].totalMaterialCostExclTax.amount` | number (double) | no |  |
| `items[].items[].totalMaterialCostExclTax.currency` | string or null | no |  |
| `items[].items[].discountAmountInclTax` | object or null | no |  |
| `items[].items[].discountAmountInclTax.amount` | number (double) | no |  |
| `items[].items[].discountAmountInclTax.currency` | string or null | no |  |
| `items[].items[].discountAmountExclTax` | object or null | no |  |
| `items[].items[].discountAmountExclTax.amount` | number (double) | no |  |
| `items[].items[].discountAmountExclTax.currency` | string or null | no |  |
| `items[].items[].taxes` | array<object> or null | no |  |
| `items[].items[].taxes[].type` | integer (int32) | no | Allowed values: `1`, `2`. |
| `items[].items[].taxes[].rate` | number (double) | no |  |
| `items[].items[].modifications` | array<object> or null | no |  |
| `items[].items[].modifications[].modification` | string or null | no |  |
| `items[].items[].modifications[].ingredientId` | string (uuid) or null | no |  |
| `items[].items[].modifications[].name` | string or null | no |  |
| `items[].items[].modifications[].replaceId` | string (uuid) or null | no |  |
| `items[].items[].modifications[].replacementName` | string or null | no |  |
| `items[].items[].modifications[].addOnGroupId` | string (uuid) or null | no |  |
| `items[].items[].modifications[].addOnGroupName` | string or null | no |  |
| `items[].items[].modifications[].quantity` | number (double) | no |  |
| `items[].items[].modifications[].freeAmount` | number (double) | no |  |
| `items[].items[].modifications[].cost` | number (double) | no |  |
| `items[].items[].modifications[].totalCost` | number (double) | no |  |
| `items[].items[].modifications[].position` | integer (int32) | no |  |
| `items[].items[].addOnProducts` | array<object> or null | no |  |
| `items[].items[].addOnProducts[].id` | string (uuid) | no |  |
| `items[].items[].addOnProducts[].product` | object or null | no |  |
| `items[].items[].addOnProducts[].product.productId` | string (uuid) | no |  |
| `items[].items[].addOnProducts[].product.productName` | string or null | no |  |
| `items[].items[].addOnProducts[].product.productType` | integer (int32) | no | Allowed values: `0`, `1`, `2`, `3`, `4`, `5`, `6`, `7`, `8`, `9`, `10`. |
| `items[].items[].addOnProducts[].product.variantId` | string (uuid) | no |  |
| `items[].items[].addOnProducts[].product.variantName` | string or null | no |  |
| `items[].items[].addOnProducts[].product.hasVariants` | boolean | no |  |
| `items[].items[].addOnProducts[].product.productGroupId` | string (uuid) | no |  |
| `items[].items[].addOnProducts[].product.productGroupName` | string or null | no |  |
| `items[].items[].addOnProducts[].product.useBasePrice` | boolean | no |  |
| `items[].items[].addOnProducts[].quantity` | number (double) | no |  |
| `items[].items[].addOnProducts[].unitQuantity` | number (double) | no |  |
| `items[].items[].addOnProducts[].unit` | object or null | no |  |
| `items[].items[].addOnProducts[].unit.name` | string or null | no |  |
| `items[].items[].addOnProducts[].unit.type` | integer (int32) | no | Allowed values: `0`, `1`, `2`, `3`. |
| `items[].items[].addOnProducts[].productPriceInclTax` | object or null | no |  |
| `items[].items[].addOnProducts[].productPriceInclTax.unitPrice` | object or null | no |  |
| `items[].items[].addOnProducts[].productPriceInclTax.unitPrice.amount` | number (double) | no |  |
| `items[].items[].addOnProducts[].productPriceInclTax.unitPrice.currency` | string or null | no |  |
| `items[].items[].addOnProducts[].productPriceInclTax.additionalPrice` | object or null | no |  |
| `items[].items[].addOnProducts[].productPriceInclTax.additionalPrice.amount` | number (double) | no |  |
| `items[].items[].addOnProducts[].productPriceInclTax.additionalPrice.currency` | string or null | no |  |
| `items[].items[].addOnProducts[].productPriceExclTax` | object or null | no |  |
| `items[].items[].addOnProducts[].productPriceExclTax.unitPrice` | object or null | no |  |
| `items[].items[].addOnProducts[].productPriceExclTax.unitPrice.amount` | number (double) | no |  |
| `items[].items[].addOnProducts[].productPriceExclTax.unitPrice.currency` | string or null | no |  |
| `items[].items[].addOnProducts[].productPriceExclTax.additionalPrice` | object or null | no |  |
| `items[].items[].addOnProducts[].productPriceExclTax.additionalPrice.amount` | number (double) | no |  |
| `items[].items[].addOnProducts[].productPriceExclTax.additionalPrice.currency` | string or null | no |  |
| `items[].items[].addOnProducts[].productMaterialCostExclTax` | object or null | no |  |
| `items[].items[].addOnProducts[].productMaterialCostExclTax.unitPrice` | object or null | no |  |
| `items[].items[].addOnProducts[].productMaterialCostExclTax.unitPrice.amount` | number (double) | no |  |
| `items[].items[].addOnProducts[].productMaterialCostExclTax.unitPrice.currency` | string or null | no |  |
| `items[].items[].addOnProducts[].productMaterialCostExclTax.additionalPrice` | object or null | no |  |
| `items[].items[].addOnProducts[].productMaterialCostExclTax.additionalPrice.amount` | number (double) | no |  |
| `items[].items[].addOnProducts[].productMaterialCostExclTax.additionalPrice.currency` | string or null | no |  |
| `items[].items[].addOnProducts[].totalPriceInclTax` | object or null | no |  |
| `items[].items[].addOnProducts[].totalPriceInclTax.amount` | number (double) | no |  |
| `items[].items[].addOnProducts[].totalPriceInclTax.currency` | string or null | no |  |
| `items[].items[].addOnProducts[].totalPriceExclTax` | object or null | no |  |
| `items[].items[].addOnProducts[].totalPriceExclTax.amount` | number (double) | no |  |
| `items[].items[].addOnProducts[].totalPriceExclTax.currency` | string or null | no |  |
| `items[].items[].addOnProducts[].totalMaterialCostExclTax` | object or null | no |  |
| `items[].items[].addOnProducts[].totalMaterialCostExclTax.amount` | number (double) | no |  |
| `items[].items[].addOnProducts[].totalMaterialCostExclTax.currency` | string or null | no |  |
| `items[].items[].addOnProducts[].discountAmountInclTax` | object or null | no |  |
| `items[].items[].addOnProducts[].discountAmountInclTax.amount` | number (double) | no |  |
| `items[].items[].addOnProducts[].discountAmountInclTax.currency` | string or null | no |  |
| `items[].items[].addOnProducts[].discountAmountExclTax` | object or null | no |  |
| `items[].items[].addOnProducts[].discountAmountExclTax.amount` | number (double) | no |  |
| `items[].items[].addOnProducts[].discountAmountExclTax.currency` | string or null | no |  |
| `items[].items[].addOnProducts[].taxes` | array<object> or null | no |  |
| `items[].items[].addOnProducts[].taxes[].type` | integer (int32) | no | Allowed values: `1`, `2`. |
| `items[].items[].addOnProducts[].taxes[].rate` | number (double) | no |  |
| `items[].items[].addOnProducts[].discount` | object or null | no |  |
| `items[].items[].addOnProducts[].discount.value` | number (double) or null | no |  |
| `items[].items[].addOnProducts[].discount.type` | integer (int32) or null | no | Allowed values: `0`, `1`. |
| `items[].items[].addOnProducts[].status` | integer (int32) or null | no | Allowed values: `0`, `1`, `2`, `3`. |
| `items[].items[].addOnProducts[].addOnGroupId` | string (uuid) | no |  |
| `items[].items[].addOnProducts[].addOnGroupName` | string or null | no |  |
| `items[].items[].addOnProducts[].addOnFreeAmount` | number (double) | no |  |
| `items[].items[].discount` | object or null | no |  |
| `items[].items[].discount.value` | number (double) or null | no |  |
| `items[].items[].discount.type` | integer (int32) or null | no | Allowed values: `0`, `1`. |
| `items[].items[].status` | integer (int32) or null | no | Allowed values: `0`, `1`, `2`, `3`. |
| `items[].items[].soldAt` | string (date-time) | no |  |
| `items[].items[].refunds` | array<object> or null | no |  |
| `items[].items[].refunds[].id` | string (uuid) | no |  |
| `items[].items[].refunds[].quantity` | number (double) | no |  |
| `items[].items[].refunds[].status` | integer (int32) | no | Allowed values: `0`, `1`, `2`, `3`. |
| `items[].items[].refunds[].refundReference` | string (uuid) | no |  |
| `items[].items[].refunds[].orderItemId` | string (uuid) | no |  |
| `items[].items[].items` | array<object> or null | no |  |
| `items[].fees` | array<object> or null | no |  |
| `items[].fees[].feeId` | string (uuid) | no |  |
| `items[].fees[].feeName` | string or null | no |  |
| `items[].fees[].amountInclTax` | object or null | no |  |
| `items[].fees[].amountInclTax.amount` | number (double) | no |  |
| `items[].fees[].amountInclTax.currency` | string or null | no |  |
| `items[].fees[].amountExclTax` | object or null | no |  |
| `items[].fees[].amountExclTax.amount` | number (double) | no |  |
| `items[].fees[].amountExclTax.currency` | string or null | no |  |
| `items[].fees[].taxes` | array<object> or null | no |  |
| `items[].fees[].taxes[].type` | integer (int32) | no | Allowed values: `1`, `2`. |
| `items[].fees[].taxes[].rate` | number (double) | no |  |
| `items[].voucherBasisId` | string (uuid) or null | no |  |
| `items[].incrementalNumbers` | object or null | no |  |
| `items[].incrementalNumbers.ticketNumber` | integer (int64) or null | no | Unique number per outlet per Z-Report, it will reset when a Z-Report is made and start on 1 again. Used alot in the UI to give a simple to read number, will also be printed on tickets. |
| `items[].incrementalNumbers.serialNumber` | integer (int64) or null | no | Unbroken sequence per outlet which statisfies the needs of certain pos system laws, is only used on Checks. |
| `items[].incrementalNumbers.referenceNumber` | integer (int64) or null | no | Unbroken sequence per outlet which is used for all types of sales. Suitable for correlation between systems. |
| `items[].incrementalNumbers.refundSerialNumber` | integer (int64) or null | no | Uses same series as SerialNumber and is set on orders which is refunded. |
| `items[].fromType` | integer (int32) | no | Allowed values: `0`, `1`. |
| `items[].fromTypeCreated` | string (date-time) | no |  |
| `items[].createdCheckTenantUserId` | string (uuid) or null | no | The tenant user id of who created the check this order was created from. |
| `items[].closedCheckTenantUserId` | string (uuid) or null | no | Tenant user id of who closed the check this order was created from. |
| `items[].createdCheckClientId` | string (uuid) or null | no |  |
| `items[].closedCheckClientId` | string (uuid) or null | no |  |
| `items[].ticketedAt` | string (date-time) or null | no | The time this order was ticketed. |
| `items[].soldAt` | string (date-time) | no | The time when this order was sold. When something is sold is different if the order comes from check or checkout. Check: The last time an item was ticketed or if no tickets then it will be when the order was created. Checkout: The time the order was created. |
| `items[].checkoutAuthorizedAt` | string (date-time) or null | no |  |
| `items[].checkoutServiceTime` | object or null | no | Service time for the sale. No time is needed for Kind.AsSoonAsPossible it will be set as current UTC time on server side. |
| `items[].checkoutServiceTime.kind` | integer (int32) | no | Allowed values: `0`, `1`, `-1`. |
| `items[].checkoutServiceTime.time` | string (date-time) or null | no |  |
| `items[].ticketClosedAt` | string (date-time) or null | no |  |
| `items[].companyInfo` | object or null | no |  |
| `items[].companyInfo.companyId` | string (uuid) or null | no |  |
| `items[].companyInfo.companyName` | string or null | no |  |
| `items[].companyInfo.companyBusinessNumber` | string or null | no |  |
| `items[].companyInfo.address` | object or null | no |  |
| `items[].companyInfo.address.street` | string or null | no |  |
| `items[].companyInfo.address.street2` | string or null | no |  |
| `items[].companyInfo.address.zipCode` | string or null | no |  |
| `items[].companyInfo.address.city` | string or null | no |  |
| `items[].companyInfo.invoiceEmail` | string or null | no |  |
| `items[].companyInfo.memberId` | string (uuid) or null | no |  |
| `items[].companyInfo.memberName` | string or null | no |  |
| `items[].metaData` | array<object> or null | no |  |
| `items[].metaData[].metaData` | any or null | no | Rename for next version to Metadata |
| `items[].metaData[].metaDataType` | string or null | no |  |
| `items[].guestGroupId` | string (uuid) or null | no |  |
| `items[].orderType` | integer (int32) | no | Allowed values: `0`, `1`, `2`, `3`, `4`, `5`. |
| `items[].parentOrderId` | string (uuid) or null | no |  |
| `items[].customName` | string or null | no |  |
| `meta` | object or null | no |  |
| `meta.count` | integer (int32) | no |  |
| `meta.offset` | integer (int32) | no |  |

#### Example (from schema)

```json
{
  "items": [
    {
      "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "created": "2026-01-15T12:00:00Z",
      "orderFormats": 0,
      "status": 0,
      "refundedAt": "2026-01-15T12:00:00Z",
      "customer": {
        "email": "string",
        "customerId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
        "name": "string",
        "phone": "string",
        "address": {
          "street": "string",
          "zipCode": "string",
          "city": "string",
          "state": "string",
          "country": "string",
          "location": {
            "latitude": 0,
            "longitude": 0
          }
        }
      },
      "delivery": {
        "address": {
          "street": "string",
          "zipCode": "string",
          "city": "string",
          "state": "string",
          "country": "string",
          "location": {
            "latitude": 0,
            "longitude": 0
          }
        },
        "phone": "string",
        "recipient": "string"
      },
      "totalAmount": {
        "amount": 0,
        "currency": "string"
      },
      "taxAmount": {
        "amount": 0,
        "currency": "string"
      },
      "subtotalInclTax": {
        "amount": 0,
        "currency": "string"
      },
      "subtotalExclTax": {
        "amount": 0,
        "currency": "string"
      },
      "subTotalDiscountInclTax": {
        "amount": 0,
        "currency": "string"
      },
      "subTotalDiscountExclTax": {
        "amount": 0,
        "currency": "string"
      },
      "feeAmountInclTax": {
        "amount": 0,
        "currency": "string"
      },
      "feeAmountExclTax": {
        "amount": 0,
        "currency": "string"
      },
      "discount": {
        "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
        "name": "string"
      },
      "discountValue": {
        "value": 0,
        "type": 0
      },
      "salesLocation": {
        "salesLocationId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
        "type": 0
      },
      "source": "string",
      "saleSourceId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "outlet": {
        "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
        "name": "string"
      },
      "payments": [
        {
          "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
          "created": "2026-01-15T12:00:00Z",
          "orderId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
          "amount": {
            "amount": 0,
            "currency": "string"
          },
          "cashBackAmount": {
            "amount": 0,
            "currency": "string"
          },
          "roundingAmount": {
            "amount": 0,
            "currency": "string"
          },
          "tipAmount": {
            "amount": 0,
            "currency": "string"
          },
          "paymentMethod": {
            "id": "string",
            "type": 0,
            "displayName": "string"
          },
          "ourReference": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
          "externalReference": "string",
          "externalIdentifier": "string",
          "clientId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
          "tenantUserId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
          "externalTimeStamp": "2026-01-15T12:00:00Z",
          "integrationType": 1,
          "status": 0,
          "centralControlUnitSerial": "string",
          "invoiceReferenceNote": "string",
          "invoiceHandlingStatus": 1,
          "refunds": [
            {}
          ],
          "mewsInfo": null
        }
      ],
      "items": [
        {
          "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
          "product": {
            "productId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
            "productName": "string",
            "productType": 0,
            "variantId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
            "variantName": "string",
            "hasVariants": true,
            "productGroupId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
            "productGroupName": "string",
            "useBasePrice": true
          },
          "quantity": 0,
          "unitQuantity": 0,
          "unit": {
            "name": "string",
            "type": 0
          },
          "productPriceInclTax": {
            "unitPrice": {},
            "additionalPrice": {}
          },
          "productPriceExclTax": {
            "unitPrice": {},
            "additionalPrice": {}
          },
          "productMaterialCostExclTax": {
            "unitPrice": {},
            "additionalPrice": {}
          },
          "totalPriceInclTax": {
            "amount": 0,
            "currency": "string"
          },
          "totalPriceExclTax": {
            "amount": 0,
            "currency": "string"
          },
          "totalMaterialCostExclTax": {
            "amount": 0,
            "currency": "string"
          },
          "discountAmountInclTax": {
            "amount": 0,
            "currency": "string"
          },
          "discountAmountExclTax": {
            "amount": 0,
            "currency": "string"
          },
          "taxes": [
            {}
          ],
          "modifications": [
            {}
          ],
          "addOnProducts": [
            {}
          ],
          "discount": {
            "value": 0,
            "type": 0
          },
          "status": 0,
          "soldAt": "2026-01-15T12:00:00Z",
          "refunds": [
            {}
          ],
          "items": [
            {}
          ]
        }
      ],
      "fees": [
        {
          "feeId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
          "feeName": "string",
          "amountInclTax": {
            "amount": 0,
            "currency": "string"
          },
          "amountExclTax": {
            "amount": 0,
            "currency": "string"
          },
          "taxes": [
            {}
          ]
        }
      ],
      "voucherBasisId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "incrementalNumbers": {
        "ticketNumber": 0,
        "serialNumber": 0,
        "referenceNumber": 0,
        "refundSerialNumber": 0
      },
      "fromType": 0,
      "fromTypeCreated": "2026-01-15T12:00:00Z",
      "createdCheckTenantUserId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "closedCheckTenantUserId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "createdCheckClientId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "closedCheckClientId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "ticketedAt": "2026-01-15T12:00:00Z",
      "soldAt": "2026-01-15T12:00:00Z",
      "checkoutAuthorizedAt": "2026-01-15T12:00:00Z",
      "checkoutServiceTime": {
        "kind": 0,
        "time": "2026-01-15T12:00:00Z"
      },
      "ticketClosedAt": "2026-01-15T12:00:00Z",
      "companyInfo": {
        "companyId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
        "companyName": "string",
        "companyBusinessNumber": "string",
        "address": {
          "street": "string",
          "street2": "string",
          "zipCode": "string",
          "city": "string"
        },
        "invoiceEmail": "string",
        "memberId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
        "memberName": "string"
      },
      "metaData": [
        {
          "metaData": null,
          "metaDataType": "string"
        }
      ],
      "guestGroupId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "orderType": 0,
      "parentOrderId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "customName": "string"
    }
  ],
  "meta": {
    "count": 0,
    "offset": 0
  }
}
```

### 401 response (`application/json`)

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `message` | string or null | no |  |

#### Example (from schema)

```json
{
  "message": "string"
}
```

### 404 response (`application/json`)

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `message` | string or null | no |  |
| `errorCode` | string (uuid) | no |  |

#### Example (from schema)

```json
{
  "message": "string",
  "errorCode": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}
```

### 429 response (`application/json`)

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `type` | string or null | no |  |
| `title` | string or null | no |  |
| `status` | integer (int32) or null | no |  |
| `detail` | string or null | no |  |
| `instance` | string or null | no |  |

#### Example (from schema)

```json
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "instance": "string"
}
```

## Example request

```bash
curl -X GET "https://core-api.ancon.io/api/v1/Outlets/{outletId}/Orders/DetailedList" \
  -H "Access-Token: $ANCON_TOKEN"
```
