Buy again
POST
/ store/ v1/ carts/ {cart_id}/ buy-again- Idempotency-Key supported
Add a past order's items to the cart, at today's prices.
Path parameters
cart_idstringrequiredThe cart's ID, like
cart_01k8qs5s….
Headers
X-Cart-TokenstringrequiredThe cart's token
X-Customer-TokenstringrequiredCustomer session token
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_idstringrequiredOne of the signed-in customer's orders.
Returns
200 The cart, and what stayed out.
Errors
- 401
unauthenticatedNo valid customer session. - 404
not_foundNo such cart, or not their order.