Skip to content

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_idstringrequired

    The cart's ID, like cart_01k8qs5s….

Headers

  • 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

  • tokenstringrequired
  • discount_codestring · or null

    The code the reminder offered (discount in the link); applied when it still applies.

Returns

200 The reopened cart and its new token.

Errors

  • 404not_foundUnknown cart or wrong token.
  • 409The cart already placed an order (cart_completed).