Skip to content

Complete sale

POST/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_idstringrequired

    The store's ID, like store_01k8qs5s…. Apps get it with the install, in the OAuth redirect and the token response.

  • session_idstringrequired

    The session's ID, like pses_01k8qs5s….

Headers

  • x-pos-clerkstringrequired

    The clerk's unlock

  • Idempotency-Keystring

    Send the same key to retry safely: the first answer is replayed for 24 hours.

  • shop-api-versionYYYY-MM

    The version to answer in. Without it, your app’s pinned version, else the newest.

Body

  • linesarray of objectsrequired
  • sale_idstringrequired

    The 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 | objectsrequired
  • expected_totalintegerrequired

    The total the customer was shown, minor units: refused if the price changed since.

  • customer_idstring · or null

    TypeID with the cus prefix.

  • emailstring · or null

    Sends the customer the order confirmation, their receipt by email.

  • phonestring · or null

    The 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.
  • 422validation_failedPayments don't add up, or not enough stock here.