انتقل إلى المحتوى

لم يُكتب وصف هذه العملية بالعربية بعد، فأوصافها بالإنجليزية.

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.

الأخطاء

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