لم يُكتب وصف هذه العملية بالعربية بعد، فأوصافها بالإنجليزية.
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 · أو nullSomething that happens to an order and moves it to the status bound to it.
- placed
- confirmed
- paid
- shipped
- delivered
- cancelled
shown_to_customerbooleannotify_customerbooleanmessagesobjectUp to 300 characters per language.
ما يُرجعه
201 The status.
الأخطاء
- 403
forbiddenMissing permission. - 40930 statuses already, or the milestone is taken.
- 422
validation_failedInvalid names or messages.