Skip to content

Send COD code

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

Send the code that verifies the cart's delivery phone, when the store asks for it before cash on delivery (a checkout attempt answers 409 cod_verification_required). Sent by SMS, or WhatsApp when the store uses it.

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

204 Sent.

Errors

  • 404not_foundNo such cart.
  • 422validation_failedThe cart has no phone.
  • 429rate_limitedToo many codes for this cart.