B2Brouter

Automate E-Invoicing with B2Brouter API

Invoice → Change State

AI-generated

Summary

Change the state of a specific invoice by setting a new state and optionally providing a reason code and description.

Inputs

  • Environment — Select the B2Brouter API environment (Test/Staging or Live/Production).
  • Invoice ID (required) — The ID of the invoice to update.
  • State (required) — The new state to assign to the invoice. Valid options include Accepted, Annotated, Closed, Downloaded, New, Paid, Refused, Registered, and Sent.
  • State Options — Optional details about the state change, including a Reason Code and Reason Description.

Output shape

a single JSON object representing the updated invoice state or API response.

Returns the response from the B2Brouter API after changing the invoice state. Errors like validation or authentication issues may be thrown and must be handled by the workflow.

Examples

Example 1: Change the state of an invoice to 'paid' with a reason code and description

Set 'Invoice ID' to the target invoice's ID, 'State' to 'paid', and provide 'Reason Code' and 'Reason Description' in 'State Options'.

Links

Discussion