Switch order state

Switch the state of an existing order.

Path Params
string
required

A unique internal identifier of the Order in B2Brouter.

Body Params

Attributes to update the state of the order

string
enum
required

Some states for an order:

  • delivery_confirmed - When the order is marked as the order has been confirmed.
  • closed - When the order is marked as closed.
  • accepted - When the order is marked as accepted.
  • refused - When the order is marked as refused.
  • received - The initial status of an order or when the order is marked as received.
Allowed:
Headers
string
Defaults to 2026-03-02

Specifies the version of the API to use in this request. If not specified uses the API-Version set in the group conifguration B2Brouter UI Application -> Developers -> API Keys -> API Version

Responses

401

Unauthorized

404

Order not found

Language
Credentials
Header
URL
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json