Skip to content

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_idstringrequired

    The cart's ID, like cart_01k8qs5s….

Headers

  • X-Cart-Tokenstringrequired

    The cart's token

  • X-Customer-Tokenstringrequired

    Customer session token

  • 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

    One of the signed-in customer's orders.

Returns

200 The cart, and what stayed out.

Errors

  • 401unauthenticatedNo valid customer session.
  • 404not_foundNo such cart, or not their order.