Skip to content

Exchanges items in one step

POST/admin/v1/stores/{store_id}/pos/sessions/{session_id}/exchanges
  • Idempotency-Key supported

Exchanges items in one step: what comes back is refunded on its order, its worth comes off the new sale, and the customer pays the difference (or the rest goes back). 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

  • order_idstringrequired

    TypeID with the ord prefix.

  • backarray of objectsrequired
  • restockbooleanrequired
  • rest_toenumrequired

    When the new items cost less: original, cash or store_credit.

    • original
    • cash
    • store_credit
    • exchange
  • saleobjectrequired

    The sale of what goes out; its payments pay the difference.

  • reasonstring · or null
  • approvalsarray of strings

Returns

201 Exchanged: the new sale's receipt.

Errors

  • 409A manager must approve, or the total changed.