Skip to content

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_idstringrequired

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

  • status_idstringrequired

    The status's ID, like ostat_01k8qs5s….

Headers

  • If-Matchstring · or null

    ETag from the last read, e.g. "v3"

  • 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

200 The status.

Errors

  • 403forbiddenMissing permission.
  • 404not_foundNo such active status.
  • 409The milestone is taken.
  • 412precondition_failedThe status changed since it was read.
  • 422validation_failedInvalid names or messages.