B2Brouter

Automate E-Invoicing with B2Brouter API

Order → Change State

AI-generated

Summary

Changes the state of an existing order in B2Brouter by sending POST /orders/{id}/state with the selected state.

Inputs

  • environment — Select the B2Brouter API environment. Test (Staging) uses https://api-staging.b2brouter.net; Live (Production) uses https://api.b2brouter.net. Defaults to test.
  • id (required) — The ID of the order whose state will be changed. Required.
  • state (required) — The new state for the order: accepted, cancelled, or rejected. Required; defaults to accepted.

Output shape

JSON item(s) returned by the API

One JSON item is returned per input item, containing the B2Brouter API response from POST /orders/{id}/state. The exact response shape is the API's response for the order after the state change and is passed through unchanged.

Examples

Example 1: Select the Order resource, choose Change State, pick the API environment, enter the Order ID, and select the new State. The node sends a POST request to /orders/{id}/state with a JSON body containing the chosen state. Order ID and State can be expressions, so they can reference values from incoming workflow items. The API response for the updated order is returned as one JSON item per input item.

Changes the state of an existing B2Brouter order to accepted, cancelled, or rejected.

Links

Discussion