AptlyStar

Brex

Manage expenses, receipts, transactions, and team data in Brex

使用方法

Integrates Brex into the workflow. List and update expenses, upload and match receipts, view card and cash transactions, accounts, budgets, spend limits, vendors, transfers, and team data.

ツール

brex_list_expenses

List expenses in the Brex account with optional filters for user, status, payment status, and purchase date range

入力

パラメータ型必須説明
apiKeystringはいBrex user token (generated from Developer Settings in the Brex dashboard)
userIdsstringいいえComma-separated user IDs to filter expenses by owner
statusesstringいいえComma-separated expense statuses to filter by: DRAFT, SUBMITTED, APPROVED, OUT_OF_POLICY, VOID, CANCELED, SPLIT, SETTLED
paymentStatusesstringいいえComma-separated payment statuses to filter by: NOT_STARTED, PROCESSING, CANCELED, DECLINED, CLEARED, REFUNDING, REFUNDED, CASH_ADVANCE, CREDITED, AWAITING_PAYMENT, SCHEDULED
purchasedAtStartstringいいえOnly include expenses purchased at or after this ISO 8601 timestamp
purchasedAtEndstringいいえOnly include expenses purchased at or before this ISO 8601 timestamp
cursorstringいいえPagination cursor from a previous response
limitstringいいえNumber of expenses to return (max 100)

出力

パラメータ型説明
itemsarrayExpenses matching the filters
↳ idstringUnique expense ID
↳ memostringMemo on the expense
↳ statusstringExpense status (DRAFT, SUBMITTED, APPROVED, OUT_OF_POLICY, VOID, CANCELED, SPLIT, SETTLED)
↳ payment_statusstringPayment status (NOT_STARTED, PROCESSING, CANCELED, DECLINED, CLEARED, REFUNDING, REFUNDED, CASH_ADVANCE, CREDITED, AWAITING_PAYMENT, SCHEDULED)
↳ expense_typestringExpense type (CARD, BILLPAY, REIMBURSEMENT, CLAWBACK, UNSET)
↳ categorystringExpense category (e.g., RESTAURANTS, RECURRING_SOFTWARE_AND_SAAS, AIRLINE_EXPENSES)
↳ merchantjsonMerchant details
↳ raw_descriptorstringRaw merchant descriptor
↳ mccstringMerchant category code
↳ countrystringMerchant country
↳ userjsonUser who made the expense
↳ idstringUser ID
↳ first_namestringFirst name
↳ last_namestringLast name
↳ budgetjsonBudget the expense belongs to
↳ idstringBudget ID
↳ namestringBudget name
↳ departmentjsonDepartment of the expense owner
↳ idstringDepartment ID
↳ namestringDepartment name
↳ locationjsonLocation of the expense owner
↳ idstringLocation ID
↳ namestringLocation name
↳ original_amountjsonOriginal transaction amount
↳ amountnumberAmount in the smallest unit of the currency (e.g., cents for USD)
↳ currencystringISO 4217 currency code (e.g., USD)
↳ billing_amountjsonAmount billed to the account
↳ amountnumberAmount in the smallest unit of the currency (e.g., cents for USD)
↳ currencystringISO 4217 currency code (e.g., USD)
↳ purchased_amountjsonAmount at the time of purchase
↳ amountnumberAmount in the smallest unit of the currency (e.g., cents for USD)
↳ currencystringISO 4217 currency code (e.g., USD)
↳ receiptsarrayReceipts attached to the expense
↳ idstringReceipt ID
↳ download_urisarrayPre-signed receipt download URLs
↳ purchased_atstringPurchase timestamp (ISO 8601)
↳ updated_atstringLast update timestamp (ISO 8601)
↳ dashboard_urlstringLink to the expense in the Brex dashboard
nextCursorstringCursor for fetching the next page of results

brex_get_expense

Get a single Brex expense by its ID, including merchant, user, and receipt details

入力

