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_idstringrequiredThe cart's ID, like
cart_01k8qs5s….
Headers
X-Cart-TokenstringrequiredThe cart's 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.
Returns
204 Sent.
Errors
- 404
not_foundNo such cart. - 422
validation_failedThe cart has no phone. - 429
rate_limitedToo many codes for this cart.