Skip to content

Take back

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

Takes items back: refunds them back the way they were paid, from the drawer or as store credit, restocks them at the register's branch, and issues the return's e-receipt. Past the cashier's refund limit a manager approves. 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.

  • linesarray of objectsrequired
  • restockbooleanrequired
  • refund_toenumrequired

    Where a return's money goes.

    • original
    • cash
    • store_credit
    • exchange
  • reasonstring · or null

    changed_mind, wrong_shade, damaged, or typed.

  • approvalsarray of strings

Returns

201 Taken back.

Errors

  • 409A manager must approve, or cash can't refund an online payment.
  • 422validation_failedNothing to return, or more than is left.