# Get order details

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

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

## Path parameters

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

## Header parameters

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

## Responses

| Status | Description |
| --- | --- |
| 200 | OK |
| 401 | Unauthorized |
| 404 | Not Found |

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

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `order` | object or null | no |  |
| `order.id` | string (uuid) | no |  |
| `order.created` | string (date-time) | no |  |
| `order.orderFormats` | integer (int32) | no | Allowed values: `0`, `1`, `2`, `4`, `8`, `16`, `32`, `64`, `128`, `159`, `191`. |
| `order.status` | integer (int32) | no | Allowed values: `0`, `1`, `2`, `3`. |
| `order.refundedAt` | string (date-time) or null | no |  |
| `order.customer` | object or null | no |  |
| `order.customer.email` | string or null | no |  |
| `order.customer.customerId` | string (uuid) or null | no |  |
| `order.customer.name` | string or null | no |  |
| `order.customer.phone` | string or null | no |  |
| `order.customer.address` | object or null | no |  |
| `order.customer.address.street` | string or null | no |  |
| `order.customer.address.zipCode` | string or null | no |  |
| `order.customer.address.city` | string or null | no |  |
| `order.customer.address.state` | string or null | no |  |
| `order.customer.address.country` | string or null | no |  |
| `order.customer.address.location` | object or null | no |  |
| `order.customer.address.location.latitude` | number (double) | no |  |
| `order.customer.address.location.longitude` | number (double) | no |  |
| `order.delivery` | object or null | no |  |
| `order.delivery.address` | object or null | no |  |
| `order.delivery.address.street` | string or null | no |  |
| `order.delivery.address.zipCode` | string or null | no |  |
| `order.delivery.address.city` | string or null | no |  |
| `order.delivery.address.state` | string or null | no |  |
| `order.delivery.address.country` | string or null | no |  |
| `order.delivery.address.location` | object or null | no |  |
| `order.delivery.address.location.latitude` | number (double) | no |  |
| `order.delivery.address.location.longitude` | number (double) | no |  |
| `order.delivery.phone` | string or null | no |  |
| `order.delivery.recipient` | string or null | no |  |
| `order.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. |
| `order.totalAmount.amount` | number (double) | no |  |
| `order.totalAmount.currency` | string or null | no |  |
| `order.taxAmount` | object or null | no | Order total tax. |
| `order.taxAmount.amount` | number (double) | no |  |
| `order.taxAmount.currency` | string or null | no |  |
| `order.subtotalInclTax` | object or null | no | Order sub total (include tax). This amount is calculated from OrderItem.TotalPriceInclTax |
| `order.subtotalInclTax.amount` | number (double) | no |  |
| `order.subtotalInclTax.currency` | string or null | no |  |
| `order.subtotalExclTax` | object or null | no | Order sub total (exclude tax). This amount is calculated from OrderItem.TotalPriceExclTax |
| `order.subtotalExclTax.amount` | number (double) | no |  |
| `order.subtotalExclTax.currency` | string or null | no |  |
| `order.subTotalDiscountInclTax` | object or null | no | Gets the order subtotal discount (include tax) This amount is calculated from OrderItem.DiscountAmountInclTax |
| `order.subTotalDiscountInclTax.amount` | number (double) | no |  |
| `order.subTotalDiscountInclTax.currency` | string or null | no |  |
| `order.subTotalDiscountExclTax` | object or null | no | Gets the order subtotal discount (exclude tax) This amount is calculated from OrderItem.DiscountAmountExclTax |
| `order.subTotalDiscountExclTax.amount` | number (double) | no |  |
| `order.subTotalDiscountExclTax.currency` | string or null | no |  |
| `order.feeAmountInclTax` | object or null | no | Gets the total fee amount (include tax) This amount is calculated from OrderFee.AmountInclTax |
| `order.feeAmountInclTax.amount` | number (double) | no |  |
| `order.feeAmountInclTax.currency` | string or null | no |  |
| `order.feeAmountExclTax` | object or null | no | Gets the total fee amount (exclude tax) This amount is calculated from OrderFee.AmountExclTax |
| `order.feeAmountExclTax.amount` | number (double) | no |  |
| `order.feeAmountExclTax.currency` | string or null | no |  |
| `order.discount` | object or null | no |  |
| `order.discount.id` | string (uuid) or null | no |  |
| `order.discount.name` | string or null | no |  |
| `order.discountValue` | object or null | no | The applied discount value. |
| `order.discountValue.value` | number (double) or null | no |  |
| `order.discountValue.type` | integer (int32) or null | no | Allowed values: `0`, `1`. |
| `order.salesLocation` | object or null | no | Information about where this order was sold (table, bar etc.). |
| `order.salesLocation.salesLocationId` | string (uuid) or null | no |  |
| `order.salesLocation.type` | integer (int32) | no | Allowed values: `0`, `1`, `2`, `3`. |
| `order.source` | string or null | no |  |
| `order.saleSourceId` | string (uuid) | no |  |
| `order.outlet` | object or null | no |  |
| `order.outlet.id` | string (uuid) | no |  |
| `order.outlet.name` | string or null | no |  |
| `order.payments` | array<object> or null | no |  |
| `order.payments[].id` | string (uuid) | no |  |
| `order.payments[].created` | string (date-time) | no |  |
| `order.payments[].orderId` | string (uuid) | no |  |
| `order.payments[].amount` | object or null | no |  |
| `order.payments[].amount.amount` | number (double) | no |  |
| `order.payments[].amount.currency` | string or null | no |  |
| `order.payments[].cashBackAmount` | object or null | no |  |
| `order.payments[].cashBackAmount.amount` | number (double) | no |  |
| `order.payments[].cashBackAmount.currency` | string or null | no |  |
| `order.payments[].roundingAmount` | object or null | no |  |
| `order.payments[].roundingAmount.amount` | number (double) | no |  |
| `order.payments[].roundingAmount.currency` | string or null | no |  |
| `order.payments[].tipAmount` | object or null | no |  |
| `order.payments[].tipAmount.amount` | number (double) | no |  |
| `order.payments[].tipAmount.currency` | string or null | no |  |
| `order.payments[].paymentMethod` | object or null | no |  |
| `order.payments[].paymentMethod.id` | string or null | no |  |
| `order.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`. |
| `order.payments[].paymentMethod.displayName` | string or null | no |  |
| `order.payments[].ourReference` | string (uuid) | no |  |
| `order.payments[].externalReference` | string or null | no |  |
| `order.payments[].externalIdentifier` | string or null | no |  |
| `order.payments[].clientId` | string (uuid) or null | no |  |
| `order.payments[].tenantUserId` | string (uuid) or null | no |  |
| `order.payments[].externalTimeStamp` | string (date-time) or null | no |  |
| `order.payments[].integrationType` | integer (int32) | no | Allowed values: `1`, `2`. |
| `order.payments[].status` | integer (int32) | no | Allowed values: `0`, `1`, `2`, `3`, `4`. |
| `order.payments[].centralControlUnitSerial` | string or null | no |  |
| `order.payments[].invoiceReferenceNote` | string or null | no |  |
| `order.payments[].invoiceHandlingStatus` | integer (int32) or null | no | Allowed values: `1`, `2`, `4`, `8`. |
| `order.payments[].refunds` | array<object> or null | no |  |
| `order.payments[].refunds[].id` | string (uuid) | no |  |
| `order.payments[].refunds[].refundedAt` | string (date-time) or null | no |  |
| `order.payments[].refunds[].refundAmount` | object or null | no |  |
| `order.payments[].refunds[].refundAmount.amount` | number (double) | no |  |
| `order.payments[].refunds[].refundAmount.currency` | string or null | no |  |
| `order.payments[].refunds[].roundingAmount` | object or null | no |  |
| `order.payments[].refunds[].roundingAmount.amount` | number (double) | no |  |
| `order.payments[].refunds[].roundingAmount.currency` | string or null | no |  |
| `order.payments[].refunds[].paymentId` | string (uuid) | no |  |
| `order.payments[].refunds[].status` | integer (int32) | no | Allowed values: `0`, `1`, `2`, `3`, `4`. |
| `order.payments[].refunds[].refundReference` | string (uuid) | no |  |
| `order.payments[].mewsInfo` | any or null | no |  |
| `order.items` | array<object> or null | no |  |
| `order.items[].id` | string (uuid) | no |  |
| `order.items[].product` | object or null | no |  |
| `order.items[].product.productId` | string (uuid) | no |  |
| `order.items[].product.productName` | string or null | no |  |
| `order.items[].product.productType` | integer (int32) | no | Allowed values: `0`, `1`, `2`, `3`, `4`, `5`, `6`, `7`, `8`, `9`, `10`. |
| `order.items[].product.variantId` | string (uuid) | no |  |
| `order.items[].product.variantName` | string or null | no |  |
| `order.items[].product.hasVariants` | boolean | no |  |
| `order.items[].product.productGroupId` | string (uuid) | no |  |
| `order.items[].product.productGroupName` | string or null | no |  |
| `order.items[].product.useBasePrice` | boolean | no |  |
| `order.items[].quantity` | number (double) | no |  |
| `order.items[].unitQuantity` | number (double) | no |  |
| `order.items[].unit` | object or null | no |  |
| `order.items[].unit.name` | string or null | no |  |
| `order.items[].unit.type` | integer (int32) | no | Allowed values: `0`, `1`, `2`, `3`. |
| `order.items[].productPriceInclTax` | object or null | no |  |
| `order.items[].productPriceInclTax.unitPrice` | object or null | no |  |
| `order.items[].productPriceInclTax.unitPrice.amount` | number (double) | no |  |
| `order.items[].productPriceInclTax.unitPrice.currency` | string or null | no |  |
| `order.items[].productPriceInclTax.additionalPrice` | object or null | no |  |
| `order.items[].productPriceInclTax.additionalPrice.amount` | number (double) | no |  |
| `order.items[].productPriceInclTax.additionalPrice.currency` | string or null | no |  |
| `order.items[].productPriceExclTax` | object or null | no |  |
| `order.items[].productPriceExclTax.unitPrice` | object or null | no |  |
| `order.items[].productPriceExclTax.unitPrice.amount` | number (double) | no |  |
| `order.items[].productPriceExclTax.unitPrice.currency` | string or null | no |  |
| `order.items[].productPriceExclTax.additionalPrice` | object or null | no |  |
| `order.items[].productPriceExclTax.additionalPrice.amount` | number (double) | no |  |
| `order.items[].productPriceExclTax.additionalPrice.currency` | string or null | no |  |
| `order.items[].productMaterialCostExclTax` | object or null | no |  |
| `order.items[].productMaterialCostExclTax.unitPrice` | object or null | no |  |
| `order.items[].productMaterialCostExclTax.unitPrice.amount` | number (double) | no |  |
| `order.items[].productMaterialCostExclTax.unitPrice.currency` | string or null | no |  |
| `order.items[].productMaterialCostExclTax.additionalPrice` | object or null | no |  |
| `order.items[].productMaterialCostExclTax.additionalPrice.amount` | number (double) | no |  |
| `order.items[].productMaterialCostExclTax.additionalPrice.currency` | string or null | no |  |
| `order.items[].totalPriceInclTax` | object or null | no |  |
| `order.items[].totalPriceInclTax.amount` | number (double) | no |  |
| `order.items[].totalPriceInclTax.currency` | string or null | no |  |
| `order.items[].totalPriceExclTax` | object or null | no |  |
| `order.items[].totalPriceExclTax.amount` | number (double) | no |  |
| `order.items[].totalPriceExclTax.currency` | string or null | no |  |
| `order.items[].totalMaterialCostExclTax` | object or null | no |  |
| `order.items[].totalMaterialCostExclTax.amount` | number (double) | no |  |
| `order.items[].totalMaterialCostExclTax.currency` | string or null | no |  |
| `order.items[].discountAmountInclTax` | object or null | no |  |
| `order.items[].discountAmountInclTax.amount` | number (double) | no |  |
| `order.items[].discountAmountInclTax.currency` | string or null | no |  |
| `order.items[].discountAmountExclTax` | object or null | no |  |
| `order.items[].discountAmountExclTax.amount` | number (double) | no |  |
| `order.items[].discountAmountExclTax.currency` | string or null | no |  |
| `order.items[].taxes` | array<object> or null | no |  |
| `order.items[].taxes[].type` | integer (int32) | no | Allowed values: `1`, `2`. |
| `order.items[].taxes[].rate` | number (double) | no |  |
| `order.items[].modifications` | array<object> or null | no |  |
| `order.items[].modifications[].modification` | string or null | no |  |
| `order.items[].modifications[].ingredientId` | string (uuid) or null | no |  |
| `order.items[].modifications[].name` | string or null | no |  |
| `order.items[].modifications[].replaceId` | string (uuid) or null | no |  |
| `order.items[].modifications[].replacementName` | string or null | no |  |
| `order.items[].modifications[].addOnGroupId` | string (uuid) or null | no |  |
| `order.items[].modifications[].addOnGroupName` | string or null | no |  |
| `order.items[].modifications[].quantity` | number (double) | no |  |
| `order.items[].modifications[].freeAmount` | number (double) | no |  |
| `order.items[].modifications[].cost` | number (double) | no |  |
| `order.items[].modifications[].totalCost` | number (double) | no |  |
| `order.items[].modifications[].position` | integer (int32) | no |  |
| `order.items[].addOnProducts` | array<object> or null | no |  |
| `order.items[].addOnProducts[].id` | string (uuid) | no |  |
| `order.items[].addOnProducts[].product` | object or null | no |  |
| `order.items[].addOnProducts[].product.productId` | string (uuid) | no |  |
| `order.items[].addOnProducts[].product.productName` | string or null | no |  |
| `order.items[].addOnProducts[].product.productType` | integer (int32) | no | Allowed values: `0`, `1`, `2`, `3`, `4`, `5`, `6`, `7`, `8`, `9`, `10`. |
| `order.items[].addOnProducts[].product.variantId` | string (uuid) | no |  |
| `order.items[].addOnProducts[].product.variantName` | string or null | no |  |
| `order.items[].addOnProducts[].product.hasVariants` | boolean | no |  |
| `order.items[].addOnProducts[].product.productGroupId` | string (uuid) | no |  |
| `order.items[].addOnProducts[].product.productGroupName` | string or null | no |  |
| `order.items[].addOnProducts[].product.useBasePrice` | boolean | no |  |
| `order.items[].addOnProducts[].quantity` | number (double) | no |  |
| `order.items[].addOnProducts[].unitQuantity` | number (double) | no |  |
| `order.items[].addOnProducts[].unit` | object or null | no |  |
| `order.items[].addOnProducts[].unit.name` | string or null | no |  |
| `order.items[].addOnProducts[].unit.type` | integer (int32) | no | Allowed values: `0`, `1`, `2`, `3`. |
| `order.items[].addOnProducts[].productPriceInclTax` | object or null | no |  |
| `order.items[].addOnProducts[].productPriceInclTax.unitPrice` | object or null | no |  |
| `order.items[].addOnProducts[].productPriceInclTax.unitPrice.amount` | number (double) | no |  |
| `order.items[].addOnProducts[].productPriceInclTax.unitPrice.currency` | string or null | no |  |
| `order.items[].addOnProducts[].productPriceInclTax.additionalPrice` | object or null | no |  |
| `order.items[].addOnProducts[].productPriceInclTax.additionalPrice.amount` | number (double) | no |  |
| `order.items[].addOnProducts[].productPriceInclTax.additionalPrice.currency` | string or null | no |  |
| `order.items[].addOnProducts[].productPriceExclTax` | object or null | no |  |
| `order.items[].addOnProducts[].productPriceExclTax.unitPrice` | object or null | no |  |
| `order.items[].addOnProducts[].productPriceExclTax.unitPrice.amount` | number (double) | no |  |
| `order.items[].addOnProducts[].productPriceExclTax.unitPrice.currency` | string or null | no |  |
| `order.items[].addOnProducts[].productPriceExclTax.additionalPrice` | object or null | no |  |
| `order.items[].addOnProducts[].productPriceExclTax.additionalPrice.amount` | number (double) | no |  |
| `order.items[].addOnProducts[].productPriceExclTax.additionalPrice.currency` | string or null | no |  |
| `order.items[].addOnProducts[].productMaterialCostExclTax` | object or null | no |  |
| `order.items[].addOnProducts[].productMaterialCostExclTax.unitPrice` | object or null | no |  |
| `order.items[].addOnProducts[].productMaterialCostExclTax.unitPrice.amount` | number (double) | no |  |
| `order.items[].addOnProducts[].productMaterialCostExclTax.unitPrice.currency` | string or null | no |  |
| `order.items[].addOnProducts[].productMaterialCostExclTax.additionalPrice` | object or null | no |  |
| `order.items[].addOnProducts[].productMaterialCostExclTax.additionalPrice.amount` | number (double) | no |  |
| `order.items[].addOnProducts[].productMaterialCostExclTax.additionalPrice.currency` | string or null | no |  |
| `order.items[].addOnProducts[].totalPriceInclTax` | object or null | no |  |
| `order.items[].addOnProducts[].totalPriceInclTax.amount` | number (double) | no |  |
| `order.items[].addOnProducts[].totalPriceInclTax.currency` | string or null | no |  |
| `order.items[].addOnProducts[].totalPriceExclTax` | object or null | no |  |
| `order.items[].addOnProducts[].totalPriceExclTax.amount` | number (double) | no |  |
| `order.items[].addOnProducts[].totalPriceExclTax.currency` | string or null | no |  |
| `order.items[].addOnProducts[].totalMaterialCostExclTax` | object or null | no |  |
| `order.items[].addOnProducts[].totalMaterialCostExclTax.amount` | number (double) | no |  |
| `order.items[].addOnProducts[].totalMaterialCostExclTax.currency` | string or null | no |  |
| `order.items[].addOnProducts[].discountAmountInclTax` | object or null | no |  |
| `order.items[].addOnProducts[].discountAmountInclTax.amount` | number (double) | no |  |
| `order.items[].addOnProducts[].discountAmountInclTax.currency` | string or null | no |  |
| `order.items[].addOnProducts[].discountAmountExclTax` | object or null | no |  |
| `order.items[].addOnProducts[].discountAmountExclTax.amount` | number (double) | no |  |
| `order.items[].addOnProducts[].discountAmountExclTax.currency` | string or null | no |  |
| `order.items[].addOnProducts[].taxes` | array<object> or null | no |  |
| `order.items[].addOnProducts[].taxes[].type` | integer (int32) | no | Allowed values: `1`, `2`. |
| `order.items[].addOnProducts[].taxes[].rate` | number (double) | no |  |
| `order.items[].addOnProducts[].discount` | object or null | no |  |
| `order.items[].addOnProducts[].discount.value` | number (double) or null | no |  |
| `order.items[].addOnProducts[].discount.type` | integer (int32) or null | no | Allowed values: `0`, `1`. |
| `order.items[].addOnProducts[].status` | integer (int32) or null | no | Allowed values: `0`, `1`, `2`, `3`. |
| `order.items[].addOnProducts[].addOnGroupId` | string (uuid) | no |  |
| `order.items[].addOnProducts[].addOnGroupName` | string or null | no |  |
| `order.items[].addOnProducts[].addOnFreeAmount` | number (double) | no |  |
| `order.items[].discount` | object or null | no |  |
| `order.items[].discount.value` | number (double) or null | no |  |
| `order.items[].discount.type` | integer (int32) or null | no | Allowed values: `0`, `1`. |
| `order.items[].status` | integer (int32) or null | no | Allowed values: `0`, `1`, `2`, `3`. |
| `order.items[].soldAt` | string (date-time) | no |  |
| `order.items[].refunds` | array<object> or null | no |  |
| `order.items[].refunds[].id` | string (uuid) | no |  |
| `order.items[].refunds[].quantity` | number (double) | no |  |
| `order.items[].refunds[].status` | integer (int32) | no | Allowed values: `0`, `1`, `2`, `3`. |
| `order.items[].refunds[].refundReference` | string (uuid) | no |  |
| `order.items[].refunds[].orderItemId` | string (uuid) | no |  |
| `order.items[].items` | array<object> or null | no |  |
| `order.fees` | array<object> or null | no |  |
| `order.fees[].feeId` | string (uuid) | no |  |
| `order.fees[].feeName` | string or null | no |  |
| `order.fees[].amountInclTax` | object or null | no |  |
| `order.fees[].amountInclTax.amount` | number (double) | no |  |
| `order.fees[].amountInclTax.currency` | string or null | no |  |
| `order.fees[].amountExclTax` | object or null | no |  |
| `order.fees[].amountExclTax.amount` | number (double) | no |  |
| `order.fees[].amountExclTax.currency` | string or null | no |  |
| `order.fees[].taxes` | array<object> or null | no |  |
| `order.fees[].taxes[].type` | integer (int32) | no | Allowed values: `1`, `2`. |
| `order.fees[].taxes[].rate` | number (double) | no |  |
| `order.voucherBasisId` | string (uuid) or null | no |  |
| `order.incrementalNumbers` | object or null | no |  |
| `order.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. |
| `order.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. |
| `order.incrementalNumbers.referenceNumber` | integer (int64) or null | no | Unbroken sequence per outlet which is used for all types of sales. Suitable for correlation between systems. |
| `order.incrementalNumbers.refundSerialNumber` | integer (int64) or null | no | Uses same series as SerialNumber and is set on orders which is refunded. |
| `order.fromType` | integer (int32) | no | Allowed values: `0`, `1`. |
| `order.fromTypeCreated` | string (date-time) | no |  |
| `order.createdCheckTenantUserId` | string (uuid) or null | no | The tenant user id of who created the check this order was created from. |
| `order.closedCheckTenantUserId` | string (uuid) or null | no | Tenant user id of who closed the check this order was created from. |
| `order.createdCheckClientId` | string (uuid) or null | no |  |
| `order.closedCheckClientId` | string (uuid) or null | no |  |
| `order.ticketedAt` | string (date-time) or null | no | The time this order was ticketed. |
| `order.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. |
| `order.checkoutAuthorizedAt` | string (date-time) or null | no |  |
| `order.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. |
| `order.checkoutServiceTime.kind` | integer (int32) | no | Allowed values: `0`, `1`, `-1`. |
| `order.checkoutServiceTime.time` | string (date-time) or null | no |  |
| `order.ticketClosedAt` | string (date-time) or null | no |  |
| `order.companyInfo` | object or null | no |  |
| `order.companyInfo.companyId` | string (uuid) or null | no |  |
| `order.companyInfo.companyName` | string or null | no |  |
| `order.companyInfo.companyBusinessNumber` | string or null | no |  |
| `order.companyInfo.address` | object or null | no |  |
| `order.companyInfo.address.street` | string or null | no |  |
| `order.companyInfo.address.street2` | string or null | no |  |
| `order.companyInfo.address.zipCode` | string or null | no |  |
| `order.companyInfo.address.city` | string or null | no |  |
| `order.companyInfo.invoiceEmail` | string or null | no |  |
| `order.companyInfo.memberId` | string (uuid) or null | no |  |
| `order.companyInfo.memberName` | string or null | no |  |
| `order.metaData` | array<object> or null | no |  |
| `order.metaData[].metaData` | any or null | no | Rename for next version to Metadata |
| `order.metaData[].metaDataType` | string or null | no |  |
| `order.guestGroupId` | string (uuid) or null | no |  |
| `order.orderType` | integer (int32) | no | Allowed values: `0`, `1`, `2`, `3`, `4`, `5`. |
| `order.parentOrderId` | string (uuid) or null | no |  |
| `order.customName` | string or null | no |  |

#### Example (from schema)

```json
{
  "order": {
    "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": [
          {
            "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
            "refundedAt": "2026-01-15T12:00:00Z",
            "refundAmount": {},
            "roundingAmount": {},
            "paymentId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
            "status": 0,
            "refundReference": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
          }
        ],
        "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": {
            "amount": 0,
            "currency": "string"
          },
          "additionalPrice": {
            "amount": 0,
            "currency": "string"
          }
        },
        "productPriceExclTax": {
          "unitPrice": {
            "amount": 0,
            "currency": "string"
          },
          "additionalPrice": {
            "amount": 0,
            "currency": "string"
          }
        },
        "productMaterialCostExclTax": {
          "unitPrice": {
            "amount": 0,
            "currency": "string"
          },
          "additionalPrice": {
            "amount": 0,
            "currency": "string"
          }
        },
        "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": [
          {
            "type": 1,
            "rate": 0
          }
        ],
        "modifications": [
          {
            "modification": "string",
            "ingredientId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
            "name": "string",
            "replaceId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
            "replacementName": "string",
            "addOnGroupId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
            "addOnGroupName": "string",
            "quantity": 0,
            "freeAmount": 0,
            "cost": 0,
            "totalCost": 0,
            "position": 0
          }
        ],
        "addOnProducts": [
          {
            "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
            "product": {},
            "quantity": 0,
            "unitQuantity": 0,
            "unit": {},
            "productPriceInclTax": {},
            "productPriceExclTax": {},
            "productMaterialCostExclTax": {},
            "totalPriceInclTax": {},
            "totalPriceExclTax": {},
            "totalMaterialCostExclTax": {},
            "discountAmountInclTax": {},
            "discountAmountExclTax": {},
            "taxes": [],
            "discount": {},
            "status": 0,
            "addOnGroupId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
            "addOnGroupName": "string",
            "addOnFreeAmount": 0
          }
        ],
        "discount": {
          "value": 0,
          "type": 0
        },
        "status": 0,
        "soldAt": "2026-01-15T12:00:00Z",
        "refunds": [
          {
            "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
            "quantity": 0,
            "status": 0,
            "refundReference": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
            "orderItemId": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
          }
        ],
        "items": [
          {}
        ]
      }
    ],
    "fees": [
      {
        "feeId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
        "feeName": "string",
        "amountInclTax": {
          "amount": 0,
          "currency": "string"
        },
        "amountExclTax": {
          "amount": 0,
          "currency": "string"
        },
        "taxes": [
          {
            "type": 1,
            "rate": 0
          }
        ]
      }
    ],
    "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"
  }
}
```

### 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"
}
```

## Example request

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