パラメータ型必須説明
apiKeystringはいBrex user token (generated from Developer Settings in the Brex dashboard)
expenseIdstringはいID of the expense to fetch

出力

パラメータ型説明
idstringUnique expense ID
memostringMemo on the expense
statusstringExpense status (DRAFT, SUBMITTED, APPROVED, OUT_OF_POLICY, VOID, CANCELED, SPLIT, SETTLED)
paymentStatusstringPayment status (NOT_STARTED, PROCESSING, CANCELED, DECLINED, CLEARED, REFUNDING, REFUNDED, CASH_ADVANCE, CREDITED, AWAITING_PAYMENT, SCHEDULED)
expenseTypestringExpense type (CARD, BILLPAY, REIMBURSEMENT, CLAWBACK, UNSET)
categorystringExpense category (e.g., RESTAURANTS, RECURRING_SOFTWARE_AND_SAAS, AIRLINE_EXPENSES)
merchantIdstringMerchant ID
merchantjsonMerchant details (raw descriptor, MCC, country)
↳ raw_descriptorstringRaw merchant descriptor
↳ mccstringMerchant category code
↳ countrystringMerchant country
budgetIdstringBudget ID
budgetjsonBudget the expense belongs to
↳ idstringBudget ID
↳ namestringBudget name
departmentIdstringDepartment ID
departmentjsonDepartment of the expense owner
↳ idstringDepartment ID
↳ namestringDepartment name
locationIdstringLocation ID
locationjsonLocation of the expense owner
↳ idstringLocation ID
↳ namestringLocation name
userIdstringID of the user who made the expense
userjsonUser who made the expense
↳ idstringUser ID
↳ first_namestringFirst name
↳ last_namestringLast name
originalAmountjsonOriginal transaction amount
↳ amountnumberAmount in the smallest unit of the currency (e.g., cents for USD)
↳ currencystringISO 4217 currency code (e.g., USD)
billingAmountjsonAmount billed to the account
↳ amountnumberAmount in the smallest unit of the currency (e.g., cents for USD)
↳ currencystringISO 4217 currency code (e.g., USD)
purchasedAmountjsonAmount at the time of purchase
↳ amountnumberAmount in the smallest unit of the currency (e.g., cents for USD)
↳ currencystringISO 4217 currency code (e.g., USD)
usdEquivalentAmountjsonUSD equivalent amount
↳ amountnumberAmount in the smallest unit of the currency (e.g., cents for USD)
↳ currencystringISO 4217 currency code (e.g., USD)
purchasedAtstringPurchase timestamp (ISO 8601)
updatedAtstringLast update timestamp (ISO 8601)
paymentPostedAtstringTimestamp the payment was posted (ISO 8601)
receiptsarrayReceipts attached to the expense
↳ idstringReceipt ID
↳ download_urisarrayPre-signed receipt download URLs
dashboardUrlstringLink to the expense in the Brex dashboard

brex_update_expense

Update the memo of a Brex card expense

入力

パラメータ型必須説明
apiKeystringはいBrex user token (generated from Developer Settings in the Brex dashboard)
expenseIdstringはいID of the card expense to update
memostringはいNew memo for the expense

出力

パラメータ型説明
idstringUnique expense ID
memostringUpdated memo on the expense
statusstringExpense status (DRAFT, SUBMITTED, APPROVED, OUT_OF_POLICY, VOID, CANCELED, SPLIT, SETTLED)
paymentStatusstringPayment status (NOT_STARTED, PROCESSING, CANCELED, DECLINED, CLEARED, REFUNDING, REFUNDED, CASH_ADVANCE, CREDITED, AWAITING_PAYMENT, SCHEDULED)
categorystringExpense category (e.g., RESTAURANTS, RECURRING_SOFTWARE_AND_SAAS, AIRLINE_EXPENSES)
merchantIdstringMerchant ID
budgetIdstringBudget ID
originalAmountjsonOriginal transaction amount
↳ amountnumberAmount in the smallest unit of the currency (e.g., cents for USD)
↳ currencystringISO 4217 currency code (e.g., USD)
billingAmountjsonAmount billed to the account
↳ amountnumberAmount in the smallest unit of the currency (e.g., cents for USD)
↳ currencystringISO 4217 currency code (e.g., USD)
purchasedAtstringPurchase timestamp (ISO 8601)
updatedAtstringLast update timestamp (ISO 8601)

