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

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

Create custom status

POST/admin/v1/stores/{store_id}/order-statuses
  • settings:write
  • يدعم Idempotency-Key

Add a status at the end of the list. At most 30.

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

  • store_idstringمطلوب

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

الترويسات

  • Idempotency-Keystring

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

  • shop-api-versionYYYY-MM

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

الجسم

  • namesobjectمطلوب

    The name per language; the store's language needs one. 1–40 characters each.

  • colorenumمطلوب

    The colour a status is drawn in (the admin's palette).

    • gray
    • blue
    • teal
    • green
    • amber
    • orange
    • red
    • purple
  • milestoneenum · أو null

    Something that happens to an order and moves it to the status bound to it.

    • placed
    • confirmed
    • paid
    • shipped
    • delivered
    • cancelled
  • shown_to_customerboolean
  • notify_customerboolean
  • messagesobject

    Up to 300 characters per language.

ما يُرجعه

201 The status.

الأخطاء

  • 403forbiddenMissing permission.
  • 40930 statuses already, or the milestone is taken.
  • 422validation_failedInvalid names or messages.