Skip to content

Confirm checkout

POST/store/v1/carts/{cart_id}/checkout/confirm
  • Idempotency-Key supported

After the customer returns from the payment provider: checks the payment with the provider and places the order when it succeeded. Safe to call repeatedly.

Path parameters

  • cart_idstringrequired

    The cart's ID, like cart_01k8qs5s….

Headers

  • X-Cart-Tokenstringrequired

    The cart's 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.

Returns

200 Where checkout stands.

Errors

  • 404not_foundNo such cart.
  • 409No payment in progress.
  • 503unavailableThe provider did not answer; confirm again.