Add item V2
https://core-api.ancon.io/api/v2/Outlets/{outletId}/Checks/AddItemAdds a check item to an existing check or creates a check and adds an item to it.
Authorization
Access-TokenheaderrequiredTenant- or outlet-level token from the backoffice. See Get started.
Path parameters
outletIdstring (uuid)required
Header parameters
correlationIdstringCorrelation Id for the request
Request body
itemobjectrequired9 fields in
itemvariantIdstring (uuid)requiredquantitynumber (double)requiredmin -100000, max 100000.
kitchenMessagestring | nullpriceobject | null2 fields in
priceunitPricenumber (double)additionalPricenumber (double)
upsellGroupIdstring (uuid) | nulltagstring | nullmodificationsarray<object> | null7 fields in
modificationsmodificationstring | nullingredientIdstring (uuid) | nulladdOnGroupIdstring (uuid) | nullreplaceIdstring (uuid) | nulldescriptionstring | nullquantitynumber (double)freeAmountnumber (double)
addOnProductsarray<object> | null5 fields in
addOnProductsvariantIdstring (uuid)addOnGroupIdstring (uuid)quantitynumber (double)freeAmountnumber (double)unitQuantitynumber (double) | null
subProductSpecificationarray<object> | nullGets or sets the list of sub product specifications. It is used when adding a multi product with sub product with optional variant. In those cases a variant has to be selected.
2 fields in
subProductSpecificationsubProductIdstring (uuid)subProductVariantIdstring (uuid)
courseIdstring (uuid) | nullcheckIdstring (uuid) | nullcheckobject | null6 fields in
checkorderFormatinteger (int32)requiredAllowed values:
0,1,2,4,8,16,32,64,128,159,191.salesLocationTypeinteger (int32)requiredAllowed values:
0,1,2,3.salesLocationIdstring (uuid)requiredguestCountinteger (int32) | nullcollectionTicketIdstring (uuid) | nullexternalTableIdstring | null
isPrepaidboolean
Responses
200OK
timestampinteger (int64)Gets the timestamp in Unix time milliseconds when this response is created.
checkItemobject | null48 fields in
checkItemidstring (uuid)createdstring (date-time)modifiedstring (date-time)productobject | null18 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) | nulluseBasePricebooleanisSystemProductbooleanproductNumberstring | nullvariantNumberstring | nullpositioninteger (int32) | nullstorageInfoobject | null2 fields in
storageInfotemperatureinteger (int32)sizeobject3 fields in
sizeheightinteger (int32)widthinteger (int32)lengthinteger (int32)
subProductQuantitynumber (double) | nullsubProductIdstring (uuid) | null
quantitynumber (double)unitQuantitynumber (double)unitobject | null2 fields in
unitnamestring | nulltypeinteger (int32)Allowed values:
0,1,2,3.
productPriceInclTaxobject2 fields in
productPriceInclTaxunitPricenumber (double)additionalPricenumber (double)
productMaterialCostobject2 fields in
productMaterialCostunitPricenumber (double)additionalPricenumber (double)
kitchenMessagestring | nulldiscountInfoobject | null2 fields in
discountInfodiscountIdstring (uuid) | nulldiscountNamestring | null
discountValueobject | null2 fields in
discountValuevaluenumber (double)typeinteger (int32)Allowed values:
0,1.
tagstring | nullpricePresetIdstring (uuid) | nullisTaxMandatorybooleanisMultiproductbooleanhasOwnPricebooleantaxesarray<object> | null2 fields in
taxestypeinteger (int32)Allowed values:
1,2.ratenumber (double)
productPriceExclTaxobject2 fields in
productPriceExclTaxunitPricenumber (double)additionalPricenumber (double)
priceInclTaxnumber (double)priceExclTaxnumber (double)totalPriceInclTaxnumber (double)totalPriceExclTaxnumber (double)productPricePerQuantityInclTaxnumber (double)totalMaterialCostExclTaxnumber (double)discountableAmountInclTaxnumber (double)discountAmountInclTaxnumber (double)discountAmountExclTaxnumber (double)totalDiscountAmountInclTaxnumber (double)totalDiscountAmountExclTaxnumber (double)modificationPriceInclTaxnumber (double)modificationPriceExclTaxnumber (double)discountablePriceInclTaxnumber (double)totalDiscountablePriceInclTaxnumber (double)checkPaymentIdstring (uuid) | nullpaidAtstring (date-time) | nullcheckIdstring (uuid)statusinteger (int32)Allowed values:
0,1,2,4,8,16,32.ticketedAtstring (date-time) | nullticketedTenantUserIdstring (uuid) | nullupsellGroupIdstring (uuid) | nullisPrepaidbooleanusedAccountIdstring (uuid) | nullcourseNamestring | nullcoursePositioninteger (int32)modificationsarray<object> | null11 fields in
modificationsmodificationstring | nullcostnumber (double)materialCostnumber (double)ingredientIdstring (uuid) | nulladdOnGroupIdstring (uuid) | nullreplaceIdstring (uuid) | nullnamestring | nullreplacementNamestring | nullquantitynumber (double)freeAmountnumber (double)positioninteger (int32)
subCheckItemsarray<object> | null42 fields in
subCheckItemsidstring (uuid)createdstring (date-time)modifiedstring (date-time)productobject | null18 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) | nulluseBasePricebooleanisSystemProductbooleanproductNumberstring | nullvariantNumberstring | nullpositioninteger (int32) | nullstorageInfoobject | null2 fields in
storageInfotemperatureinteger (int32)sizeobject3 fields in
sizeheightinteger (int32)widthinteger (int32)lengthinteger (int32)
subProductQuantitynumber (double) | nullsubProductIdstring (uuid) | null
quantitynumber (double)unitQuantitynumber (double)unitobject | null2 fields in
unitnamestring | nulltypeinteger (int32)Allowed values:
0,1,2,3.
productPriceInclTaxobject2 fields in
productPriceInclTaxunitPricenumber (double)additionalPricenumber (double)
productMaterialCostobject2 fields in
productMaterialCostunitPricenumber (double)additionalPricenumber (double)
kitchenMessagestring | nulldiscountInfoobject | null2 fields in
discountInfodiscountIdstring (uuid) | nulldiscountNamestring | null
discountValueobject | null2 fields in
discountValuevaluenumber (double)typeinteger (int32)Allowed values:
0,1.
tagstring | nullpricePresetIdstring (uuid) | nullisTaxMandatorybooleanisMultiproductbooleanhasOwnPricebooleantaxesarray<object> | null2 fields in
taxestypeinteger (int32)Allowed values:
1,2.ratenumber (double)
productPriceExclTaxobject2 fields in
productPriceExclTaxunitPricenumber (double)additionalPricenumber (double)
priceInclTaxnumber (double)priceExclTaxnumber (double)totalPriceInclTaxnumber (double)totalPriceExclTaxnumber (double)productPricePerQuantityInclTaxnumber (double)totalMaterialCostExclTaxnumber (double)discountableAmountInclTaxnumber (double)discountAmountInclTaxnumber (double)discountAmountExclTaxnumber (double)totalDiscountAmountInclTaxnumber (double)totalDiscountAmountExclTaxnumber (double)modificationPriceInclTaxnumber (double)modificationPriceExclTaxnumber (double)discountablePriceInclTaxnumber (double)totalDiscountablePriceInclTaxnumber (double)parentUseBasePricebooleanstatusinteger (int32)Allowed values:
0,1,2,4,8.usedAccountIdstring (uuid) | nullupsellGroupIdstring (uuid) | nullcourseNamestring | nullcoursePositioninteger (int32)modificationsarray<object> | null11 fields in
modificationsmodificationstring | nullcostnumber (double)materialCostnumber (double)ingredientIdstring (uuid) | nulladdOnGroupIdstring (uuid) | nullreplaceIdstring (uuid) | nullnamestring | nullreplacementNamestring | nullquantitynumber (double)freeAmountnumber (double)positioninteger (int32)
addOnProductsarray<object> | null38 fields in
addOnProductsidstring (uuid)createdstring (date-time)modifiedstring (date-time)productobject | null18 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) | nulluseBasePricebooleanisSystemProductbooleanproductNumberstring | nullvariantNumberstring | nullpositioninteger (int32) | nullstorageInfoobject | null2 fields in
storageInfotemperatureinteger (int32)sizeobject
subProductQuantitynumber (double) | nullsubProductIdstring (uuid) | null
quantitynumber (double)unitQuantitynumber (double)unitobject | null2 fields in
unitnamestring | nulltypeinteger (int32)Allowed values:
0,1,2,3.
productPriceInclTaxobject2 fields in
productPriceInclTaxunitPricenumber (double)additionalPricenumber (double)
productMaterialCostobject2 fields in
productMaterialCostunitPricenumber (double)additionalPricenumber (double)
kitchenMessagestring | nulldiscountInfoobject | null2 fields in
discountInfodiscountIdstring (uuid) | nulldiscountNamestring | null
discountValueobject | null2 fields in
discountValuevaluenumber (double)typeinteger (int32)Allowed values:
0,1.
tagstring | nullpricePresetIdstring (uuid) | nullisTaxMandatorybooleanisMultiproductbooleanhasOwnPricebooleantaxesarray<object> | null2 fields in
taxestypeinteger (int32)Allowed values:
1,2.ratenumber (double)
productPriceExclTaxobject2 fields in
productPriceExclTaxunitPricenumber (double)additionalPricenumber (double)
priceInclTaxnumber (double)priceExclTaxnumber (double)totalPriceInclTaxnumber (double)totalPriceExclTaxnumber (double)productPricePerQuantityInclTaxnumber (double)totalMaterialCostExclTaxnumber (double)discountableAmountInclTaxnumber (double)discountAmountInclTaxnumber (double)discountAmountExclTaxnumber (double)totalDiscountAmountInclTaxnumber (double)totalDiscountAmountExclTaxnumber (double)modificationPriceInclTaxnumber (double)modificationPriceExclTaxnumber (double)discountablePriceInclTaxnumber (double)totalDiscountablePriceInclTaxnumber (double)addOnGroupIdstring (uuid)addOnGroupNamestring | nullfreeAmountnumber (double) | nullpositioninteger (int32) | null
addOnProductsarray<object> | null38 fields in
addOnProductsidstring (uuid)createdstring (date-time)modifiedstring (date-time)productobject | null18 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) | nulluseBasePricebooleanisSystemProductbooleanproductNumberstring | nullvariantNumberstring | nullpositioninteger (int32) | nullstorageInfoobject | null2 fields in
storageInfotemperatureinteger (int32)sizeobject3 fields in
sizeheightinteger (int32)widthinteger (int32)lengthinteger (int32)
subProductQuantitynumber (double) | nullsubProductIdstring (uuid) | null
quantitynumber (double)unitQuantitynumber (double)unitobject | null2 fields in
unitnamestring | nulltypeinteger (int32)Allowed values:
0,1,2,3.
productPriceInclTaxobject2 fields in
productPriceInclTaxunitPricenumber (double)additionalPricenumber (double)
productMaterialCostobject2 fields in
productMaterialCostunitPricenumber (double)additionalPricenumber (double)
kitchenMessagestring | nulldiscountInfoobject | null2 fields in
discountInfodiscountIdstring (uuid) | nulldiscountNamestring | null
discountValueobject | null2 fields in
discountValuevaluenumber (double)typeinteger (int32)Allowed values:
0,1.
tagstring | nullpricePresetIdstring (uuid) | nullisTaxMandatorybooleanisMultiproductbooleanhasOwnPricebooleantaxesarray<object> | null2 fields in
taxestypeinteger (int32)Allowed values:
1,2.ratenumber (double)
productPriceExclTaxobject2 fields in
productPriceExclTaxunitPricenumber (double)additionalPricenumber (double)
priceInclTaxnumber (double)priceExclTaxnumber (double)totalPriceInclTaxnumber (double)totalPriceExclTaxnumber (double)productPricePerQuantityInclTaxnumber (double)totalMaterialCostExclTaxnumber (double)discountableAmountInclTaxnumber (double)discountAmountInclTaxnumber (double)discountAmountExclTaxnumber (double)totalDiscountAmountInclTaxnumber (double)totalDiscountAmountExclTaxnumber (double)modificationPriceInclTaxnumber (double)modificationPriceExclTaxnumber (double)discountablePriceInclTaxnumber (double)totalDiscountablePriceInclTaxnumber (double)addOnGroupIdstring (uuid)addOnGroupNamestring | nullfreeAmountnumber (double) | nullpositioninteger (int32) | null
checkobject | null5 fields in
checkidstring (uuid)ticketNumberinteger (int64)customNamestring | nullcustomTicketNumberinteger (int64) | nullorderFormatinteger (int32)Allowed values:
0,1,2,4,8,16,32,64,128,159,191.
400Bad Request
timestampinteger (int64)Gets the timestamp in Unix time milliseconds when this response is created.
messagestring | nullerrorCodestring (uuid)additionalDataany | null
401Unauthorized
timestampinteger (int64)Gets the timestamp in Unix time milliseconds when this response is created.
messagestring | null
404Not Found
timestampinteger (int64)Gets the timestamp in Unix time milliseconds when this response is created.
messagestring | nullerrorCodestring (uuid)
423Locked
timestampinteger (int64)Gets the timestamp in Unix time milliseconds when this response is created.
objectIdstring (uuid)objectTypestring | nulltimeoutstring | nullreasonstring | null