Skip to content

Verify COD code

POST/store/v1/carts/{cart_id}/cod-verification/verify
  • Idempotency-Key supported

Check the code; the phone stays verified for the cart.

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.

Body

  • codestringrequired

    The 6 digits sent to the cart's phone.

Returns

204 Verified.

Errors

  • 404not_foundNo such cart.
  • 422validation_failedWrong or expired code.