The payments API allows you to initiate and manage payments and vendors from your Brex business accounts.
Payments API (1.0)
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
- Productionhttps://api.brex.com/v1/vendors
- Staging (Note: This is not a sandbox. It will not work with customer tokens.)https://api-staging.brex.com/v1/vendors
- curl
- JavaScript
- Node.js
- Python
- Ruby
- Java
curl -i -X GET \
https://api.brex.com/v1/vendors \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'Response
application/json
{ "next_cursor": "string", "items": [ { … } ] }
- Productionhttps://api.brex.com/v1/vendors
- Staging (Note: This is not a sandbox. It will not work with customer tokens.)https://api-staging.brex.com/v1/vendors
- curl
- JavaScript
- Node.js
- Python
- Ruby
- Java
curl -i -X POST \
https://api.brex.com/v1/vendors \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-H 'Idempotency-Key: string' \
-d '{
"company_name": "string",
"email": "user@example.com",
"phone": "string",
"payment_accounts": [
{
"details": {
"type": "ACH",
"routing_number": "string",
"account_number": "string",
"account_type": "CHECKING",
"account_class": "BUSINESS",
"beneficiary_name": "string"
}
}
]
}'Response
application/json
{ "id": "string", "company_name": "string", "email": "string", "phone": "string", "payment_accounts": [ { … } ] }
- Productionhttps://api.brex.com/v1/vendors/{id}
- Staging (Note: This is not a sandbox. It will not work with customer tokens.)https://api-staging.brex.com/v1/vendors/{id}
- curl
- JavaScript
- Node.js
- Python
- Ruby
- Java
curl -i -X GET \
'https://api.brex.com/v1/vendors/{id}' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'Response
application/json
{ "id": "string", "company_name": "string", "email": "string", "phone": "string", "payment_accounts": [ { … } ] }
Bodyapplication/jsonrequired
To update payment instruments, we require the entire payload for each payment instrument that is being updated.
- Productionhttps://api.brex.com/v1/vendors/{id}
- Staging (Note: This is not a sandbox. It will not work with customer tokens.)https://api-staging.brex.com/v1/vendors/{id}
- curl
- JavaScript
- Node.js
- Python
- Ruby
- Java
curl -i -X PUT \
'https://api.brex.com/v1/vendors/{id}' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"company_name": "string",
"email": "user@example.com",
"phone": "string",
"payment_accounts": [
{
"details": {
"type": "ACH",
"routing_number": "string",
"account_number": "string",
"account_type": "CHECKING",
"account_class": "BUSINESS",
"beneficiary_name": "string"
}
}
],
"beneficiary_name": "string"
}'Response
application/json
{ "id": "string", "company_name": "string", "email": "string", "phone": "string", "payment_accounts": [ { … } ] }
- Productionhttps://api.brex.com/v1/vendors/{id}
- Staging (Note: This is not a sandbox. It will not work with customer tokens.)https://api-staging.brex.com/v1/vendors/{id}
- curl
- JavaScript
- Node.js
- Python
- Ruby
- Java
curl -i -X DELETE \
'https://api.brex.com/v1/vendors/{id}' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'