brex_upload_receipt

Upload a receipt file and attach it to a specific Brex card expense

入力

パラメータ型必須説明
apiKeystringはいBrex user token (generated from Developer Settings in the Brex dashboard)
expenseIdstringはいID of the card expense to attach the receipt to
filefileはいReceipt file to upload (max 50 MB)
receiptNamestringいいえReceipt file name including extension (defaults to the uploaded file name)

出力

パラメータ型説明
receiptIdstringUnique identifier of the receipt upload
receiptNamestringName the receipt was uploaded with
expenseIdstringID of the expense the receipt was attached to

brex_match_receipt

Upload a receipt file and let Brex automatically match it with existing expenses

入力

パラメータ型必須説明
apiKeystringはいBrex user token (generated from Developer Settings in the Brex dashboard)
filefileはいReceipt file to upload (max 50 MB)
receiptNamestringいいえReceipt file name including extension (defaults to the uploaded file name)

出力

パラメータ型説明
receiptIdstringUnique identifier of the receipt match request
receiptNamestringName the receipt was uploaded with
expenseIdstringAlways null for receipt match (Brex matches the receipt asynchronously)

brex_list_card_transactions

List settled card transactions for all Brex card accounts

入力

パラメータ型必須説明
apiKeystringはいBrex user token (generated from Developer Settings in the Brex dashboard)
userIdsstringいいえComma-separated user IDs to filter transactions by cardholder
postedAtStartstringいいえOnly include transactions posted at or after this ISO 8601 timestamp
cursorstringいいえPagination cursor from a previous response
limitstringいいえNumber of transactions to return (default 100, max 1000)

出力

パラメータ型説明
itemsarraySettled card transactions
↳ idstringUnique transaction ID
↳ card_idstringID of the card used
↳ descriptionstringTransaction description
↳ amountjsonTransaction amount
↳ amountnumberAmount in the smallest unit of the currency (e.g., cents for USD)
↳ currencystringISO 4217 currency code (e.g., USD)
↳ initiated_at_datestringDate the transaction was initiated
↳ posted_at_datestringDate the transaction was posted
↳ typestringTransaction type (PURCHASE, REFUND, CHARGEBACK, REWARDS_CREDIT, COLLECTION, BNPL_FEE)
↳ merchantjsonMerchant details
↳ raw_descriptorstringRaw merchant descriptor
↳ mccstringMerchant category code
↳ countrystringMerchant country
↳ expense_idstringAssociated expense ID
nextCursorstringCursor for fetching the next page of results

brex_list_cash_transactions

List transactions for a Brex cash account

入力

パラメータ型必須説明
apiKeystringはいBrex user token (generated from Developer Settings in the Brex dashboard)
accountIdstringはいID of the cash account to list transactions for
postedAtStartstringいいえOnly include transactions posted at or after this ISO 8601 timestamp
cursorstringいいえPagination cursor from a previous response
limitstringいいえNumber of transactions to return (default 100, max 1000)

出力

パラメータ型説明
itemsarrayCash account transactions
↳ idstringUnique transaction ID
↳ descriptionstringTransaction description
↳ amountjsonTransaction amount
↳ amountnumberAmount in the smallest unit of the currency (e.g., cents for USD)
↳ currencystringISO 4217 currency code (e.g., USD)
↳ initiated_at_datestringDate the transaction was initiated
↳ posted_at_datestringDate the transaction was posted
↳ typestringTransaction type
↳ transfer_idstringAssociated transfer ID
nextCursorstringCursor for fetching the next page of results

