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

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

Approve return

POST/admin/v1/stores/{store_id}/returns/{return_id}/approve
  • orders:write
  • يدعم Idempotency-Key

Approves a requested return, optionally booking a carrier return label, and emails the customer how to send it back.

معاملات المسار

  • store_idstringمطلوب

    معرّف من نوع store، مثل store_01k8qs5s…. يصل إلى التطبيق مع التثبيت، في رابط OAuth وفي رد رمز الوصول.

  • return_idstringمطلوب

    معرّف من نوع rtn، مثل rtn_01k8qs5s….

الترويسات

  • Idempotency-Keystring

    أرسل المفتاح نفسه لإعادة المحاولة بأمان: تُعاد الإجابة الأولى لمدة ٢٤ ساعة.

  • shop-api-versionYYYY-MM

    الإصدار الذي تُكتب به الإجابة. بدونه يُستخدم الإصدار المثبّت لتطبيقك، وإلا الأحدث.

الجسم

  • labelobject · أو null

    Book a carrier label for the customer to send the parcel back with.

  • notify_customerboolean · أو null

    Email the customer how to send it back. Defaults to true.

ما يُرجعه

200 Approved.

الأخطاء

  • 409Not requested, or the carrier refused.