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.
Path parameters
store_idstringrequiredThe store's ID, like
store_01k8qs5s…. Apps get it with the install, in the OAuth redirect and the token response.status_idstringrequiredThe status's ID, like
ostat_01k8qs5s….
Headers
If-Matchstring · or nullETag from the last read, e.g. "v3"
shop-api-versionYYYY-MMThe version to answer in. Without it, your app’s pinned version, else the newest.
Body
namesobjectrequiredThe name per language; the store's language needs one. 1–40 characters each.
colorenumrequiredThe colour a status is drawn in (the admin's palette).
- gray
- blue
- teal
- green
- amber
- orange
- red
- purple
milestoneenum · or 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.
Returns
200 The status.
Errors
- 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.