Easily Integrate
Brex's Expenses API using Konfig's TypeScript SDK
Growing API Companies trust Konfig's SDKs to onboard developers to their API.





First, instantiate the SDK
It only takes a few lines of code.
Then, send your first request
We made it really easy.
Enjoy a buttery smooth developer experience with 5 SDK methods
Parameter
Get additional details for the expense, e.g. merchant mcc code, by passing in expand[]=merchant. Query parameters include location, department, merchant, receipts.download_uris, user, budget and payment.
Get expenses belong to provided user(https://developer.brex.com/openapi/expenses_api/.
Get itemized expenses belong to provided parent expenses ID(https://developer.brex.com/openapi/expenses_api/.
Shows only expenses with a purchased_at on or after this date-time. This parameter is the date-time notation as defined by RFC 3339, section 5.6, e.g. 2022-11-12T23:59:59.999
Shows only expenses with a purchased_at on or before this date-time. This parameter is the date-time notation as defined by RFC 3339, section 5.6, e.g. 2022-11-12T23:59:59.999
The cursor to use for pagination. This is the next_cursor value returned from the previous response.
Response
Bad request
Unauthorized
Forbidden
Endpoint
Parameter
Response
The pre-signed file upload URI and unique identifier of the request.
Bad request
Unauthorized
Endpoint
Parameter
Get additional details for the expense, e.g. merchant mcc code, by passing in expand[]=merchant. Query parameters include location, department, merchant, receipts.download_uris, user, budget and payment.
Response
The expense object that has expandable fields, e.g., location, department, and receipts.
Bad request
Unauthorized
Forbidden
Not Found
Endpoint
Parameter
Response
Bad request
Unauthorized
Forbidden
Not Found
Endpoint
Parameter
Response
The pre-signed file upload URI and unique identifier of the request.
Bad request
Unauthorized
Forbidden
Not Found
Endpoint
How Konfig Works
Konfig collects APIs and automatically generates SDKs so you can focus on building your application.
Konfig maintains the highest quality collection of OpenAPI Specifications on the internet in a GitHub repository
We pull OpenAPI Specifications from public sources, fix any errors, and make sure they pass our lint rules. We continually make sure the repository is up-to-date and collect up-time and response time metrics for every API.

Generates AI-Augmented SDKs from openapi-examples
Our SDK generator is trusted by growing API companies and goes through a rigorous testing process to ensure the generated SDKs are high-quality and easy to use.

Publishes to standard package managers
We publish to standard package managers like npm, PyPI, and Maven so you can easily integrate the SDK into your application.

About Brex
Brex is the AI-powered spend platform. We transform finance teams from reactive no-sayers to proactive growth drivers. With Brex, companies spend with confidence by empowering employees to make smarter financial decisions from anywhere. Brex provides corporate cards, business accounts, and global payments, plus intuitive software for travel and expenses, that make it easy to plan and track all company spend in one place, in real time. Over 20,000 companies from startups to global enterprises — including DoorDash, Flexport, and Compass — use Brex to proactively control spend, reduce costs, and increase efficiency on a global scale.
