Recover cart
POST
/ store/ v1/ carts/ {cart_id}/ recover- Idempotency-Key supported
Reopen a cart from its recovery link (/checkouts/{cart_id}/recover?token=…&discount=… in reminders). The cart gets a new token, returned here: the old one stops working. A payment left in progress is cancelled, and the reminder's discount code is applied when it still applies.
Path parameters
cart_idstringrequiredThe cart's ID, like
cart_01k8qs5s….
Headers
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
tokenstringrequireddiscount_codestring · or nullThe code the reminder offered (
discountin the link); applied when it still applies.
Returns
200 The reopened cart and its new token.
Errors
- 404
not_foundUnknown cart or wrong token. - 409The cart already placed an order (
cart_completed).