The transactions API lets you view your transactions, accounts, and statements.
Transactions API (1.0)
Request
This endpoint lists all settled transactions for all card accounts. Regular users may only fetch their own "PURCHASE","REFUND" and "CHARGEBACK" settled transactions.
Shows only transactions with a posted_at_date on or after this date-time. This parameter is the date-time notation as defined by RFC 3339, section 5.6
- Productionhttps://api.brex.com/v2/transactions/card/primary
- Staging (Note: This is not a sandbox. It will not work with customer tokens.)https://api-staging.brex.com/v2/transactions/card/primary
- curl
- JavaScript
- Node.js
- Python
- Ruby
- Java
curl -i -X GET \
https://api.brex.com/v2/transactions/card/primary \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'Returns a list of card transactions.
ID of the card used for the transaction. Null when type is REWARDS_CREDIT or COLLECTION.
Money fields can be signed or unsigned. Fields are signed (an unsigned value will be interpreted as positive). The amount of money will be represented in the smallest denomination of the currency indicated. For example, USD 7.00 will be represented in cents with an amount of 700.
The amount of money, in the smallest denomination of the currency indicated by currency. For example, when currency is USD, amount is in cents.
Set of key value pairs associated with this object. Please do not store any personally identifiable or sensitive information here. Limitations: maximum of 50 keys, keys cannot exceed 40 characters, values cannot exceed 500 characters.
{ "next_cursor": "string", "items": [ { … } ] }
Shows only transactions with a posted_at_date on or after this date-time. This parameter is the date-time notation as defined by RFC 3339, section 5.6
- Productionhttps://api.brex.com/v2/transactions/cash/{id}
- Staging (Note: This is not a sandbox. It will not work with customer tokens.)https://api-staging.brex.com/v2/transactions/cash/{id}
- curl
- JavaScript
- Node.js
- Python
- Ruby
- Java
curl -i -X GET \
'https://api.brex.com/v2/transactions/cash/{id}' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'Returns a list of cash transactions.
Money fields can be signed or unsigned. Fields are signed (an unsigned value will be interpreted as positive). The amount of money will be represented in the smallest denomination of the currency indicated. For example, USD 7.00 will be represented in cents with an amount of 700.
{ "next_cursor": "string", "items": [ { … } ] }