brex_list_card_accounts

List all Brex card accounts with balances and limits

入力

パラメータ型必須説明
apiKeystringはいBrex user token (generated from Developer Settings in the Brex dashboard)

出力

パラメータ型説明
accountsarrayCard accounts
↳ idstringUnique account ID
↳ statusstringAccount status
↳ current_balancejsonCurrent balance
↳ amountnumberAmount in the smallest unit of the currency (e.g., cents for USD)
↳ currencystringISO 4217 currency code (e.g., USD)
↳ available_balancejsonAvailable balance
↳ amountnumberAmount in the smallest unit of the currency (e.g., cents for USD)
↳ currencystringISO 4217 currency code (e.g., USD)
↳ account_limitjsonAccount limit
↳ amountnumberAmount in the smallest unit of the currency (e.g., cents for USD)
↳ currencystringISO 4217 currency code (e.g., USD)
↳ current_statement_periodjsonCurrent statement period (start_date, end_date)

brex_list_cash_accounts

List all Brex cash accounts with balances and account details

入力

パラメータ型必須説明
apiKeystringはいBrex user token (generated from Developer Settings in the Brex dashboard)
cursorstringいいえPagination cursor from a previous response
limitstringいいえNumber of accounts to return (default 100, max 1000)

出力

パラメータ型説明
itemsarrayCash accounts
↳ idstringUnique account ID
↳ namestringAccount name
↳ statusstringAccount status
↳ current_balancejsonCurrent balance
↳ amountnumberAmount in the smallest unit of the currency (e.g., cents for USD)
↳ currencystringISO 4217 currency code (e.g., USD)
↳ available_balancejsonAvailable balance
↳ amountnumberAmount in the smallest unit of the currency (e.g., cents for USD)
↳ currencystringISO 4217 currency code (e.g., USD)
↳ account_numberstringBank account number
↳ routing_numberstringBank routing number
↳ primarybooleanWhether this is the primary cash account
nextCursorstringCursor for fetching the next page of results

brex_get_cash_account

Get a Brex cash account by ID, or the primary cash account when no ID is provided

入力

パラメータ型必須説明
apiKeystringはいBrex user token (generated from Developer Settings in the Brex dashboard)
accountIdstringいいえID of the cash account (defaults to the primary cash account)

出力

パラメータ型説明
idstringUnique account ID
namestringAccount name
statusstringAccount status
currentBalancejsonCurrent balance
↳ amountnumberAmount in the smallest unit of the currency (e.g., cents for USD)
↳ currencystringISO 4217 currency code (e.g., USD)
availableBalancejsonAvailable balance
↳ amountnumberAmount in the smallest unit of the currency (e.g., cents for USD)
↳ currencystringISO 4217 currency code (e.g., USD)
accountNumberstringBank account number
routingNumberstringBank routing number
primarybooleanWhether this is the primary cash account

brex_list_card_statements

List finalized statements for the primary Brex card account

入力

パラメータ型必須説明
apiKeystringはいBrex user token (generated from Developer Settings in the Brex dashboard)
cursorstringいいえPagination cursor from a previous response
limitstringいいえNumber of statements to return (default 100, max 1000)

出力

パラメータ型説明
itemsarrayFinalized card account statements
↳ idstringUnique statement ID
↳ start_balancejsonBalance at the start of the period
↳ amountnumberAmount in the smallest unit of the currency (e.g., cents for USD)
↳ currencystringISO 4217 currency code (e.g., USD)
↳ end_balancejsonBalance at the end of the period
↳ amountnumberAmount in the smallest unit of the currency (e.g., cents for USD)
↳ currencystringISO 4217 currency code (e.g., USD)
↳ periodjsonStatement period (start_date, end_date)
nextCursorstringCursor for fetching the next page of results

brex_list_cash_statements

List finalized statements for a Brex cash account

