Skip to content

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_idstringrequired

    The store's ID, like store_01k8qs5s…. Apps get it with the install, in the OAuth redirect and the token response.

Headers

  • Idempotency-Keystring

    Send the same key to retry safely: the first answer is replayed for 24 hours.

  • shop-api-versionYYYY-MM

    The version to answer in. Without it, your app’s pinned version, else the newest.

Body

  • namesobjectrequired

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

  • colorenumrequired

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

    • gray
    • blue
    • teal
    • green
    • amber
    • orange
    • red
    • purple
  • milestoneenum · or 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.

Returns

201 The status.

Errors

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