201Successful Response
Schema: SuccessEnvelope_SalesReceiptResponse_
successbooleanmessagestringcodestringdataSalesReceiptResponse
/api/v1/sales-receiptsCreate and post a sales receipt (or refund receipt).
Bearer token authentication. Pass your DayZero API token in the Authorization header and the target business UUID in x-business-id.
Schema: SalesReceiptCreateRequest
receipt_typestringOne of: sale, refund.
customer_idstringOptional customer (anonymous cash sales allowed).
receipt_datestring · dateReceipt date. Defaults to today when omitted.
deposit_to_ledger_idstringrequiredBank/cash ledger that receives (sale) or pays out (refund).
income_ledger_idstringRevenue ledger override. Defaults to the Invoice Sales system account.
line_itemsarray · SalesReceiptLineItemrequiredSalesReceiptLineItemAt least one line item is required.
catalog_item_idstringOptional catalog item this line is based on.
descriptionstringLine description.
quantitynumberQuantity sold/refunded.
unit_priceintegerrequiredPrice per unit in cents (e.g. 15000 = $150.00).
amountintegerLine total in cents. Computed from quantity * unit_price when omitted.
tax_totalintegerTotal sales tax in cents (posted to Sales Tax Payable).
numberstringOptional document number; auto-generated.
memostringOptional memo / note.
currencystringSchema: SuccessEnvelope_SalesReceiptResponse_
successbooleanmessagestringcodestringdataSalesReceiptResponseSchema: HTTPValidationError
detailarray · ValidationErrorValidationErrorlocarray · string | integerrequiredmsgstringrequiredtypestringrequiredinputobjectctxobject