لم يُكتب وصف هذه العملية بالعربية بعد، فأوصافها بالإنجليزية.
Update custom status
PUT
/ admin/ v1/ stores/ {store_id}/ order-statuses/ {status_id}- settings:write
Change a status. Send If-Match: "v{version}" to avoid overwriting someone else's change.
معاملات المسار
store_idstringمطلوبمعرّف من نوع
store، مثلstore_01k8qs5s…. يصل إلى التطبيق مع التثبيت، في رابط OAuth وفي رد رمز الوصول.status_idstringمطلوبمعرّف من نوع
ostat، مثلostat_01k8qs5s….
الترويسات
If-Matchstring · أو nullETag from the last read, e.g. "v3"
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.
ما يُرجعه
200 The status.
الأخطاء
- 403
forbiddenMissing permission. - 404
not_foundNo such active status. - 409The milestone is taken.
- 412
precondition_failedThe status changed since it was read. - 422
validation_failedInvalid names or messages.