Download OpenAPI specification:Download
The payments API allows you to initiate and manage payments and vendors from your Brex business accounts.
This endpoint lists all existing vendors for an account. Takes an optional parameter to match by vendor name.
Returns a list of vendor objects.
Bad request
Unauthorized
Forbidden
{- "next_cursor": "string",
- "items": [
- {
- "id": "string",
- "company_name": "string",
- "email": "string",
- "phone": "string",
- "payment_accounts": [
- {
- "details": {
- "type": "ACH",
- "payment_instrument_id": "string",
- "routing_number": "string",
- "account_number": "string",
- "account_type": "CHECKING",
- "account_class": "BUSINESS"
}
}
]
}
]
}
This endpoint creates a new vendor.
createVendor 200 response
{- "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"
}
}
]
}
{- "id": "string",
- "company_name": "string",
- "email": "string",
- "phone": "string",
- "payment_accounts": [
- {
- "details": {
- "type": "ACH",
- "payment_instrument_id": "string",
- "routing_number": "string",
- "account_number": "string",
- "account_type": "CHECKING",
- "account_class": "BUSINESS"
}
}
]
}
This endpoint gets a vendor by ID.
Returns a vendor object.
Bad request
Unauthorized
Forbidden
Internal server error
{- "id": "string",
- "company_name": "string",
- "email": "string",
- "phone": "string",
- "payment_accounts": [
- {
- "details": {
- "type": "ACH",
- "payment_instrument_id": "string",
- "routing_number": "string",
- "account_number": "string",
- "account_type": "CHECKING",
- "account_class": "BUSINESS"
}
}
]
}
Updates an existing vendor by ID.
updateVendor 200 response
{- "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"
}
{- "id": "string",
- "company_name": "string",
- "email": "string",
- "phone": "string",
- "payment_accounts": [
- {
- "details": {
- "type": "ACH",
- "payment_instrument_id": "string",
- "routing_number": "string",
- "account_number": "string",
- "account_type": "CHECKING",
- "account_class": "BUSINESS"
}
}
]
}
Endpoints to initiate transfers and view transfer statuses. Note that for all transfer endpoints, the 'money' field is positive or unsigned for outgoing transfers (debits), and negative for incoming transfers (credits).
This endpoint creates a new incoming transfer. You may use use any eligible bank account connection to fund (ACH Debit) any active Brex business account.
Reminder: You may not use the Brex API for any activity that requires a license or registration from any governmental authority without Brex's prior review and approval. This includes but is not limited to any money services business or money transmission activity.
Please review the Brex Access Agreement and contact us if you have any questions.
createIncomingTransfer 200 response
{- "counterparty": {
- "type": "BANK",
- "id": "string"
}, - "receiving_account": {
- "type": "BREX_CASH",
- "id": "string"
}, - "amount": {
- "amount": 0,
- "currency": "string"
}, - "description": "string"
}
{- "id": "string",
- "counterparty": {
- "type": "VENDOR",
- "payment_instrument_id": "string",
- "id": "string",
- "routing_number": "string",
- "account_number": "string"
}, - "description": "string",
- "payment_type": "ACH",
- "amount": {
- "amount": 0,
- "currency": "string"
}, - "process_date": "2019-08-24",
- "originating_account": {
- "type": "BREX_CASH",
- "id": "string"
}, - "status": "PROCESSING",
- "cancellation_reason": "USER_CANCELLED",
- "estimated_delivery_date": "2019-08-24",
- "creator_user_id": "string",
- "created_at": "2019-08-24",
- "display_name": "string",
- "external_memo": "string",
- "is_ppro_enabled": true
}
This endpoint lists existing transfers for an account.
Currently, the API can only return transfers for the following payment rails:
Returns a list of transfers.
Bad request
Unauthorized
Forbidden
Internal server error
{- "next_cursor": "string",
- "items": [
- {
- "id": "string",
- "counterparty": {
- "type": "VENDOR",
- "payment_instrument_id": "string",
- "id": "string",
- "routing_number": "string",
- "account_number": "string"
}, - "description": "string",
- "payment_type": "ACH",
- "amount": {
- "amount": 0,
- "currency": "string"
}, - "process_date": "2019-08-24",
- "originating_account": {
- "type": "BREX_CASH",
- "id": "string"
}, - "status": "PROCESSING",
- "cancellation_reason": "USER_CANCELLED",
- "estimated_delivery_date": "2019-08-24",
- "creator_user_id": "string",
- "created_at": "2019-08-24",
- "display_name": "string",
- "external_memo": "string",
- "is_ppro_enabled": true
}
]
}
This endpoint creates a new transfer.
Currently, the API can only create transfers for the following payment rails:
Transaction Descriptions
Check #<check number> to <recipient_name> - <external_memo>
.<customer_account.dba_name> - <external_memo>
and the sender will have a format of <target customer account's dba name> - <external_memo>
.<counterparty_name> - <external_memo>
, where Counterparty name is payment_instrument.beneficiary_name
or contact.name
For vendors created from the Payments API, the counterparty_name
will be the company_name
field.Reminder: You may not use the Brex API for any activity that requires a license or registration from any governmental authority without Brex's prior review and approval. This includes but is not limited to any money services business or money transmission activity.
Please review the Brex Access Agreement and contact us if you have any questions.
createTransfer 200 response
{- "counterparty": {
- "type": "VENDOR",
- "payment_instrument_id": "string"
}, - "amount": {
- "amount": 0,
- "currency": "string"
}, - "description": "string",
- "external_memo": "string",
- "originating_account": {
- "type": "BREX_CASH",
- "id": "string"
}, - "approval_type": "MANUAL",
- "is_ppro_enabled": true
}
{- "id": "string",
- "counterparty": {
- "type": "VENDOR",
- "payment_instrument_id": "string",
- "id": "string",
- "routing_number": "string",
- "account_number": "string"
}, - "description": "string",
- "payment_type": "ACH",
- "amount": {
- "amount": 0,
- "currency": "string"
}, - "process_date": "2019-08-24",
- "originating_account": {
- "type": "BREX_CASH",
- "id": "string"
}, - "status": "PROCESSING",
- "cancellation_reason": "USER_CANCELLED",
- "estimated_delivery_date": "2019-08-24",
- "creator_user_id": "string",
- "created_at": "2019-08-24",
- "display_name": "string",
- "external_memo": "string",
- "is_ppro_enabled": true
}
This endpoint gets a transfer by ID.
Currently, the API can only return transfers for the following payment rails:
Returns a transfer.
Bad request
Unauthorized
Forbidden
Internal server error
{- "id": "string",
- "counterparty": {
- "type": "VENDOR",
- "payment_instrument_id": "string",
- "id": "string",
- "routing_number": "string",
- "account_number": "string"
}, - "description": "string",
- "payment_type": "ACH",
- "amount": {
- "amount": 0,
- "currency": "string"
}, - "process_date": "2019-08-24",
- "originating_account": {
- "type": "BREX_CASH",
- "id": "string"
}, - "status": "PROCESSING",
- "cancellation_reason": "USER_CANCELLED",
- "estimated_delivery_date": "2019-08-24",
- "creator_user_id": "string",
- "created_at": "2019-08-24",
- "display_name": "string",
- "external_memo": "string",
- "is_ppro_enabled": true
}
This endpoint lists all bank connections that are eligible to make ACH transfers to Brex business account
Returns a list of bank connections
Bad request
Unauthorized
Forbidden
{- "next_cursor": "string",
- "items": [
- {
- "id": "string",
- "bank_details": {
- "name": "string",
- "type": "CHECKING"
}, - "brex_account_id": "string",
- "last_four": "string",
- "available_balance": {
- "amount": {
- "amount": 0,
- "currency": "string"
}, - "as_of_date": "2019-08-24"
}, - "current_balance": {
- "amount": {
- "amount": 0,
- "currency": "string"
}, - "as_of_date": "2019-08-24"
}
}
]
}