POST /receipts for a caller that hasn't set up its catalogue: each line names an existing item (item_id) or defines one (item), and the buyer names an existing customer (customer_id) or defines one (customer). The items and customer are found or created together with the receipt, so a refused receipt creates none of them, and a retry with the same trader_invoice_number returns the receipt already issued. An inline item with a barcode, or customer with a buyer_tin, that already exists with a different definition returns 409 with metadata.item_id or metadata.customer_id and metadata.fields - it is never updated. Receipt validation fails exactly as POST /receipts does; a catalogue error carries metadata.line_no (1-based) or metadata.source "buyer".
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||