لم يُكتب وصف هذه العملية بالعربية بعد، فأوصافها بالإنجليزية.
Close return
POST
/ admin/ v1/ stores/ {store_id}/ returns/ {return_id}/ close- يدعم Idempotency-Key
Closes a received return with a refund, an exchange draft order, or nothing. (and orders:write for exchanges).
معاملات المسار
store_idstringمطلوبمعرّف من نوع
store، مثلstore_01k8qs5s…. يصل إلى التطبيق مع التثبيت، في رابط OAuth وفي رد رمز الوصول.return_idstringمطلوبمعرّف من نوع
rtn، مثلrtn_01k8qs5s….
الترويسات
Idempotency-Keystringأرسل المفتاح نفسه لإعادة المحاولة بأمان: تُعاد الإجابة الأولى لمدة ٢٤ ساعة.
shop-api-versionYYYY-MMالإصدار الذي تُكتب به الإجابة. بدونه يُستخدم الإصدار المثبّت لتطبيقك، وإلا الأحدث.
الجسم
resolutionenumمطلوبWhat the customer got for the returned units.
- refund
- exchange
- none
- store_credit
amountinteger · أو nullRefunds only: less than the computed amount (minor units).
notify_customerboolean · أو nullRefunds only: email the customer. Defaults to
true.
ما يُرجعه
200 Closed.
الأخطاء
- 409Not received yet.