Accounting VAT
Update tax code
Changed onApply per-subsidiary status changes (partial-apply; unlisted subsidiaries unchanged). Name and rate are immutable.
patch/v3/accounting/integration/{integration_id}/tax-codes/{brex_id}
Request
- Base URLhttps://api.brex.com
- Auth
- HTTP bearer
- or OAuth 2Authorization codehttps://accounts-api.brex.com/oauth2/default/v1/authorizeToken URLhttps://accounts-api.brex.com/oauth2/default/v1/tokenScopesaccounting.integration.write
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
brex_idstring required
integration_idstring required
Headers
Idempotency-Keystring
Caller-generated key (recommend a v4 UUID) that uniquely identifies this logical request. Reuse the same value when retrying so the request is de-duplicated.
Request body
Example request
{
"subsidiaries": [
{
"status": "ENABLED",
"subsidiary_id": "sub_uk_ltd"
}
]
}Response
Tax code updated
Example response
{
"brex_id": "tc_abc123",
"name": "UK Standard",
"rate": 20,
"remote_id": "remote-tax-uk-vat-20",
"subsidiaries": [
{
"status": "ENABLED",
"subsidiary_id": "sub_uk_ltd",
"subsidiary_name": "UK Ltd"
}
],
"updated_at": "2025-01-01T00:00:00Z"
}Changes
- info
endpoint added
- info