Create receipt
loyverse_create_receiptRecord a completed sale in Loyverse by posting line items and a single payment, updating stock and sales reporting in real time.
Instructions
Record a sale. This posts a real transaction to the merchant's books and affects stock and reporting, so confirm the line items and total with the user before calling it. A receipt created through the API can carry only one payment type; split tender is not supported.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | ||
| order | No | Your own order reference. | |
| source | No | Name of the system recording the sale. | |
| payments | Yes | ||
| store_id | No | ||
| line_items | Yes | ||
| customer_id | No | ||
| employee_id | No | ||
| receipt_date | No | ISO 8601 timestamp. Defaults to now. | |
| total_discounts | No |