Create custom status
POST
/ admin/ v1/ stores/ {store_id}/ order-statuses- settings:write
- Idempotency-Key supported
Add a status at the end of the list. At most 30.
Path parameters
store_idstringrequiredThe store's ID, like
store_01k8qs5s…. Apps get it with the install, in the OAuth redirect and the token response.
Headers
Idempotency-KeystringSend the same key to retry safely: the first answer is replayed for 24 hours.
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
201 The status.
Errors
- 403
forbiddenMissing permission. - 40930 statuses already, or the milestone is taken.
- 422
validation_failedInvalid names or messages.