Get voucher details
get
https://voucher-api.ancon.io/public/api/v1/Outlets/{outletId}/OrderVoucherBases/{voucherBasisId}/VoucherBuilds the accounting voucher for a published voucher basis. Responds 400 with error code aad1dadd-f6c5-401c-9ae1-cdf0788dc952 (MissingAccountNumbers) when the outlet has no account number configured for a way of payment, product group, tax rate or fee on the voucher basis. The message lists what is missing and additionalData holds the same names per category (paymentMethods, productGroups, taxes, fees). The request keeps failing until the accounts are configured in Backoffice; retrying without a configuration change does not help.
Authorization
Access-TokenheaderrequiredTenant- or outlet-level token from the backoffice. See Get started.
Path parameters
outletIdstring (uuid)requiredvoucherBasisIdstring (uuid)required
Query parameters
PartTypeinteger (int32)Allowed values:
0,1,2.
Header parameters
correlationIdstringCorrelation Id for the request
Responses
200OK
voucherobject | null9 fields in
vouchertitlestring | nullvoucherNostring | nulltrackingobject | null2 fields in
trackingcostCenterstring | nullprojectstring | null
custom1string | nullcustom2string | nullcustom3string | nullcustom4string | nullcurrencyCodestring | nullitemsarray<object> | null10 fields in
itemsaccountNumberstring | nulldebitnumber (double)creditnumber (double)namestring | nulltrackingobject | null2 fields in
trackingcostCenterstring | nullprojectstring | null
custom1string | nullcustom2string | nullcustom3string | nullcustom4string | nullcustom5string | null
400Bad Request
messagestring | nullerrorCodestring (uuid)additionalDataany | null
401Unauthorized
404Not Found
messagestring | nullerrorCodestring (uuid)