لم يُكتب وصف هذه العملية بالعربية بعد، فأوصافها بالإنجليزية.
Issue the order's invoice now
POST
/ admin/ v1/ stores/ {store_id}/ orders/ {order_id}/ invoices- orders:write
- يدعم Idempotency-Key
Issue the order's invoice now, before it is paid (paid orders get theirs automatically) — e.g. to put it in a cash-on-delivery parcel. Returns the invoice already issued, if any.
معاملات المسار
store_idstringمطلوبمعرّف من نوع
store، مثلstore_01k8qs5s…. يصل إلى التطبيق مع التثبيت، في رابط OAuth وفي رد رمز الوصول.order_idstringمطلوبمعرّف من نوع
ord، مثلord_01k8qs5s….
الترويسات
Idempotency-Keystringأرسل المفتاح نفسه لإعادة المحاولة بأمان: تُعاد الإجابة الأولى لمدة ٢٤ ساعة.
shop-api-versionYYYY-MMالإصدار الذي تُكتب به الإجابة. بدونه يُستخدم الإصدار المثبّت لتطبيقك، وإلا الأحدث.
ما يُرجعه
200 The order already had its invoice.
الأخطاء
- 403
forbiddenMissing permission. - 404
not_foundNo such order. - 409The order is cancelled.