B2Brouter

Automate E-Invoicing with B2Brouter API

Tax Report Setting → Update

AI-generated

Summary

Update a tax report setting on the B2Brouter API

Inputs

  • environment — Select the B2Brouter API environment to target (staging or production). The selected environment determines the base API URL (test → https://api-staging.b2brouter.net, live → https://api.b2brouter.net). Defaults to test if not set.
  • id (required) — The unique identifier of the tax report setting to update. This field is mandatory for the update operation and is displayed for get, update, and delete actions on the taxReportSetting resource.
  • updateFields — An object containing the fields to update on the tax report setting. Accepts any combination of the available fields; unspecified fields are left unchanged by the API.

Output shape

The operation returns a single-element array containing the updated tax report setting object as returned by the B2Brouter API. The exact shape of the returned object depends on the API response but typically includes the setting's current values for name, type, frequency, and currency.

The account ID used in the API path is automatically resolved from the node's credentials; it is not a user-configurable parameter for this operation. The HTTP method used is PUT, targeting the endpoint /accounts/{accountId}/tax_report_settings/{id} with the updateFields payload.

Examples

Example 1: Update the frequency of a tax report setting with ID 'setting_123' to 'monthly' on the live environment.

environment: live; id: setting_123; updateFields: { frequency: 'monthly' }

Links

Discussion