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_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
order_idstringrequiredTypeID with the
ordprefix.linesarray of objectsrequiredrestockbooleanrequiredrefund_toenumrequiredWhere a return's money goes.
- original
- cash
- store_credit
- exchange
reasonstring · or nullchanged_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.
- 422
validation_failedNothing to return, or more than is left.