لم يُكتب وصف هذه العملية بالعربية بعد، فأوصافها بالإنجليزية.
Record COD remittance
POST
/ admin/ v1/ stores/ {store_id}/ cod-remittances- orders:write
- يدعم Idempotency-Key
Records a carrier's cash-on-delivery remittance: each waybill is matched to its shipment and the orders paid for are marked paid.
معاملات المسار
store_idstringمطلوبمعرّف من نوع
store، مثلstore_01k8qs5s…. يصل إلى التطبيق مع التثبيت، في رابط OAuth وفي رد رمز الوصول.
الترويسات
Idempotency-Keystringأرسل المفتاح نفسه لإعادة المحاولة بأمان: تُعاد الإجابة الأولى لمدة ٢٤ ساعة.
shop-api-versionYYYY-MMالإصدار الذي تُكتب به الإجابة. بدونه يُستخدم الإصدار المثبّت لتطبيقك، وإلا الأحدث.
الجسم
carrier_account_idstringمطلوبTypeID with the
carrprefix.referencestringمطلوبThe carrier's statement or transfer number.
statementstringمطلوبOne waybill and amount per line (copied from the carrier's sheet: tabs, semicolons or commas between them; a header row is skipped).
ما يُرجعه
201 Recorded, with each line's outcome.
الأخطاء
- 409This reference was recorded before.
- 422
validation_failedInvalid input.