The budgets API lets you manage your Brex Budgets and Spend Limits.
Budgets API (1.0)
- Productionhttps://api.brex.com/v2/budgets
- Staging (Note: This is not a sandbox. It will not work with customer tokens.)https://api-staging.brex.com/v2/budgets
- curl
- JavaScript
- Node.js
- Python
- Ruby
- Java
curl -i -X GET \
https://api.brex.com/v2/budgets \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'A page with a list of Budgets
Period type of the Budget e.g. MONTHLY.
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.
Status of the Budget e.g. ACTIVE.
{ "next_cursor": "string", "items": [ { … } ] }
Period type of the Budget e.g. MONTHLY.
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.
- Productionhttps://api.brex.com/v2/budgets
- Staging (Note: This is not a sandbox. It will not work with customer tokens.)https://api-staging.brex.com/v2/budgets
- curl
- JavaScript
- Node.js
- Python
- Ruby
- Java
curl -i -X POST \
https://api.brex.com/v2/budgets \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-H 'Idempotency-Key: string' \
-d '{
"name": "string",
"description": "string",
"parent_budget_id": "string",
"owner_user_ids": [
"string"
],
"period_recurrence_type": "WEEKLY",
"amount": {
"amount": 700,
"currency": "USD"
},
"limit_type": "HARD",
"start_date": "2019-08-24",
"end_date": "2019-08-24"
}'The Budget that was created
Period type of the Budget e.g. MONTHLY.
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.
Status of the Budget e.g. ACTIVE.
{ "budget_id": "string", "account_id": "string", "name": "string", "description": "string", "parent_budget_id": "string", "owner_user_ids": [ "string" ], "period_recurrence_type": "WEEKLY", "start_date": "2019-08-24", "end_date": "2019-08-24", "amount": { "amount": 700, "currency": "USD" }, "spend_budget_status": "ACTIVE", "limit_type": "HARD" }
- Productionhttps://api.brex.com/v2/budgets/{id}
- Staging (Note: This is not a sandbox. It will not work with customer tokens.)https://api-staging.brex.com/v2/budgets/{id}
- curl
- JavaScript
- Node.js
- Python
- Ruby
- Java
curl -i -X GET \
'https://api.brex.com/v2/budgets/{id}' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'The Budget that was retrieved
Period type of the Budget e.g. MONTHLY.
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.
Status of the Budget e.g. ACTIVE.
{ "budget_id": "string", "account_id": "string", "name": "string", "description": "string", "parent_budget_id": "string", "owner_user_ids": [ "string" ], "period_recurrence_type": "WEEKLY", "start_date": "2019-08-24", "end_date": "2019-08-24", "amount": { "amount": 700, "currency": "USD" }, "spend_budget_status": "ACTIVE", "limit_type": "HARD" }
Period type of the Budget e.g. MONTHLY.
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.
- Productionhttps://api.brex.com/v2/budgets/{id}
- Staging (Note: This is not a sandbox. It will not work with customer tokens.)https://api-staging.brex.com/v2/budgets/{id}
- curl
- JavaScript
- Node.js
- Python
- Ruby
- Java
curl -i -X PUT \
'https://api.brex.com/v2/budgets/{id}' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-H 'Idempotency-Key: string' \
-d '{
"name": "string",
"description": "string",
"parent_budget_id": "string",
"owner_user_ids": [
"string"
],
"period_recurrence_type": "WEEKLY",
"amount": {
"amount": 700,
"currency": "USD"
},
"limit_type": "HARD",
"start_date": "2019-08-24",
"end_date": "2019-08-24"
}'The Budget that was updated
Period type of the Budget e.g. MONTHLY.
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.
Status of the Budget e.g. ACTIVE.
{ "budget_id": "string", "account_id": "string", "name": "string", "description": "string", "parent_budget_id": "string", "owner_user_ids": [ "string" ], "period_recurrence_type": "WEEKLY", "start_date": "2019-08-24", "end_date": "2019-08-24", "amount": { "amount": 700, "currency": "USD" }, "spend_budget_status": "ACTIVE", "limit_type": "HARD" }
- Productionhttps://api.brex.com/v2/budgets/{id}/archive
- Staging (Note: This is not a sandbox. It will not work with customer tokens.)https://api-staging.brex.com/v2/budgets/{id}/archive
- curl
- JavaScript
- Node.js
- Python
- Ruby
- Java
curl -i -X POST \
'https://api.brex.com/v2/budgets/{id}/archive' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'