لم يُكتب وصف هذه العملية بالعربية بعد، فأوصافها بالإنجليزية.
Send COD code
POST
/ store/ v1/ carts/ {cart_id}/ cod-verification- يدعم Idempotency-Key
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.
معاملات المسار
cart_idstringمطلوبمعرّف من نوع
cart، مثلcart_01k8qs5s….
الترويسات
X-Cart-TokenstringمطلوبThe cart's token
Idempotency-Keystringأرسل المفتاح نفسه لإعادة المحاولة بأمان: تُعاد الإجابة الأولى لمدة ٢٤ ساعة.
shop-api-versionYYYY-MMالإصدار الذي تُكتب به الإجابة. بدونه يُستخدم الإصدار المثبّت لتطبيقك، وإلا الأحدث.
ما يُرجعه
204 Sent.
الأخطاء
- 404
not_foundNo such cart. - 422
validation_failedThe cart has no phone. - 429
rate_limitedToo many codes for this cart.