Create sales in bulk

Creates several sales in one request. Send an array of sale objects in the same format as Create a sale.

Not all-or-nothing

Each sale succeeds or fails on its own. You always get 200 with an object keyed by array position, like {"0": {"failed": false, "id": 123}, "1": {"failed": true, "error": "failed invalid store id"}}. Check every entry.

Bulk create also accepts customer_email to match customers. It doesn't create gift cards, deduct loyalty points or use promo codes, and it fires the sale_bulk_create hook instead of sale_create for each sale.

Body Params
Responses

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json