لم يُكتب وصف هذه العملية بالعربية بعد، فأوصافها بالإنجليزية.
Send draft invoice
POST
/ admin/ v1/ stores/ {store_id}/ draft-orders/ {draft_id}/ invoice- يدعم Idempotency-Key
Send the customer a link to pay the draft in the store's checkout, on the channels set for the draft_order_invoice message. Sending again sends the same link.
معاملات المسار
store_idstringمطلوبمعرّف من نوع
store، مثلstore_01k8qs5s…. يصل إلى التطبيق مع التثبيت، في رابط OAuth وفي رد رمز الوصول.draft_idstringمطلوبمعرّف من نوع
draft، مثلdraft_01k8qs5s….
الترويسات
Idempotency-Keystringأرسل المفتاح نفسه لإعادة المحاولة بأمان: تُعاد الإجابة الأولى لمدة ٢٤ ساعة.
shop-api-versionYYYY-MMالإصدار الذي تُكتب به الإجابة. بدونه يُستخدم الإصدار المثبّت لتطبيقك، وإلا الأحدث.
الجسم
messagestring · أو nullA personal note shown in the invoice (up to 1,000 characters).
ما يُرجعه
200 Sent; the draft with its link.
الأخطاء
- 403
forbiddenMissing permission. - 404
not_foundNo such draft. - 409No items for sale (
draft_not_ready), no contact (no_contact), already an order, or being paid.