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

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

Update draft order

PUT/admin/v1/stores/{store_id}/draft-orders/{draft_id}
  • orders:write

Replace the draft. A draft already sent keeps its link, which shows the new quote. Send If-Match.

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

  • store_idstringمطلوب

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

  • draft_idstringمطلوب

    معرّف من نوع draft، مثل draft_01k8qs5s….

الترويسات

  • If-Matchstring · أو null

    ETag from the last read, e.g. "v3"

  • shop-api-versionYYYY-MM

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

الجسم

  • customer_idstring · أو null

    An existing customer; their email, phone and language fill in what is left blank.

  • emailstring · أو null
  • phonestring · أو null
  • localestring · أو null

    The customer's language for the invoice, e.g. ar.

  • linesarray of objects
  • shipping_addressobject · أو null

    An address for a checkout. Named apart from customers' saved addresses in the API documents.

  • billing_addressobject · أو null

    An address for a checkout. Named apart from customers' saved addresses in the API documents.

  • shippingobject | object · أو null

    How the order is delivered.

ما يُرجعه

200 Saved, priced.

الأخطاء

  • 403forbiddenMissing permission.
  • 404not_foundNo such draft.
  • 409Already an order (draft_completed) or being paid (payment_in_progress).
  • 412precondition_failedChanged since read.
  • 422validation_failedValidation failed.