入力

パラメータ型必須説明
apiKeystringはいBrex user token (generated from Developer Settings in the Brex dashboard)
accountIdstringはいID of the cash account to list statements for
cursorstringいいえPagination cursor from a previous response
limitstringいいえNumber of statements to return (default 100, max 1000)

出力

パラメータ型説明
itemsarrayFinalized cash account statements
↳ idstringUnique statement ID
↳ start_balancejsonBalance at the start of the period
↳ amountnumberAmount in the smallest unit of the currency (e.g., cents for USD)
↳ currencystringISO 4217 currency code (e.g., USD)
↳ end_balancejsonBalance at the end of the period
↳ amountnumberAmount in the smallest unit of the currency (e.g., cents for USD)
↳ currencystringISO 4217 currency code (e.g., USD)
↳ periodjsonStatement period (start_date, end_date)
nextCursorstringCursor for fetching the next page of results

brex_list_users

List users in the Brex account, optionally filtered by email

入力

パラメータ型必須説明
apiKeystringはいBrex user token (generated from Developer Settings in the Brex dashboard)
emailstringいいえFilter users by exact email address
cursorstringいいえPagination cursor from a previous response
limitstringいいえNumber of users to return (default 100, max 1000)

出力

パラメータ型説明
itemsarrayUsers in the Brex account
↳ idstringUnique user ID
↳ first_namestringFirst name
↳ last_namestringLast name
↳ emailstringEmail address
↳ statusstringUser status (INVITED, ACTIVE, CLOSED, DISABLED, DELETED, PENDING_ACTIVATION, INACTIVE, ARCHIVED)
↳ manager_idstringID of the manager
↳ department_idstringDepartment ID
↳ location_idstringLocation ID
↳ title_idstringTitle ID
nextCursorstringCursor for fetching the next page of results

brex_get_user

Get a Brex user by their ID

入力

パラメータ型必須説明
apiKeystringはいBrex user token (generated from Developer Settings in the Brex dashboard)
userIdstringはいID of the user to fetch

出力

パラメータ型説明
idstringUnique user ID
firstNamestringFirst name
lastNamestringLast name
emailstringEmail address
statusstringUser status (INVITED, ACTIVE, CLOSED, DISABLED, DELETED, PENDING_ACTIVATION, INACTIVE, ARCHIVED)
managerIdstringID of the manager
departmentIdstringDepartment ID
locationIdstringLocation ID
titleIdstringTitle ID

brex_get_current_user

Get the Brex user associated with the API token

入力

パラメータ型必須説明
apiKeystringはいBrex user token (generated from Developer Settings in the Brex dashboard)

出力

パラメータ型説明
idstringUnique user ID
firstNamestringFirst name
lastNamestringLast name
emailstringEmail address
statusstringUser status (INVITED, ACTIVE, CLOSED, DISABLED, DELETED, PENDING_ACTIVATION, INACTIVE, ARCHIVED)
managerIdstringID of the manager
departmentIdstringDepartment ID
locationIdstringLocation ID
titleIdstringTitle ID

brex_list_departments

List departments in the Brex account, optionally filtered by name

入力

パラメータ型必須説明
apiKeystringはいBrex user token (generated from Developer Settings in the Brex dashboard)
namestringいいえFilter departments by name
cursorstringいいえPagination cursor from a previous response
limitstringいいえNumber of departments to return (default 100, max 1000)

出力

パラメータ型説明
itemsarrayDepartments in the Brex account
↳ idstringUnique department ID
↳ namestringDepartment name
↳ descriptionstringDepartment description
nextCursorstringCursor for fetching the next page of results

brex_list_locations

List locations in the Brex account, optionally filtered by name

入力

パラメータ型必須説明
apiKeystringはいBrex user token (generated from Developer Settings in the Brex dashboard)
namestringいいえFilter locations by name
cursorstringいいえPagination cursor from a previous response
limitstringいいえNumber of locations to return (default 100, max 1000)

