Get ticket details list
https://core-api.ancon.io/api/v1/Outlets/{outletId}/Tickets/DetailedListFiltering
Filter the list with filter[field]=operator:value; see how filtering works.
- created (datetime)
- ticketnumber (long)
- orderformat (enum flags)
- ordertype (enum)
- status (enum)
- salesourceid (guid)
- iscorrectionticket (boolean)
Authorization
Access-TokenheaderrequiredTenant- or outlet-level token from the backoffice. See Get started.
Path parameters
outletIdstring (uuid)required
Query parameters
Offsetinteger (int32)Offset the result, defaults to 0
Limitinteger (int32)Limits how many items to get, defaults to 100 min 0, max 1000.
OrderstringOrder the result.
SearchstringFiltermap<string, array<string>>Filter the result. Filter[created]=gte:2022-01-02 12:00:00&Filter[created]=lte:2022-08-03 22:00:00
Filter takes filter[field]=operator:value on 7 fields. Build a filter
Header parameters
correlationIdstringCorrelation Id for the request
Responses
200OK
itemsarray<object> | null16 fields in
itemsidstring (uuid)ticketNumberinteger (int64) | nullorderFormatinteger (int32)Allowed values:
0,1,2,4,8,16,32,64,128,159,191.orderTypeinteger (int32)Allowed values:
0,1,2,3,4,5.serviceTimeobject | nullService time for the sale. No time is needed for Kind.AsSoonAsPossible it will be set as current UTC time on server side.
2 fields in
serviceTimekindinteger (int32)Allowed values:
0,1,-1.timestring (date-time) | null
preparationTimestring (date-span) | nullcustomerNamestring | nullsalesLocationobject | null4 fields in
salesLocationtypeinteger (int32)Allowed values:
0,1,2,3.tableobject | null2 fields in
tableidstring (uuid)numberinteger (int32)
posobject | null2 fields in
posidstring (uuid)namestring | null
expressobject | null2 fields in
expressidstring (uuid)namestring | null
statusinteger (int32)Allowed values:
0,1,2,3,4,5.customTicketNumberinteger (int64) | nulltotalAmountobject | null2 fields in
totalAmountamountnumber (double)currencystring | null
subtotalInclTaxobject | null2 fields in
subtotalInclTaxamountnumber (double)currencystring | null
subTotalDiscountInclTaxobject | null2 fields in
subTotalDiscountInclTaxamountnumber (double)currencystring | null
feeAmountInclTaxobject | null2 fields in
feeAmountInclTaxamountnumber (double)currencystring | null
subTicketsarray<object> | null3 fields in
subTicketsidstring (uuid)ticketDestinationIdstring (uuid)isCompletedboolean
itemsarray<object> | null11 fields in
itemsidstring (uuid)productobject | null10 fields in
productproductIdstring (uuid)productNamestring | nullproductTypeinteger (int32)Allowed values:
0,1,2,3,4,5,6,7,8,9,10.variantIdstring (uuid)variantNamestring | nullvariantTypeinteger (int32)Allowed values:
0,1,2,3,4,5,6,7.hasVariantsbooleanproductGroupIdstring (uuid)productGroupNamestring | nullglassesPerBottlenumber (double) | null
quantitynumber (double)unitQuantitynumber (double)unitstring | nullunitTypeinteger (int32)Allowed values:
0,1,2,3.kitchenMessagestring | nulltotalPriceInclTaxobject | null2 fields in
totalPriceInclTaxamountnumber (double)currencystring | null
discountAmountInclTaxobject | null2 fields in
discountAmountInclTaxamountnumber (double)currencystring | null
ticketDestinationsarray<string (uuid)> | nullmodificationsarray<object> | null12 fields in
modificationsmodificationstring | nullingredientIdstring (uuid) | nullnamestring | nullreplaceIdstring (uuid) | nullreplacementNamestring | nulladdOnGroupIdstring (uuid) | nulladdOnGroupNamestring | nullquantitynumber (double)freeAmountnumber (double)costnumber (double)totalCostnumber (double)positioninteger (int32)
metaobject | null2 fields in
metacountinteger (int32)offsetinteger (int32)
401Unauthorized
messagestring | null
404Not Found
messagestring | nullerrorCodestring (uuid)