# Transactions API The transactions API lets you view your transactions, accounts, and statements. Version: 1.0 ## 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 ``` ## Security ### OAuth2 OAuth2 security scheme Type: oauth2 ## Download OpenAPI description [Transactions API](https://developer.brex.com/_bundle/openapi/transactions_api.yaml) ## Transactions Endpoints for transaction data. ### List transactions for all card accounts. - [GET /v2/transactions/card/primary](https://developer.brex.com/openapi/transactions_api/transactions/listprimarycardtransactions.md): This endpoint lists all settled transactions for all card accounts. Regular users may only fetch their own "PURCHASE","REFUND" and "CHARGEBACK" settled transactions. ### List transactions for the selected cash account. - [GET /v2/transactions/cash/{id}](https://developer.brex.com/openapi/transactions_api/transactions/listcashtransactions.md): This endpoint lists all transactions for the cash account with the selected ID. ## Accounts Endpoints for account data. ### List card accounts - [GET /v2/accounts/card](https://developer.brex.com/openapi/transactions_api/accounts/listcardaccounts.md): This endpoint lists all accounts of card type. ### List primary card account statements. - [GET /v2/accounts/card/primary/statements](https://developer.brex.com/openapi/transactions_api/accounts/listprimarycardstatements.md): This endpoint lists all finalized statements for the primary card account. ### List cash accounts - [GET /v2/accounts/cash](https://developer.brex.com/openapi/transactions_api/accounts/listaccounts.md): This endpoint lists all the existing cash accounts with their status. ### Get primary cash account - [GET /v2/accounts/cash/primary](https://developer.brex.com/openapi/transactions_api/accounts/getprimaryaccount.md): This endpoint returns the primary cash account with its status. There will always be only one primary account. ### Get cash account by ID - [GET /v2/accounts/cash/{id}](https://developer.brex.com/openapi/transactions_api/accounts/getaccount.md): This endpoint returns the cash account associated with the provided ID with its status. ### List cash account statements. - [GET /v2/accounts/cash/{id}/statements](https://developer.brex.com/openapi/transactions_api/accounts/listcashstatements.md): This endpoint lists all finalized statements for the cash account by ID.