Create checkout payment.
https://core-api.ancon.io/api/v1/Outlets/{outletId}/Checkouts/{checkoutId}/PaymentsAuthorization
Access-TokenheaderrequiredTenant- or outlet-level token from the backoffice. See Get started.
Path parameters
outletIdstring (uuid)requiredcheckoutIdstring (uuid)required
Header parameters
correlationIdstringCorrelation Id for the request
Request body
amountobjectrequiredPaid amount, must match the total amount of the checkout.
2 fields in
amountamountnumber (double)currencystring | null
customerobjectrequired5 fields in
customerfirstNamestringrequiredlastNamestringrequiredemailstringrequiredlanguageCodestring | nulltelephoneNumberstring | null
transactionDatestring (date-time)requiredTransaction date will be set to the checkout payment, should match a date time on the integrator side.
transactionIdstringrequiredTransaction id of the payment, should match a id on integrator side.
transactionDatastringrequiredTransaction data of the payment, should contain information about the transaction.
addtionalTransactionDatastring | nullOptional addtional data for the transaction.
Responses
201Created
checkoutobject | null38 fields in
checkoutidstring (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.
createdstring (date-time)modifiedstring (date-time)outletobject | null2 fields in
outletidstring (uuid)namestring | null
salesLocationobject | null2 fields in
salesLocationsalesLocationIdstring (uuid) | nulltypeinteger (int32)Allowed values:
0,1,2,3.
tableobject | null2 fields in
tableidstring (uuid)numberinteger (int32)
discountobject | null2 fields in
discountidstring (uuid) | nullnamestring | null
statusinteger (int32)Allowed values:
0,1,2,3,4,5,6,7,8,9,-2,-1.customerobject | null6 fields in
customeremailstring | nullfullNamestring | nullcustomerIdstring (uuid) | nullidentityUserIdstring (uuid) | nulladdressobject | null6 fields in
addressstreetstring | nullzipCodestring | nullcitystring | nullstatestring | nullcountrystring | nulllocationobject | null2 fields in
locationlatitudenumber (double)longitudenumber (double)
phonestring | 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
instructionsstring | 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
sourcestring | nullsaleSourceIdstring (uuid)orderIdstring (uuid) | nullauthorizedAtstring (date-time) | nullcapturedAtstring (date-time) | nullcanceledAtstring (date-time) | nullcancelInfoobject | null4 fields in
cancelInfoactorstring | nullactorIdstring | nullreasonstring | nullreasonDescstring | null
totalAmountobject | null2 fields in
totalAmountamountnumber (double)currencystring | null
taxAmountobject | null2 fields in
taxAmountamountnumber (double)currencystring | null
subtotalInclTaxobject | null2 fields in
subtotalInclTaxamountnumber (double)currencystring | null
subtotalExclTaxobject | null2 fields in
subtotalExclTaxamountnumber (double)currencystring | null
subTotalDiscountInclTaxobject | null2 fields in
subTotalDiscountInclTaxamountnumber (double)currencystring | null
subTotalDiscountExclTaxobject | null2 fields in
subTotalDiscountExclTaxamountnumber (double)currencystring | null
feeAmountInclTaxobject | null2 fields in
feeAmountInclTaxamountnumber (double)currencystring | null
feeAmountExclTaxobject | null2 fields in
feeAmountExclTaxamountnumber (double)currencystring | null
minimumOrderDifferenceAmountobject | null2 fields in
minimumOrderDifferenceAmountamountnumber (double)currencystring | null
summarystring | nullcurrencystring | nullminimumOrderAmountobject | null2 fields in
minimumOrderAmountamountnumber (double)currencystring | null
itemsarray<object> | null20 fields in
itemsidstring (uuid)checkoutIdstring (uuid)productobject | null9 fields in
productproductIdstring (uuid)productNamestring | nullproductTypeinteger (int32)Allowed values:
0,1,2,3,4,5,6,7,8,9,10.variantIdstring (uuid)variantNamestring | nullhasVariantsbooleanproductGroupIdstring (uuid)productGroupNamestring | nulluseBasePriceboolean
quantitynumber (double)unitQuantitynumber (double)unitobject | null2 fields in
unitnamestring | nulltypeinteger (int32)Allowed values:
0,1,2,3.
productPriceInclTaxobject | null2 fields in
productPriceInclTaxunitPriceobject | null2 fields in
unitPriceamountnumber (double)currencystring | null
additionalPriceobject | null2 fields in
additionalPriceamountnumber (double)currencystring | null
productPriceExclTaxobject | null2 fields in
productPriceExclTaxunitPriceobject | null2 fields in
unitPriceamountnumber (double)currencystring | null
additionalPriceobject | null2 fields in
additionalPriceamountnumber (double)currencystring | null
productMaterialCostExclTaxobject | null2 fields in
productMaterialCostExclTaxunitPriceobject | null2 fields in
unitPriceamountnumber (double)currencystring | null
additionalPriceobject | null2 fields in
additionalPriceamountnumber (double)currencystring | null
hasVariantsbooleandiscountobject | null2 fields in
discountvaluenumber (double) | nulltypeinteger (int32) | nullAllowed values:
0,1.
taxesarray<object> | null2 fields in
taxestypeinteger (int32)Allowed values:
1,2.ratenumber (double)
modificationsarray<object> | null12 fields in
modificationsmodificationstring | nullingredientIdstring (uuid) | nullnamestring | nullreplaceIdstring (uuid) | nullreplacementNamestring | nulladdOnGroupIdstring (uuid) | nulladdOnGroupNamestring | nullquantitynumber (double)freeAmountnumber (double)costnumber (double)totalCostnumber (double)positioninteger (int32)
totalPriceInclTaxobject | null2 fields in
totalPriceInclTaxamountnumber (double)currencystring | null
totalPriceExclTaxobject | null2 fields in
totalPriceExclTaxamountnumber (double)currencystring | null
totalMaterialCostExclTaxobject | null2 fields in
totalMaterialCostExclTaxamountnumber (double)currencystring | null
discountAmountInclTaxobject | null2 fields in
discountAmountInclTaxamountnumber (double)currencystring | null
discountAmountExclTaxobject | null2 fields in
discountAmountExclTaxamountnumber (double)currencystring | null
stockobject | null5 fields in
stockidstring (uuid)productIdstring (uuid)variantIdstring (uuid)countnumber (double)reorderCountnumber (double)
upsellGroupIdstring (uuid) | null
feesarray<object> | null6 fields in
feesidstring (uuid)feeIdstring (uuid)feeNamestring | nullamountInclTaxobject | null2 fields in
amountInclTaxamountnumber (double)currencystring | null
amountExclTaxobject | null2 fields in
amountExclTaxamountnumber (double)currencystring | null
taxesarray<object> | null2 fields in
taxestypeinteger (int32)Allowed values:
1,2.ratenumber (double)
paymentsarray<object> | null8 fields in
paymentsidstring (uuid)createdstring (date-time)modifiedstring (date-time)statusinteger (int32)Allowed values:
0,1,3,4,5,6,7,8.amountobject | null2 fields in
amountamountnumber (double)currencystring | null
providerinteger (int32)Allowed values:
0,1,2,3,-1.methodobject | null3 fields in
methodidstring | nulltypeinteger (int32)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.displayNamestring | null
transactionsarray<object> | null13 fields in
transactionsidstring (uuid)createdstring (date-time)modifiedstring (date-time)typeinteger (int32)Allowed values:
0,1,2,3,4,5,6.statusinteger (int32)Allowed values:
0,1,2,3,4,5,6.providerTransactionIdstring | nullproviderDataJsonstring | nullerrorDetailsstring | nullnotificationJsonstring | nullpaymentProviderCodestring | nullpaymentProviderDatastring | nullnotificationReceivedbooleanproviderAdditionalDatastring | null
ticketsarray<object> | null4 fields in
ticketsidstring (uuid)statusinteger (int32)Allowed values:
0,1,2,3,4,5.preparationTimestring | nullticketIdstring (uuid)
401Unauthorized
messagestring | null
404Not Found
messagestring | nullerrorCodestring (uuid)