Get ticket details
https://core-api.ancon.io/api/v1/Outlets/{outletId}/Tickets/{ticketId}Authorization
Access-TokenheaderrequiredTenant- or outlet-level token from the backoffice. See Get started.
Path parameters
outletIdstring (uuid)requiredticketIdstring (uuid)required
Header parameters
correlationIdstringCorrelation Id for the request
Responses
200OK
ticketobject | null25 fields in
ticketidstring (uuid)incrementalNumbersobject | null4 fields in
incrementalNumbersticketNumberinteger (int64) | nullUnique 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.
serialNumberinteger (int64) | nullUnbroken sequence per outlet which statisfies the needs of certain pos system laws, is only used on Checks.
referenceNumberinteger (int64) | nullUnbroken sequence per outlet which is used for all types of sales. Suitable for correlation between systems.
refundSerialNumberinteger (int64) | nullUses same series as SerialNumber and is set on orders which is refunded.
orderFormatinteger (int32)Allowed values:
0,1,2,4,8,16,32,64,128,159,191.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 | nullcustomerobject | null5 fields in
customeremailstring | nullfullNamestring | nullcustomerIdstring (uuid) | nulladdressobject | null6 fields in
addressstreetstring | nullzipCodestring | nullcitystring | nullstatestring | nullcountrystring | nulllocationobject | null2 fields in
locationlatitudenumber (double)longitudenumber (double)
phonestring | null
salesLocationobject | 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
deliveryobject | null3 fields in
deliveryaddressobject | null6 fields in
addressstreetstring | nullzipCodestring | nullcitystring | nullstatestring | nullcountrystring | nulllocationobject | null2 fields in
locationlatitudenumber (double)longitudenumber (double)
phonestring | nullrecipientstring | null
statusinteger (int32)Allowed values:
0,1,2,3,4,5.instructionsstring | nullacceptedAtstring (date-time)preparingAtstring (date-time) | nullreadyAtstring (date-time) | nullclosedAtstring (date-time) | nullautoModeinteger (int32)Allowed values:
0,1,2,3.sourcestring | nullsaleSourceIdstring (uuid)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
feesarray<object> | null5 fields in
feesidstring (uuid)feeIdstring (uuid)namestring | nullamountInclTaxobject | null2 fields in
amountInclTaxamountnumber (double)currencystring | null
amountExclTaxobject | null2 fields in
amountExclTaxamountnumber (double)currencystring | null
subTicketsarray<object> | null3 fields in
subTicketsidstring (uuid)ticketDestinationIdstring (uuid)isCompletedboolean
itemsarray<object> | null16 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)
courseNamestring | nullcoursePositioninteger (int32)statusinteger (int32)Allowed values:
0,1,2,3,4,5.ticketItemsarray<object> | nullticketItemTypeinteger (int32)Allowed values:
0,1,2.
401Unauthorized
messagestring | null
404Not Found
messagestring | nullerrorCodestring (uuid)