Skip to content

TransactionsComponents

Defined in: src/transactions/types.gen.ts:166

headers: never

Defined in: src/transactions/types.gen.ts:333


parameters: never

Defined in: src/transactions/types.gen.ts:331


pathItems: never

Defined in: src/transactions/types.gen.ts:334


requestBodies: never

Defined in: src/transactions/types.gen.ts:332


responses: never

Defined in: src/transactions/types.gen.ts:330


schemas: object

Defined in: src/transactions/types.gen.ts:167

CardAccount: object

optional account_limit?: { amount: number; currency: string | null; } | null

{ amount: number; currency: string | null; }

amount: number

Format: int64

The amount of money, in the smallest denomination of the currency indicated by currency. For example, when currency is USD, amount is in cents.

700

currency: string | null

The type of currency, in ISO 4217 format.

USD
USD

null

optional available_balance?: { amount: number; currency: string | null; } | null

{ amount: number; currency: string | null; }

amount: number

Format: int64

The amount of money, in the smallest denomination of the currency indicated by currency. For example, when currency is USD, amount is in cents.

700

currency: string | null

The type of currency, in ISO 4217 format.

USD
USD

null

optional current_balance?: { amount: number; currency: string | null; } | null

{ amount: number; currency: string | null; }

amount: number

Format: int64

The amount of money, in the smallest denomination of the currency indicated by currency. For example, when currency is USD, amount is in cents.

700

currency: string | null

The type of currency, in ISO 4217 format.

USD
USD

null

current_statement_period: object

CardAccount.current_statement_period.end_date
Section titled “CardAccount.current_statement_period.end_date”

end_date: string

Format: date

End date of the statement period at UTC 00:00:00 (exclusive)

CardAccount.current_statement_period.start_date
Section titled “CardAccount.current_statement_period.start_date”

start_date: string

Format: date

Start date of the statement period at UTC 00:00:00 (inclusive)

id: string

ID of the card account

optional status?: "ACTIVE" | null

CardTransaction: object

amount: object

amount: number

Format: int64

The amount of money, in the smallest denomination of the currency indicated by currency. For example, when currency is USD, amount is in cents.

700

currency: string | null

The type of currency, in ISO 4217 format.

USD
USD

optional card_id?: string | null

ID of the card used for the transaction. Null when type is REWARDS_CREDIT or COLLECTION.

optional card_metadata?: {[key: string]: string; } | null

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.

CardTransaction.card_transaction_operation_reference_id?
Section titled “CardTransaction.card_transaction_operation_reference_id?”

optional card_transaction_operation_reference_id?: string | null

The card transaction operation reference ID. Null when type is REWARDS_CREDIT, COLLECTION, or BNPL_FEE.

description: string

Description of the transaction

optional expense_id?: string | null

The expense ID related to the card transaction.

id: string

initiated_at_date: string

Format: date

ISO 8601 date string

optional merchant?: { country: string; mcc: string; raw_descriptor: string; } | null

{ country: string; mcc: string; raw_descriptor: string; }

country: string

Merchant’s country, in ISO 3166-1 alpha-3 format.

mcc: string

A four-digit number listed in ISO 18245 for retail financial services, e.g. 4121 for Taxicabs and Rideshares. Please refer to https://en.wikipedia.org/wiki/Merchant_category_code for more details.

raw_descriptor: string

Merchant descriptor, it can be the merchant name.


null

posted_at_date: string

Format: date

ISO 8601 date string

optional type?: "PURCHASE" | "REFUND" | "CHARGEBACK" | "REWARDS_CREDIT" | "COLLECTION" | "BNPL_FEE" | null

CardTransactionType: "PURCHASE" | "REFUND" | "CHARGEBACK" | "REWARDS_CREDIT" | "COLLECTION" | "BNPL_FEE"

CashAccount: object

account_number: string

available_balance: object

amount: number

Format: int64

The amount of money, in the smallest denomination of the currency indicated by currency. For example, when currency is USD, amount is in cents.

700

currency: string | null

The type of currency, in ISO 4217 format.

USD
USD

current_balance: object

amount: number

Format: int64

The amount of money, in the smallest denomination of the currency indicated by currency. For example, when currency is USD, amount is in cents.

700

currency: string | null

The type of currency, in ISO 4217 format.

USD
USD

id: string

ID of the cash account

name: string

primary: boolean