出力

パラメータ型説明
itemsarrayLocations in the Brex account
↳ idstringUnique location ID
↳ namestringLocation name
↳ descriptionstringLocation description
nextCursorstringCursor for fetching the next page of results

brex_list_titles

List job titles in the Brex account, optionally filtered by name

入力

パラメータ型必須説明
apiKeystringはいBrex user token (generated from Developer Settings in the Brex dashboard)
namestringいいえFilter titles by name
cursorstringいいえPagination cursor from a previous response
limitstringいいえNumber of titles to return (default 100, max 1000)

出力

パラメータ型説明
itemsarrayJob titles in the Brex account
↳ idstringUnique title ID
↳ namestringTitle name
nextCursorstringCursor for fetching the next page of results

brex_list_cards

List cards in the Brex account, optionally filtered by card owner

入力

パラメータ型必須説明
apiKeystringはいBrex user token (generated from Developer Settings in the Brex dashboard)
userIdstringいいえFilter cards by the ID of the card owner
cursorstringいいえPagination cursor from a previous response
limitstringいいえNumber of cards to return (default 100, max 1000)

出力

パラメータ型説明
itemsarrayCards in the Brex account
↳ idstringUnique card ID
↳ ownerjsonCard owner (type, user_id)
↳ statusstringCard status
↳ last_fourstringLast four digits of the card number
↳ card_namestringCard name
↳ card_typestringCard type (VIRTUAL or PHYSICAL)
↳ limit_typestringLimit type (CARD or USER)
↳ spend_controlsjsonSpend controls on the card
↳ billing_addressjsonBilling address of the card
↳ expiration_datejsonCard expiration date (month, year)
↳ budget_idstringAssociated budget ID
nextCursorstringCursor for fetching the next page of results

brex_get_company

Get the Brex company associated with the API token

入力

パラメータ型必須説明
apiKeystringはいBrex user token (generated from Developer Settings in the Brex dashboard)

出力

パラメータ型説明
idstringUnique company ID
legalNamestringLegal name of the company
mailingAddressjsonCompany mailing address (line1, line2, city, state, country, postal_code)
accountTypestringBrex account type (BREX_CLASSIC or BREX_EMPOWER)

brex_list_budgets

List budgets in the Brex account

入力

パラメータ型必須説明
apiKeystringはいBrex user token (generated from Developer Settings in the Brex dashboard)
cursorstringいいえPagination cursor from a previous response
limitstringいいえNumber of budgets to return (default 100, max 1000)

出力

パラメータ型説明
itemsarrayBudgets in the Brex account
↳ budget_idstringUnique budget ID
↳ account_idstringAccount ID the budget belongs to
↳ namestringBudget name
↳ descriptionstringBudget description
↳ parent_budget_idstringParent budget ID
↳ owner_user_idsarrayUser IDs of the budget owners
↳ period_recurrence_typestringBudget period recurrence (WEEKLY, MONTHLY, QUARTERLY, YEARLY, ONE_TIME)
↳ start_datestringBudget start date
↳ end_datestringBudget end date
↳ amountjsonBudget amount
↳ amountnumberAmount in the smallest unit of the currency (e.g., cents for USD)
↳ currencystringISO 4217 currency code (e.g., USD)
↳ spend_budget_statusstringBudget status
↳ limit_typestringBudget limit type
nextCursorstringCursor for fetching the next page of results

brex_get_budget

Get a Brex budget by its ID

入力

パラメータ型必須説明
apiKeystringはいBrex user token (generated from Developer Settings in the Brex dashboard)
budgetIdstringはいID of the budget to fetch

出力

