Complete sale
/ admin/ v1/ stores/ {store_id}/ pos/ sessions/ {session_id}/ sales- Idempotency-Key supported
Takes payment with any of the counter's tenders, places the order (paid, on account, or as a deposit), hands over what is sold here, and returns the receipt. The same sale_id again returns the sale already made. Requires the clerk's unlock.
Path parameters
store_idstringrequiredThe store's ID, like
store_01k8qs5s…. Apps get it with the install, in the OAuth redirect and the token response.session_idstringrequiredThe session's ID, like
pses_01k8qs5s….
Headers
x-pos-clerkstringrequiredThe clerk's unlock
Idempotency-KeystringSend the same key to retry safely: the first answer is replayed for 24 hours.
shop-api-versionYYYY-MMThe version to answer in. Without it, your app’s pinned version, else the newest.
Body
linesarray of objectsrequiredsale_idstringrequiredThe sale's own ID, from its first scan: a retry with it returns the sale already made.
paymentsarray of object | object | object | object | object | object | object | objectsrequiredexpected_totalintegerrequiredThe total the customer was shown, minor units: refused if the price changed since.
customer_idstring · or nullTypeID with the
cusprefix.emailstring · or nullSends the customer the order confirmation, their receipt by email.
phonestring · or nullThe customer's phone, for a walk-in who gives one.
discount_codesarray of strings
Returns
201 Sold.
Errors
- 409The session is closed, the total changed, an item can't be sold, a manager must approve (
approval_required), or a payment isn't confirmed. - 422
validation_failedPayments don't add up, or not enough stock here.