Whether or not this account is the primary account. There will always be only one primary account.

routing_number: string

optional status?: "ACTIVE" | null

CashTransaction: object

optional amount?: { amount: number; currency: string | null; } | null

{ amount: number; currency: string | null; }

amount: number

Format: int64

The amount of money, in the smallest denomination of the currency indicated by currency. For example, when currency is USD, amount is in cents.

700

currency: string | null

The type of currency, in ISO 4217 format.

USD
USD

null

description: string

Description of the transaction

id: string

initiated_at_date: string

Format: date

ISO 8601 date of when the payment is initiated

posted_at_date: string

Format: date

ISO 8601 date of when the payment is posted

optional transfer_id?: string | null

Transfer ID to fetch additional metadata about the transaction using https://developer.brex.com/openapi/payments_api/#operation/getTransfersById

optional type?: "BOOK_TRANSFER" | "STABLECOIN" | "PAYMENT" | "DIVIDEND" | "FEE" | "ADJUSTMENT" | "INTEREST" | "CARD_COLLECTION" | "REWARDS_REDEMPTION" | "RECEIVABLES_OFFERS_ADVANCE" | "FBO_TRANSFER" | "RECEIVABLES_OFFERS_REPAYMENT" | "RECEIVABLES_OFFERS_COLLECTION" | "BREX_OPERATIONAL_TRANSFER" | "INTRA_CUSTOMER_ACCOUNT_BOOK_TRANSFER" | "CRYPTO_BRIDGE" | "TRANSACTION_FEES_COLLECTION" | "PAYBACK" | null

CashTransactionType: "BOOK_TRANSFER" | "STABLECOIN" | "PAYMENT" | "DIVIDEND" | "FEE" | "ADJUSTMENT" | "INTEREST" | "CARD_COLLECTION" | "REWARDS_REDEMPTION" | "RECEIVABLES_OFFERS_ADVANCE" | "FBO_TRANSFER" | "RECEIVABLES_OFFERS_REPAYMENT" | "RECEIVABLES_OFFERS_COLLECTION" | "BREX_OPERATIONAL_TRANSFER" | "INTRA_CUSTOMER_ACCOUNT_BOOK_TRANSFER" | "CRYPTO_BRIDGE" | "TRANSACTION_FEES_COLLECTION" | "PAYBACK"

Merchant: object

country: string

Merchant’s country, in ISO 3166-1 alpha-3 format.

mcc: string

A four-digit number listed in ISO 18245 for retail financial services, e.g. 4121 for Taxicabs and Rideshares. Please refer to https://en.wikipedia.org/wiki/Merchant_category_code for more details.

raw_descriptor: string

Merchant descriptor, it can be the merchant name.

Money: object

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.

amount: number

Format: int64

The amount of money, in the smallest denomination of the currency indicated by currency. For example, when currency is USD, amount is in cents.

700

currency: string | null

The type of currency, in ISO 4217 format.

USD
USD

Page_CardTransaction_: object

items: object[]

optional next_cursor?: string | null

Page_CashAccount_: object

items: object[]

optional next_cursor?: string | null

Page_CashTransaction_: object

items: object[]

optional next_cursor?: string | null

Page_Statement_: object

items: object[]

optional next_cursor?: string | null

Statement: object

optional end_balance?: { amount: number; currency: string | null; } | null

{ amount: number; currency: string | null; }

amount: number

Format: int64

The amount of money, in the smallest denomination of the currency indicated by currency. For example, when currency is USD, amount is in cents.

700

currency: string | null

The type of currency, in ISO 4217 format.

USD
USD

null

id: string

period: object

end_date: string

Format: date

End date of the statement period at UTC 00:00:00 (exclusive)

start_date: string

Format: date

Start date of the statement period at UTC 00:00:00 (inclusive)

optional start_balance?: { amount: number; currency: string | null; } | null

{ amount: number; currency: string | null; }

amount: number

Format: int64

The amount of money, in the smallest denomination of the currency indicated by currency. For example, when currency is USD, amount is in cents.

700

currency: string | null

The type of currency, in ISO 4217 format.

USD
USD

null

StatementPeriod: object

end_date: string

Format: date

End date of the statement period at UTC 00:00:00 (exclusive)

start_date: string

Format: date

Start date of the statement period at UTC 00:00:00 (inclusive)

Status: "ACTIVE"