Brex

App · Payments & Billing · 12 actions

Manage Brex card spend, expenses, transactions and virtual cards, and pay vendors from your Brex business account.

Actions

ActionWhat it does
Create a cardCreate a new virtual or physical Brex card.
Get a paymentCheck where a Brex payment is: waiting for approval, scheduled, on its way, paid or not sent.
Get an expenseFetch a single card expense by ID.
List card transactionsList settled transactions on the primary card account.
List cardsList Brex cards, optionally filtered by user.
List expensesList card expenses, with optional filters by user, budget, status, payment status, and purchase date range.
List expenses missing a receiptFind every expense in a date range that has no receipt attached, such as last week's, optionally only those over a set amount.
List usersList users in the Brex account, with an optional email filter.
List vendorsList the vendors saved in Brex Payments and the ways each can be paid.
Pay a vendorPay a vendor saved in Brex from your Brex business account.
Update an expenseUpdate the memo on a card expense.
Upload a receiptUpload a receipt file to Brex.

Create a card

Create a new virtual or physical Brex card. For a vendor card with its own spending limit, set the limit type to CARD. For an employee card that uses the person's existing limit, set the limit type to USER.

Inputs

Owner user IDowner_user_idtextRequired
The ID of the user the card is issued to. You can find user IDs with the List Brex users action.
Card namecard_nametextRequired
Display name for the card (e.g. 'AWS - Vendor').
Card typecard_typetextRequired
Choose VIRTUAL or PHYSICAL. Vendor cards must be VIRTUAL.
Limit typelimit_typetextRequired
Choose CARD (a vendor card with its own limit) or USER (a corporate card that uses the person's limit). If you choose CARD, the spend limit amount and spend duration are required.
Spend limit amountspend_limit_amountnumber
Required when the limit type is CARD. Enter the amount in the smallest currency unit (for example, cents for USD, so 50000 means $500).
Spend limit currencyspend_limit_currencytext
Three-letter currency code, for example USD. Default is USD.Default: USD.
Spend durationspend_durationtext
Required when the limit type is CARD. How long the spend limit applies: MONTHLY, QUARTERLY, YEARLY, or ONE_TIME.
Reasonreasontext
The reason for the spend limit.
Lock after datelock_after_datetext
The card locks automatically after this date. Use the format yyyy-mm-dd, for example 2026-12-31.
Mailing addressmailing_addressobject
Required for physical cards. The shipping details, with these fields: recipient_name, phone_number, and address (which contains line1, line2, city, state, postal_code, and country).

Outputs

card_nametext
card_typetext
idtext
New card ID. Use as card_id in subsequent actions (list_card_transactions filter, future lock/terminate).
last_fourtext
Last four digits of the new card.
limit_typetext
ownerobject
{type, user_id}. Echoes the input.
spend_controlsobject
Echoes the input spend_controls when limit_type=CARD.
statustext
Initial status, typically ACTIVE.
Example output
{
  "card_name": "AWS - Vendor",
  "card_type": "VIRTUAL",
  "id": "card_abc123",
  "last_four": "4242",
  "limit_type": "CARD",
  "status": "ACTIVE"
}

Get a payment

Check where a Brex payment is: waiting for approval, scheduled, on its way, paid or not sent.

Inputs

Payment IDpayment_idtextRequired
The ID Pay a Brex vendor returned.

Outputs

amountobject
{amount, currency}, with amount in cents.
cancellation_reasontext
Why a FAILED payment didn't go: USER_CANCELLED, INSUFFICIENT_FUNDS, APPROVAL_DENIED or BLOCKED_BY_POSITIVE_PAY.
created_attext
When it was created.
display_nametext
How Brex names the payment: the vendor and the memo.
estimated_delivery_datetext
When Brex expects the money to arrive, once approved.
external_memotext
The memo the vendor sees.
idtext
The payment's ID. Use it in Get a Brex payment.
payment_typetext
ACH, DOMESTIC_WIRE, CHEQUE or INTERNATIONAL_WIRE.
statustext
PENDING_APPROVAL (waiting for a Brex admin), SCHEDULED, PROCESSING, PROCESSED (paid) or FAILED (canceled, denied or not enough money).
Example output
{
  "amount": {
    "amount": 48000,
    "currency": "USD"
  },
  "cancellation_reason": null,
  "created_at": "2026-10-30",
  "display_name": "Nextbridge - Invoice NX-16025",
  "estimated_delivery_date": null,
  "external_memo": "Invoice NX-16025",
  "id": "dptx_mock123",
  "payment_type": "ACH",
  "status": "PROCESSED"
}

Get an expense

Fetch a single card expense by ID.

Inputs

Expense IDexpense_idtextRequired
The ID of the expense. You can find it with the List Brex expenses or List Brex card transactions actions.
Extra details to includeexpandlist
Extra details to include with the expense. Options: merchant, location, department, receipts.download_uris, user, budget, payment, spending_entity, policy.

Outputs

A single Brex expense object. Same shape as one entry of list_expenses.items.

Example output
{
  "amount": {
    "amount": 1800,
    "currency": "USD"
  },
  "id": "expense_abc123",
  "memo": "Notion subscription"
}

List card transactions

List settled transactions on the primary card account. Pending transactions are not included. Regular users can only see their own purchase, refund, and chargeback transactions.

Inputs

User IDsuser_idslist
Only include transactions made by these users. You can find user IDs with the List Brex users action.
Posted date fromposted_at_starttext
Only include transactions posted at or after this time (for example, 2026-04-01T00:00:00Z).
Cursorcursortext
To get the next page of results, enter the next_cursor value from the previous run.
Limitlimitnumber
How many results to return per page, up to 100. Default is 50.Default: 50.

Outputs

itemslist
Settled card transactions.
next_cursortext
Cursor for the next page.
Example output
{
  "items": [
    {
      "amount": {
        "amount": 1800,
        "currency": "USD"
      },
      "description": "NOTION LABS INC",
      "id": "txn_abc123",
      "type": "PURCHASE"
    }
  ],
  "next_cursor": null
}

List cards

List Brex cards, optionally filtered by user.

Inputs

User IDuser_idtext
Only include cards owned by this user. You can find user IDs with the List Brex users action.
Cursorcursortext
To get the next page of results, enter the next_cursor value from the previous run.
Limitlimitnumber
How many results to return per page, up to 100. Default is 50.Default: 50.

Outputs

itemslist
List of Brex card objects.
next_cursortext
Cursor for the next page.
Example output
{
  "items": [
    {
      "card_name": "AWS - Vendor",
      "card_type": "VIRTUAL",
      "id": "card_abc123",
      "last_four": "4242",
      "limit_type": "CARD",
      "status": "ACTIVE"
    }
  ],
  "next_cursor": null
}

List expenses

List card expenses, with optional filters by user, budget, status, payment status, and purchase date range. Results come back one page at a time.

Inputs

User IDuser_idlist
Only include expenses owned by these users. You can find user IDs with the List Brex users action.
Budget IDbudget_idlist
Filter to expenses charged against these budget IDs.
Parent expense IDparent_expense_idlist
Only include expenses that belong to these parent expenses.
Expense statusexpense_statuslist
Only include expenses with these statuses: DRAFT, SUBMITTED, APPROVED, OUT_OF_POLICY, VOID, CANCELED, SPLIT, or SETTLED.
Payment statuspayment_statuslist
Only include expenses with these payment statuses: NOT_STARTED, PROCESSING, CANCELED, DECLINED, CLEARED, REFUNDING, REFUNDED, CASH_ADVANCE, CREDITED, AWAITING_PAYMENT, or SCHEDULED.
Purchase date frompurchased_at_starttext
Only include expenses purchased at or after this time (for example, 2026-04-01T00:00:00Z).
Purchase date topurchased_at_endtext
Only include expenses purchased up to this time (for example, 2026-04-30T00:00:00Z).
Extra details to includeexpandlist
Extra details to include with each expense. Options: merchant, location, department, receipts.download_uris, user, budget, payment, spending_entity, policy.
Cursorcursortext
To get the next page of results, enter the next_cursor value from the previous run.
Limitlimitnumber
How many results to return per page, up to 100. Default is 50.Default: 50.

Outputs

itemslist
List of Brex expense objects.
next_cursortext
Cursor for the next page. null/empty when there are no more pages.
Example output
{
  "items": [
    {
      "amount": {
        "amount": 1800,
        "currency": "USD"
      },
      "expense_status": "SETTLED",
      "id": "expense_abc123",
      "memo": "Notion subscription",
      "payment_status": "CLEARED"
    }
  ],
  "next_cursor": null
}

List expenses missing a receipt

Find every expense in a date range that has no receipt attached, such as last week's, optionally only those over a set amount. Voided and canceled expenses, and an expense that was split into parts, are left out. Every page is read for you, amounts come in dollars ready to read, and the expenses also come grouped by the person who made them, with their email and total, so a reminder to each person and one summary need no paging, lookup or grouping step.

Inputs

Amount over ($)amount_overnumber
Only expenses of more than this many dollars, such as 75: 75 leaves out an expense of exactly $75.00. Leave blank for every amount.At least 0.
Look back (days)daysnumber
How many days back to look, up to but not including today (in UTC): 7, the default, is the past week. Ignored when 'Purchased from' is filled in.From 1 to 366. Default: 7.
Purchased frompurchased_fromdate
Instead of 'Look back', the first day to include, such as 2026-11-02.
Purchased topurchased_todate
The last day to include, such as 2026-11-08. Leave blank to include up to yesterday.

Outputs

by_employeelist
The same expenses, one record per person, the largest total first: loop over these and send 'expenses_text' to 'employee_email'.
countnumber
How many expenses are missing a receipt: 0 when none are, so 'send nothing when the list is empty' is one check.
expenseslist
Every expense missing a receipt, oldest first.
period_displaytext
Beta. The days looked at, ready to read, such as 'Nov 2 – Nov 8, 2026' (or 'Nov 2, 2026' for one day).
purchased_fromtext
The first day looked at, such as 2026-11-02.
purchased_totext
The last day looked at, such as 2026-11-08.
summary_texttext
One line per person with their count and total, such as '• Ana Reyes: 2 expenses, $187.50', ready for a summary email.
totalnumber
What they add up to, in dollars, such as 1200.5.
total_displaytext
The total ready to read, such as $1,200.50 (each currency's total joined with +, when there are several).
Example output
{
  "by_employee": [
    {
      "count": 2,
      "employee_email": "ana@example.com",
      "employee_first_name": "Ana",
      "employee_name": "Ana Reyes",
      "expenses": [
        {
          "amount": 112.5,
          "amount_display": "$112.50",
          "currency": "USD",
          "employee_email": "ana@example.com",
          "employee_first_name": "Ana",
          "employee_name": "Ana Reyes",
          "expense_id": "expense_abc123",
          "memo": "",
          "merchant": "DELTA AIR",
          "purchased_on": "2026-11-03",
          "purchased_on_display": "Nov 3, 2026",
          "status": "SUBMITTED"
        },
        {
          "amount": 86.4,
          "amount_display": "$86.40",
          "currency": "USD",
          "employee_email": "ana@example.com",
          "employee_first_name": "Ana",
          "employee_name": "Ana Reyes",
          "expense_id": "expense_def456",
          "memo": "Client visit",
          "merchant": "HILTON",
          "purchased_on": "2026-11-05",
          "purchased_on_display": "Nov 5, 2026",
          "status": "APPROVED"
        }
      ],
      "expenses_text": "\u2022 Nov 3, 2026: DELTA AIR, $112.50\n\u2022 Nov 5, 2026: HILTON, $86.40",
      "total": 198.9,
      "total_display": "$198.90"
    }
  ],
  "count": 2,
  "expenses": [
    {
      "amount": 112.5,
      "amount_display": "$112.50",
      "currency": "USD",
      "employee_email": "ana@example.com",
      "employee_first_name": "Ana",
      "employee_name": "Ana Reyes",
      "expense_id": "expense_abc123",
      "memo": "",
      "merchant": "DELTA AIR",
      "purchased_on": "2026-11-03",
      "purchased_on_display": "Nov 3, 2026",
      "status": "SUBMITTED"
    },
    {
      "amount": 86.4,
      "amount_display": "$86.40",
      "currency": "USD",
      "employee_email": "ana@example.com",
      "employee_first_name": "Ana",
      "employee_name": "Ana Reyes",
      "expense_id": "expense_def456",
      "memo": "Client visit",
      "merchant": "HILTON",
      "purchased_on": "2026-11-05",
      "purchased_on_display": "Nov 5, 2026",
      "status": "APPROVED"
    }
  ],
  "period_display": "Nov 2 \u2013 Nov 8, 2026",
  "purchased_from": "2026-11-02",
  "purchased_to": "2026-11-08",
  "summary_text": "\u2022 Ana Reyes: 2 expenses, $198.90",
  "total": 198.9,
  "total_display": "$198.90"
}

List users

List users in the Brex account, with an optional email filter. Use the user IDs from this action to create cards or to filter expenses and cards by user.

Inputs

Emailemailtext
Filter to a user by email address.
Remote display IDremote_display_idtext
Filter by the user's ID from your HR or sign-in system.
Cursorcursortext
To get the next page of results, enter the next_cursor value from the previous run.
Limitlimitnumber
How many results to return per page, up to 100. Default is 50.Default: 50.

Outputs

itemslist
List of Brex users.
next_cursortext
Cursor for the next page.
Example output
{
  "items": [
    {
      "email": "alex@example.com",
      "first_name": "Alex",
      "id": "user_abc123",
      "last_name": "Chen",
      "status": "ACTIVE"
    }
  ],
  "next_cursor": null
}

List vendors

List the vendors saved in Brex Payments and the ways each can be paid. Only the last four digits of each account number are shown.

Inputs

Vendor namenametext
Only include vendors with this name.
Cursorcursortext
Cursor from a previous page's next_cursor.
Limitlimitnumber
How many vendors to return, up to 100. Default is 50.From 1 to 100. Default: 50.

Outputs

itemslist
The vendors on this page.
next_cursortext
Pass as cursor for the next page; empty on the last.
Example output
{
  "items": [
    {
      "company_name": "Nextbridge",
      "email": "billing@nextbridge.example",
      "id": "pdcont_mock123",
      "payment_accounts": [
        {
          "account_last_four": "6789",
          "method": "ACH",
          "payment_instrument_id": "pdinstl_mock123"
        }
      ],
      "phone": null
    }
  ],
  "next_cursor": null
}

Pay a vendor

Pay a vendor saved in Brex from your Brex business account. The payment waits in Brex until a Brex admin approves it, so no money moves until a person says so.

Inputs

Pay topayment_instrument_idtextRequired
The vendor, and how to pay them. Vendors and their bank details are added in Brex, under Payments.
AmountamountnumberRequired
How much to pay, in US dollars, such as 480.00.
MemomemotextRequired
What the vendor sees with the payment, such as the invoice number. Up to 90 characters, or 40 for a check.
Pay fromaccount_idtext
The Brex business account the money comes from. Leave it blank to use your primary account.

Outputs

amountobject
{amount, currency}, with amount in cents.
cancellation_reasontext
Why a FAILED payment didn't go: USER_CANCELLED, INSUFFICIENT_FUNDS, APPROVAL_DENIED or BLOCKED_BY_POSITIVE_PAY.
created_attext
When it was created.
display_nametext
How Brex names the payment: the vendor and the memo.
estimated_delivery_datetext
When Brex expects the money to arrive, once approved.
external_memotext
The memo the vendor sees.
idtext
The payment's ID. Use it in Get a Brex payment.
payment_typetext
ACH, DOMESTIC_WIRE, CHEQUE or INTERNATIONAL_WIRE.
statustext
PENDING_APPROVAL (waiting for a Brex admin), SCHEDULED, PROCESSING, PROCESSED (paid) or FAILED (canceled, denied or not enough money).
Example output
{
  "amount": {
    "amount": 48000,
    "currency": "USD"
  },
  "cancellation_reason": null,
  "created_at": "2026-10-30",
  "display_name": "Nextbridge - Invoice NX-16025",
  "estimated_delivery_date": null,
  "external_memo": "Invoice NX-16025",
  "id": "dptx_mock123",
  "payment_type": "ACH",
  "status": "PENDING_APPROVAL"
}

Update an expense

Update the memo on a card expense. The memo is the only field Brex allows this action to change.

Inputs

Expense IDexpense_idtextRequired
The ID of the expense to update. You can find it with the List Brex expenses action.
Memomemotext
The new memo text. It replaces the existing memo; leave it empty to clear the memo.

Outputs

Updated expense object. Subset of the full expense schema returned by get_expense.

idtext
Updated expense ID.
memotext
Memo after update.
updated_attext
RFC 3339 timestamp reflecting this update.
Example output
{
  "id": "expense_abc123",
  "memo": "Updated memo",
  "updated_at": "2026-04-07T12:00:00Z"
}

Upload a receipt

Upload a receipt file to Brex. If you provide an expense ID, the receipt is attached to that expense. Otherwise Brex matches it to an expense by amount, merchant, and date.

Inputs

Receipt namereceipt_nametextRequired
Filename including extension (e.g. 'receipt-2026-04-07.pdf').
FilefiletextRequired
The receipt file to upload (PDF, PNG, or JPG). You can attach a file or enter its file path.
Expense IDexpense_idtext
Optional. The expense to attach the receipt to. You can find expense IDs with the List Brex expenses action. If left blank, Brex matches the receipt to an expense automatically.

Outputs

idtext
Brex receipt ID. Use to look up the matched expense via list_expenses with expand=receipts.download_uris.
matched_expense_idtext
Expense the receipt matched to. Null when match is still pending. Use as expense_id in get_expense / update_expense.
statustext
Upload status: 'uploaded' or 'pending_match'.
Example output
{
  "id": "receipt_xyz789",
  "matched_expense_id": "expense_abc123",
  "status": "uploaded"
}

On this page