パラメータ型説明
budgetIdstringUnique budget ID
accountIdstringAccount ID the budget belongs to
namestringBudget name
descriptionstringBudget description
parentBudgetIdstringParent budget ID
ownerUserIdsarrayUser IDs of the budget owners
periodRecurrenceTypestringBudget period recurrence (WEEKLY, MONTHLY, QUARTERLY, YEARLY, ONE_TIME)
startDatestringBudget start date
endDatestringBudget end date
amountjsonBudget amount
↳ amountnumberAmount in the smallest unit of the currency (e.g., cents for USD)
↳ currencystringISO 4217 currency code (e.g., USD)
spendBudgetStatusstringBudget status (ACTIVE, ARCHIVED, DELETED, EXPIRED)
limitTypestringBudget limit type (HARD or SOFT)

brex_list_spend_limits

List spend limits in the Brex account, optionally filtered by member user

入力

パラメータ型必須説明
apiKeystringはいBrex user token (generated from Developer Settings in the Brex dashboard)
memberUserIdsstringいいえComma-separated user IDs to filter spend limits by member
cursorstringいいえPagination cursor from a previous response
limitstringいいえNumber of spend limits to return (default 100, max 1000)

出力

パラメータ型説明
itemsarraySpend limits in the Brex account
↳ idstringUnique spend limit ID
↳ account_idstringAccount ID the spend limit belongs to
↳ namestringSpend limit name
↳ descriptionstringSpend limit description
↳ parent_budget_idstringParent budget ID
↳ statusstringSpend limit status
↳ period_recurrence_typestringPeriod recurrence (PER_WEEK, PER_MONTH, PER_QUARTER, PER_YEAR, ONE_TIME)
↳ spend_typestringSpend type of the limit
↳ owner_user_idsarrayUser IDs of the spend limit owners
↳ member_user_idsarrayUser IDs of the spend limit members
↳ current_period_balancejsonSpend and rollover amounts for the current period
↳ start_datestringStart date of the current period
↳ end_datestringEnd date of the current period
↳ start_timestringStart time of the current period (ISO 8601)
↳ end_timestringEnd time of the current period (ISO 8601)
↳ amount_spentjsonAmount spent in the current period
↳ amountnumberAmount in the smallest unit of the currency (e.g., cents for USD)
↳ currencystringISO 4217 currency code (e.g., USD)
↳ rollover_amountjsonAmount rolled over from previous periods
↳ amountnumberAmount in the smallest unit of the currency (e.g., cents for USD)
↳ currencystringISO 4217 currency code (e.g., USD)
nextCursorstringCursor for fetching the next page of results

brex_get_spend_limit

Get a Brex spend limit by its ID

入力

パラメータ型必須説明
apiKeystringはいBrex user token (generated from Developer Settings in the Brex dashboard)
spendLimitIdstringはいID of the spend limit to fetch

出力

パラメータ型説明
idstringUnique spend limit ID
accountIdstringAccount ID the spend limit belongs to
namestringSpend limit name
descriptionstringSpend limit description
parentBudgetIdstringParent budget ID
statusstringSpend limit status (ACTIVE, EXPIRED, ARCHIVED, DELETED)
periodRecurrenceTypestringPeriod recurrence (PER_WEEK, PER_MONTH, PER_QUARTER, PER_YEAR, ONE_TIME)
spendTypestringSpend type of the limit
startDatestringSpend limit start date
endDatestringSpend limit end date
ownerUserIdsarrayUser IDs of the spend limit owners
memberUserIdsarrayUser IDs of the spend limit members
currentPeriodBalancejsonSpend and rollover amounts for the current period
↳ start_datestringStart date of the current period
↳ end_datestringEnd date of the current period
↳ start_timestringStart time of the current period (ISO 8601)
↳ end_timestringEnd time of the current period (ISO 8601)
↳ amount_spentjsonAmount spent in the current period
↳ amountnumberAmount in the smallest unit of the currency (e.g., cents for USD)
↳ currencystringISO 4217 currency code (e.g., USD)
↳ rollover_amountjsonAmount rolled over from previous periods
↳ amountnumberAmount in the smallest unit of the currency (e.g., cents for USD)
↳ currencystringISO 4217 currency code (e.g., USD)
authorizationSettingsjsonAuthorization settings (base limit, authorization type, rollover refresh)

