View and manage accounting integrations.
APIs/Accounting//
- Reactivate accounting integration
Create accounting integration
Disconnect accounting integration
Reactivate accounting int...
Accounting API (1.0.0-alpha)
The Accounting API allows you to manage accounting data for connecting to your accounting system. The Accounting API is currently in Alpha. To access the Accounting Alpha API, please email developer-support@brex.com to express your interest. Please note that participation is determined by Brex based on program needs. For more details, please refer to https://developer.brex.com/docs/api-launch-stages/.
Download OpenAPI description
Overview
Languages
Servers
Production
https://api.brex.com
Staging (Note: This is not a sandbox. It will not work with customer tokens.)
https://api-staging.brex.com
Request
Create a new accounting integration. The behavior depends on the existing active integration:
- If no active integration exists: Creates and returns new integration
- If active integration exists with same vendor and vendor_account_id: Returns the existing active integration
- If active integration exists with same vendor but different vendor_account_id: Returns 409 error
- If active integration exists with different vendor: Returns 409 error
This ensures only one active integration exists per account.
Security
oauth2(Required scopes:
accounting.integration.write
)The accounting vendor/system. ERP partners must request Brex to create a vendor ID for them to use this field.
Example: "ERP_A"
- Productionhttps://api.brex.com/v3/accounting/integration
- Staging (Note: This is not a sandbox. It will not work with customer tokens.)https://api-staging.brex.com/v3/accounting/integration
- curl
- JavaScript
- Node.js
- Python
- Ruby
- Java
curl -i -X POST \
https://api.brex.com/v3/accounting/integration \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"vendor": "ERP_A",
"vendor_account_id": "vendor_account_id"
}'Response
application/json
{ "id": "int_abc123", "vendor": "ERP_A", "status": "ACTIVE", "created_at": "2025-08-15T10:00:00Z", "vendor_account_id": "vendor_account_id" }
- Productionhttps://api.brex.com/v3/accounting/integration/{integration_id}/disconnect
- Staging (Note: This is not a sandbox. It will not work with customer tokens.)https://api-staging.brex.com/v3/accounting/integration/{integration_id}/disconnect
- curl
- JavaScript
- Node.js
- Python
- Ruby
- Java
curl -i -X POST \
'https://api.brex.com/v3/accounting/integration/{integration_id}/disconnect' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'Response
application/json
{ "id": "int_abc123", "vendor": "ERP_A", "status": "DISABLED", "created_at": "2025-08-15T10:00:00Z", "vendor_account_id": "vendor_account_id" }
- Productionhttps://api.brex.com/v3/accounting/integration/{integration_id}/reactivate
- Staging (Note: This is not a sandbox. It will not work with customer tokens.)https://api-staging.brex.com/v3/accounting/integration/{integration_id}/reactivate
- curl
- JavaScript
- Node.js
- Python
- Ruby
- Java
curl -i -X POST \
'https://api.brex.com/v3/accounting/integration/{integration_id}/reactivate' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'Response
application/json
{ "id": "int_abc123", "vendor": "ERP_A", "status": "ACTIVE", "created_at": "2025-08-15T10:00:00Z", "vendor_account_id": "vendor_account_id" }