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

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

Quote refund

POST/admin/v1/stores/{store_id}/orders/{order_id}/refunds/quote
  • orders:refund
  • يدعم Idempotency-Key

Price a refund without doing it: the items' value, delivery and what can be returned.

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

  • store_idstringمطلوب

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

  • order_idstringمطلوب

    معرّف من نوع ord، مثل ord_01k8qs5s….

الترويسات

  • Idempotency-Keystring

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

  • shop-api-versionYYYY-MM

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

الجسم

  • linesarray of objects
  • shippinginteger · أو null

    Delivery money to return, in minor units.

  • amountinteger · أو null

    Money to return in minor units; omit for the items' value plus shipping.

  • reasonstring · أو null

    Shown to staff only.

  • notify_customerboolean

    Tell the customer about the refund (on the channels the store chose for it).

ما يُرجعه

200 What the refund would return.

الأخطاء

  • 403forbiddenMissing permission.
  • 404not_foundNo such order.
  • 409Nothing to refund.
  • 422validation_failedInvalid quantities or amounts.