brex_list_vendors

List vendors in the Brex account, optionally filtered by name

入力

パラメータ型必須説明
apiKeystringはいBrex user token (generated from Developer Settings in the Brex dashboard)
namestringいいえFilter vendors by name
cursorstringいいえPagination cursor from a previous response
limitstringいいえNumber of vendors to return (default 100, max 1000)

出力

パラメータ型説明
itemsarrayVendors in the Brex account
↳ idstringUnique vendor ID
↳ company_namestringVendor company name
↳ emailstringVendor email address
↳ phonestringVendor phone number
↳ payment_accountsarrayPayment accounts associated with the vendor
nextCursorstringCursor for fetching the next page of results

brex_get_vendor

Get a Brex vendor by its ID

入力

パラメータ型必須説明
apiKeystringはいBrex user token (generated from Developer Settings in the Brex dashboard)
vendorIdstringはいID of the vendor to fetch

出力

パラメータ型説明
idstringUnique vendor ID
companyNamestringVendor company name
emailstringVendor email address
phonestringVendor phone number
paymentAccountsarrayPayment accounts associated with the vendor

brex_list_transfers

List money transfers in the Brex account

入力

パラメータ型必須説明
apiKeystringはいBrex user token (generated from Developer Settings in the Brex dashboard)
cursorstringいいえPagination cursor from a previous response
limitstringいいえNumber of transfers to return (default 100, max 1000)

出力

パラメータ型説明
itemsarrayTransfers in the Brex account
↳ idstringUnique transfer ID
↳ counterpartyjsonTransfer counterparty details
↳ descriptionstringTransfer description
↳ payment_typestringPayment type (ACH, DOMESTIC_WIRE, CHEQUE, INTERNATIONAL_WIRE, BOOK_TRANSFER, STABLECOIN)
↳ amountjsonTransfer amount
↳ amountnumberAmount in the smallest unit of the currency (e.g., cents for USD)
↳ currencystringISO 4217 currency code (e.g., USD)
↳ process_datestringDate the transfer processes
↳ originating_accountjsonAccount the transfer originates from
↳ statusstringTransfer status (PROCESSING, SCHEDULED, PENDING_APPROVAL, FAILED, PROCESSED)
↳ cancellation_reasonstringReason the transfer was canceled
↳ estimated_delivery_datestringEstimated delivery date
↳ creator_user_idstringID of the user who created the transfer
↳ created_atstringCreation timestamp
↳ display_namestringTransfer display name
↳ external_memostringExternal memo
nextCursorstringCursor for fetching the next page of results

brex_get_transfer

Get a Brex money transfer by its ID

入力

パラメータ型必須説明
apiKeystringはいBrex user token (generated from Developer Settings in the Brex dashboard)
transferIdstringはいID of the transfer to fetch

出力

パラメータ型説明
idstringUnique transfer ID
counterpartyjsonTransfer counterparty details
descriptionstringTransfer description
paymentTypestringPayment type (ACH, DOMESTIC_WIRE, CHEQUE, INTERNATIONAL_WIRE, BOOK_TRANSFER, STABLECOIN)
amountjsonTransfer amount
↳ amountnumberAmount in the smallest unit of the currency (e.g., cents for USD)
↳ currencystringISO 4217 currency code (e.g., USD)
processDatestringDate the transfer processes
originatingAccountjsonAccount the transfer originates from
statusstringTransfer status (PROCESSING, SCHEDULED, PENDING_APPROVAL, FAILED, PROCESSED)
cancellationReasonstringReason the transfer was canceled
estimatedDeliveryDatestringEstimated delivery date
creatorUserIdstringID of the user who created the transfer
createdAtstringCreation timestamp
displayNamestringTransfer display name
externalMemostringExternal memo

On this page