Skip to content

BudgetsPaths

Defined in: src/budgets/types.gen.ts:2

/v1/budget_programs: object

Defined in: src/budgets/types.gen.ts:3

optional delete?: undefined

get: object

List Budget Programs

Lists Budget Programs belonging to this account

parameters: object

optional cookie?: undefined

optional header?: undefined

optional path?: undefined

optional query?: object

optional cursor?: string | null

optional limit?: number | null

optional requestBody?: undefined

responses: object

200: object

A page with a list of Budget Programs

content: object

get.responses.200.content.application/json
Section titled “get.responses.200.content.application/json”

application/json: object

get.responses.200.content.application/json.items
Section titled “get.responses.200.content.application/json.items”

items: object[]

get.responses.200.content.application/json.next_cursor?
Section titled “get.responses.200.content.application/json.next_cursor?”

optional next_cursor?: string | null

headers: object

[name: string]: unknown

400: object

Bad request

optional content?: undefined

headers: object

[name: string]: unknown

401: object

Unauthorized

optional content?: undefined

headers: object

[name: string]: unknown

403: object

Forbidden

optional content?: undefined

headers: object

[name: string]: unknown

optional head?: undefined

optional options?: undefined

parameters: object

optional cookie?: undefined

optional header?: undefined

optional path?: undefined

optional query?: undefined

optional patch?: undefined

optional post?: undefined

optional put?: undefined

optional trace?: undefined


/v1/budget_programs/{id}: object

Defined in: src/budgets/types.gen.ts:23

optional delete?: undefined

get: object

Get Budget Program

Retrieves a Budget Program by ID

parameters: object

optional cookie?: undefined

optional header?: undefined

path: object

id: string

optional query?: undefined

optional requestBody?: undefined

responses: object

200: object

The Budget Program that was retrieved

content: object

get.responses.200.content.application/json
Section titled “get.responses.200.content.application/json”

application/json: object

get.responses.200.content.application/json.budget_blueprints
Section titled “get.responses.200.content.application/json.budget_blueprints”

budget_blueprints: object[]

get.responses.200.content.application/json.budget_program_status
Section titled “get.responses.200.content.application/json.budget_program_status”

budget_program_status: "BUDGET_PROGRAM_STATUS_ACTIVE" | "BUDGET_PROGRAM_STATUS_INACTIVE" | "BUDGET_PROGRAM_STATUS_DELETED"

get.responses.200.content.application/json.created_at
Section titled “get.responses.200.content.application/json.created_at”

created_at: string

Format: date

get.responses.200.content.application/json.creator_user_id?
Section titled “get.responses.200.content.application/json.creator_user_id?”

optional creator_user_id?: string | null

get.responses.200.content.application/json.description?
Section titled “get.responses.200.content.application/json.description?”

optional description?: string | null

get.responses.200.content.application/json.employee_filter?
Section titled “get.responses.200.content.application/json.employee_filter?”

optional employee_filter?: { employment_status?: "EMPLOYMENT_STATUS_ACTIVE" | "EMPLOYMENT_STATUS_INACTIVE" | "EMPLOYMENT_STATUS_PENDING" | null; employment_type?: "EMPLOYMENT_TYPE_FULL_TIME" | "EMPLOYMENT_TYPE_PART_TIME" | "EMPLOYMENT_TYPE_CONTRACTOR" | "EMPLOYMENT_TYPE_INTERN" | "EMPLOYMENT_TYPE_FREELANCE" | null; } | null

get.responses.200.content.application/json.existing_budget_ids?
Section titled “get.responses.200.content.application/json.existing_budget_ids?”

optional existing_budget_ids?: string[] | null

IDs for existing Spend Limits associated with this Budget Program.

get.responses.200.content.application/json.id
Section titled “get.responses.200.content.application/json.id”

id: string

get.responses.200.content.application/json.name
Section titled “get.responses.200.content.application/json.name”

name: string

get.responses.200.content.application/json.updated_at
Section titled “get.responses.200.content.application/json.updated_at”

updated_at: string

Format: date

headers: object

[name: string]: unknown

400: object

Bad request

optional content?: undefined

headers: object

[name: string]: unknown

401: object

Unauthorized

optional content?: undefined

headers: object

[name: string]: unknown

403: object

Forbidden

optional content?: undefined

headers: object

[name: string]: unknown

404: object

Not Found

optional content?: undefined

headers: object

[name: string]: unknown

optional head?: undefined

optional options?: undefined

parameters: object

optional cookie?: undefined

optional header?: undefined

optional path?: undefined

optional query?: undefined

optional patch?: undefined

optional post?: undefined

optional put?: undefined

optional trace?: undefined


/v1/budgets: object

Defined in: src/budgets/types.gen.ts:43

optional delete?: undefined

get: object

List Spend Limits

Lists Spend Limits belonging to this account

parameters: object

optional cookie?: undefined

optional header?: undefined

optional path?: undefined

optional query?: object

optional cursor?: string | null

optional limit?: number | null

optional requestBody?: undefined

responses: object

200: object

A page with a list of Spend Limits

content: object

get.responses.200.content.application/json
Section titled “get.responses.200.content.application/json”

application/json: object

get.responses.200.content.application/json.items
Section titled “get.responses.200.content.application/json.items”

items: object[]

get.responses.200.content.application/json.next_cursor?
Section titled “get.responses.200.content.application/json.next_cursor?”

optional next_cursor?: string | null

headers: object

[name: string]: unknown

400: object

Bad request

optional content?: undefined

headers: object

[name: string]: unknown

401: object

Unauthorized

optional content?: undefined

headers: object

[name: string]: unknown

403: object

Forbidden

optional content?: undefined

headers: object

[name: string]: unknown

optional head?: undefined

optional options?: undefined

parameters: object

optional cookie?: undefined

optional header?: undefined

optional path?: undefined

optional query?: undefined

optional patch?: undefined

post: object

Create Spend Limit

Creates a Spend Limit

parameters: object

optional cookie?: undefined

header: object

Idempotency-Key: string

optional path?: undefined

optional query?: undefined

requestBody: object

content: object

application/json: object

post.requestBody.content.application/json.description
Section titled “post.requestBody.content.application/json.description”

description: string

Description of what the Spend Limit is used for.

post.requestBody.content.application/json.end_date?
Section titled “post.requestBody.content.application/json.end_date?”

optional end_date?: string | null

Format: date

The UTC date when the Spend Limit should stop counting.

post.requestBody.content.application/json.entity_id?
Section titled “post.requestBody.content.application/json.entity_id?”

optional entity_id?: string | null

post.requestBody.content.application/json.limit
Section titled “post.requestBody.content.application/json.limit”

limit: object

post.requestBody.content.application/json.limit.amount
Section titled “post.requestBody.content.application/json.limit.amount”

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
post.requestBody.content.application/json.limit.currency
Section titled “post.requestBody.content.application/json.limit.currency”

currency: string | null

The type of currency, in ISO 4217 format.

USD
USD
post.requestBody.content.application/json.limit_type
Section titled “post.requestBody.content.application/json.limit_type”

limit_type: "HARD" | "SOFT"

post.requestBody.content.application/json.limit_visibility
Section titled “post.requestBody.content.application/json.limit_visibility”

limit_visibility: "PRIVATE" | "SHARED"

post.requestBody.content.application/json.member_user_ids?
Section titled “post.requestBody.content.application/json.member_user_ids?”

optional member_user_ids?: string[] | null

User IDs of the members of the Spend Limit.

post.requestBody.content.application/json.name
Section titled “post.requestBody.content.application/json.name”

name: string

Name for the Spend Limit.

post.requestBody.content.application/json.owner_user_ids?
Section titled “post.requestBody.content.application/json.owner_user_ids?”

optional owner_user_ids?: string[] | null

User IDs of the owners of the Spend Limit.

post.requestBody.content.application/json.parent_budget_id
Section titled “post.requestBody.content.application/json.parent_budget_id”

parent_budget_id: string

ID of parent Budget.

post.requestBody.content.application/json.period_type
Section titled “post.requestBody.content.application/json.period_type”

period_type: "WEEKLY" | "MONTHLY" | "QUARTERLY" | "YEARLY" | "ONE_TIME"

post.requestBody.content.application/json.policy_id?
Section titled “post.requestBody.content.application/json.policy_id?”

optional policy_id?: string | null

post.requestBody.content.application/json.spend_type
Section titled “post.requestBody.content.application/json.spend_type”

spend_type: "BUDGET_PROVISIONED_CARDS_ONLY" | "NON_BUDGET_PROVISIONED_CARDS_ALLOWED"

post.requestBody.content.application/json.start_date?
Section titled “post.requestBody.content.application/json.start_date?”

optional start_date?: string | null

Format: date

The UTC date when the Spend Limit should start counting.

responses: object

200: object

The Spend Limit that was created

content: object

post.responses.200.content.application/json
Section titled “post.responses.200.content.application/json”

application/json: object

post.responses.200.content.application/json.account_id
Section titled “post.responses.200.content.application/json.account_id”

account_id: string

The Brex account this Spend Limit belongs to.

post.responses.200.content.application/json.budget_id
Section titled “post.responses.200.content.application/json.budget_id”

budget_id: string

Unique ID for the Spend Limit.

post.responses.200.content.application/json.budget_status
Section titled “post.responses.200.content.application/json.budget_status”

budget_status: "DELETED" | "APPROVED" | "EXPIRED" | "TERMINATED"

post.responses.200.content.application/json.budget_type
Section titled “post.responses.200.content.application/json.budget_type”

budget_type: "BUDGET" | "SPEND_LIMIT"

post.responses.200.content.application/json.creator_user_id?
Section titled “post.responses.200.content.application/json.creator_user_id?”

optional creator_user_id?: string | null

The ID of the user who originally created this Spend Limit.

post.responses.200.content.application/json.current_period_balance?
Section titled “post.responses.200.content.application/json.current_period_balance?”

optional current_period_balance?: { balance?: { amount: number; currency: … | …; } | null; end_date?: string | null; start_date?: string | null; } | null

{ balance?: { amount: number; currency: … | …; } | null; end_date?: string | null; start_date?: string | null; }

optional balance?: { amount: number; currency: … | …; } | null

{ amount: number; currency: … | …; }

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: … | …

The type of currency, in ISO 4217 format.

USD
USD

null

optional end_date?: string | null

Format: date

optional start_date?: string | null

Format: date


null

post.responses.200.content.application/json.description?
Section titled “post.responses.200.content.application/json.description?”

optional description?: string | null

Description of what the Spend Limit is used for.

post.responses.200.content.application/json.end_date?
Section titled “post.responses.200.content.application/json.end_date?”

optional end_date?: string | null

Format: date

The UTC date when the Spend Limit should stop counting.

post.responses.200.content.application/json.limit?
Section titled “post.responses.200.content.application/json.limit?”

optional 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

post.responses.200.content.application/json.limit_type?
Section titled “post.responses.200.content.application/json.limit_type?”

optional limit_type?: "HARD" | "SOFT" | null

post.responses.200.content.application/json.limit_visibility
Section titled “post.responses.200.content.application/json.limit_visibility”

limit_visibility: "PRIVATE" | "SHARED"

post.responses.200.content.application/json.member_user_ids
Section titled “post.responses.200.content.application/json.member_user_ids”

member_user_ids: string[]

User IDs of the members of the Spend Limit.

post.responses.200.content.application/json.name
Section titled “post.responses.200.content.application/json.name”

name: string

Name for the Spend Limit.

post.responses.200.content.application/json.owner_user_ids
Section titled “post.responses.200.content.application/json.owner_user_ids”

owner_user_ids: string[]

User IDs of the owners of the Spend Limit.

post.responses.200.content.application/json.parent_budget_id?
Section titled “post.responses.200.content.application/json.parent_budget_id?”

optional parent_budget_id?: string | null

ID of parent Budget.

post.responses.200.content.application/json.period_type
Section titled “post.responses.200.content.application/json.period_type”

period_type: "WEEKLY" | "MONTHLY" | "QUARTERLY" | "YEARLY" | "ONE_TIME"

post.responses.200.content.application/json.spend_type
Section titled “post.responses.200.content.application/json.spend_type”

spend_type: "BUDGET_PROVISIONED_CARDS_ONLY" | "NON_BUDGET_PROVISIONED_CARDS_ALLOWED"

post.responses.200.content.application/json.start_date?
Section titled “post.responses.200.content.application/json.start_date?”

optional start_date?: string | null

Format: date

The UTC date when the Spend Limit should start counting.

post.responses.200.content.application/json.templateId?
Section titled “post.responses.200.content.application/json.templateId?”

optional templateId?: string | null

headers: object

[name: string]: unknown

400: object

Bad request

optional content?: undefined

headers: object

[name: string]: unknown

401: object

Unauthorized

optional content?: undefined

headers: object

[name: string]: unknown

403: object

Forbidden

optional content?: undefined

headers: object

[name: string]: unknown

optional put?: undefined

optional trace?: undefined


/v1/budgets/{id}: object

Defined in: src/budgets/types.gen.ts:67

optional delete?: undefined

get: object

Get Spend Limit

Retrieves a Spend Limit by ID

parameters: object

optional cookie?: undefined

optional header?: undefined

path: object

id: string

optional query?: undefined

optional requestBody?: undefined

responses: object

200: object

The Spend Limit that was retrieved

content: object

get.responses.200.content.application/json
Section titled “get.responses.200.content.application/json”

application/json: object

get.responses.200.content.application/json.account_id
Section titled “get.responses.200.content.application/json.account_id”

account_id: string

The Brex account this Spend Limit belongs to.

get.responses.200.content.application/json.budget_id
Section titled “get.responses.200.content.application/json.budget_id”

budget_id: string

Unique ID for the Spend Limit.

get.responses.200.content.application/json.budget_status
Section titled “get.responses.200.content.application/json.budget_status”

budget_status: "DELETED" | "APPROVED" | "EXPIRED" | "TERMINATED"

get.responses.200.content.application/json.budget_type
Section titled “get.responses.200.content.application/json.budget_type”

budget_type: "BUDGET" | "SPEND_LIMIT"

get.responses.200.content.application/json.creator_user_id?
Section titled “get.responses.200.content.application/json.creator_user_id?”

optional creator_user_id?: string | null

The ID of the user who originally created this Spend Limit.

get.responses.200.content.application/json.current_period_balance?
Section titled “get.responses.200.content.application/json.current_period_balance?”

optional current_period_balance?: { balance?: { amount: number; currency: … | …; } | null; end_date?: string | null; start_date?: string | null; } | null

{ balance?: { amount: number; currency: … | …; } | null; end_date?: string | null; start_date?: string | null; }

optional balance?: { amount: number; currency: … | …; } | null

{ amount: number; currency: … | …; }

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: … | …

The type of currency, in ISO 4217 format.

USD
USD

null

optional end_date?: string | null

Format: date

optional start_date?: string | null

Format: date


null

get.responses.200.content.application/json.description?
Section titled “get.responses.200.content.application/json.description?”

optional description?: string | null

Description of what the Spend Limit is used for.

get.responses.200.content.application/json.end_date?
Section titled “get.responses.200.content.application/json.end_date?”

optional end_date?: string | null

Format: date

The UTC date when the Spend Limit should stop counting.

get.responses.200.content.application/json.limit?
Section titled “get.responses.200.content.application/json.limit?”

optional 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

get.responses.200.content.application/json.limit_type?
Section titled “get.responses.200.content.application/json.limit_type?”

optional limit_type?: "HARD" | "SOFT" | null

get.responses.200.content.application/json.limit_visibility
Section titled “get.responses.200.content.application/json.limit_visibility”

limit_visibility: "PRIVATE" | "SHARED"

get.responses.200.content.application/json.member_user_ids
Section titled “get.responses.200.content.application/json.member_user_ids”

member_user_ids: string[]

User IDs of the members of the Spend Limit.

get.responses.200.content.application/json.name
Section titled “get.responses.200.content.application/json.name”

name: string

Name for the Spend Limit.

get.responses.200.content.application/json.owner_user_ids
Section titled “get.responses.200.content.application/json.owner_user_ids”

owner_user_ids: string[]

User IDs of the owners of the Spend Limit.

get.responses.200.content.application/json.parent_budget_id?
Section titled “get.responses.200.content.application/json.parent_budget_id?”

optional parent_budget_id?: string | null

ID of parent Budget.

get.responses.200.content.application/json.period_type
Section titled “get.responses.200.content.application/json.period_type”

period_type: "WEEKLY" | "MONTHLY" | "QUARTERLY" | "YEARLY" | "ONE_TIME"

get.responses.200.content.application/json.spend_type
Section titled “get.responses.200.content.application/json.spend_type”

spend_type: "BUDGET_PROVISIONED_CARDS_ONLY" | "NON_BUDGET_PROVISIONED_CARDS_ALLOWED"

get.responses.200.content.application/json.start_date?
Section titled “get.responses.200.content.application/json.start_date?”

optional start_date?: string | null

Format: date

The UTC date when the Spend Limit should start counting.

get.responses.200.content.application/json.templateId?
Section titled “get.responses.200.content.application/json.templateId?”

optional templateId?: string | null

headers: object

[name: string]: unknown

400: object

Bad request

optional content?: undefined

headers: object

[name: string]: unknown

401: object

Unauthorized

optional content?: undefined

headers: object

[name: string]: unknown

403: object

Forbidden

optional content?: undefined

headers: object

[name: string]: unknown

404: object

Not Found

optional content?: undefined

headers: object

[name: string]: unknown

optional head?: undefined

optional options?: undefined

parameters: object

optional cookie?: undefined

optional header?: undefined

optional path?: undefined

optional query?: undefined

optional patch?: undefined

optional post?: undefined

put: object

Update Spend Limit

Updates a Spend Limit

parameters: object

optional cookie?: undefined

header: object

Idempotency-Key: string

path: object

id: string

optional query?: undefined

requestBody: object

content: object

application/json: object

put.requestBody.content.application/json.description?
Section titled “put.requestBody.content.application/json.description?”

optional description?: string | null

Description of what the Spend Limit is used for.

put.requestBody.content.application/json.end_date?
Section titled “put.requestBody.content.application/json.end_date?”

optional end_date?: string | null

Format: date

The UTC date when the Spend Limit should stop counting.

put.requestBody.content.application/json.limit?
Section titled “put.requestBody.content.application/json.limit?”

optional 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

put.requestBody.content.application/json.limit_type?
Section titled “put.requestBody.content.application/json.limit_type?”

optional limit_type?: "HARD" | "SOFT" | null

put.requestBody.content.application/json.limit_visibility?
Section titled “put.requestBody.content.application/json.limit_visibility?”

optional limit_visibility?: "PRIVATE" | "SHARED" | null

put.requestBody.content.application/json.member_user_ids?
Section titled “put.requestBody.content.application/json.member_user_ids?”

optional member_user_ids?: string[] | null

User IDs of the members of the Spend Limit.

put.requestBody.content.application/json.name?
Section titled “put.requestBody.content.application/json.name?”

optional name?: string | null

Name for the Spend Limit.

put.requestBody.content.application/json.owner_user_ids?
Section titled “put.requestBody.content.application/json.owner_user_ids?”

optional owner_user_ids?: string[] | null

User IDs of the owners of the Spend Limit.

put.requestBody.content.application/json.period_type?
Section titled “put.requestBody.content.application/json.period_type?”

optional period_type?: "WEEKLY" | "MONTHLY" | "QUARTERLY" | "YEARLY" | "ONE_TIME" | null

put.requestBody.content.application/json.spend_type?
Section titled “put.requestBody.content.application/json.spend_type?”

optional spend_type?: "BUDGET_PROVISIONED_CARDS_ONLY" | "NON_BUDGET_PROVISIONED_CARDS_ALLOWED" | null

put.requestBody.content.application/json.start_date?
Section titled “put.requestBody.content.application/json.start_date?”

optional start_date?: string | null

Format: date

The UTC date when the Spend Limit should start counting.

responses: object

200: object

The Spend Limit that was updated

content: object

put.responses.200.content.application/json
Section titled “put.responses.200.content.application/json”

application/json: object

put.responses.200.content.application/json.account_id
Section titled “put.responses.200.content.application/json.account_id”

account_id: string

The Brex account this Spend Limit belongs to.

put.responses.200.content.application/json.budget_id
Section titled “put.responses.200.content.application/json.budget_id”

budget_id: string

Unique ID for the Spend Limit.

put.responses.200.content.application/json.budget_status
Section titled “put.responses.200.content.application/json.budget_status”

budget_status: "DELETED" | "APPROVED" | "EXPIRED" | "TERMINATED"

put.responses.200.content.application/json.budget_type
Section titled “put.responses.200.content.application/json.budget_type”

budget_type: "BUDGET" | "SPEND_LIMIT"

put.responses.200.content.application/json.creator_user_id?
Section titled “put.responses.200.content.application/json.creator_user_id?”

optional creator_user_id?: string | null

The ID of the user who originally created this Spend Limit.

put.responses.200.content.application/json.current_period_balance?
Section titled “put.responses.200.content.application/json.current_period_balance?”

optional current_period_balance?: { balance?: { amount: number; currency: … | …; } | null; end_date?: string | null; start_date?: string | null; } | null

{ balance?: { amount: number; currency: … | …; } | null; end_date?: string | null; start_date?: string | null; }

optional balance?: { amount: number; currency: … | …; } | null

{ amount: number; currency: … | …; }

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: … | …

The type of currency, in ISO 4217 format.

USD
USD

null

optional end_date?: string | null

Format: date

optional start_date?: string | null

Format: date


null

put.responses.200.content.application/json.description?
Section titled “put.responses.200.content.application/json.description?”

optional description?: string | null

Description of what the Spend Limit is used for.

put.responses.200.content.application/json.end_date?
Section titled “put.responses.200.content.application/json.end_date?”

optional end_date?: string | null

Format: date

The UTC date when the Spend Limit should stop counting.

put.responses.200.content.application/json.limit?
Section titled “put.responses.200.content.application/json.limit?”

optional 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

put.responses.200.content.application/json.limit_type?
Section titled “put.responses.200.content.application/json.limit_type?”

optional limit_type?: "HARD" | "SOFT" | null

put.responses.200.content.application/json.limit_visibility
Section titled “put.responses.200.content.application/json.limit_visibility”

limit_visibility: "PRIVATE" | "SHARED"

put.responses.200.content.application/json.member_user_ids
Section titled “put.responses.200.content.application/json.member_user_ids”

member_user_ids: string[]

User IDs of the members of the Spend Limit.

put.responses.200.content.application/json.name
Section titled “put.responses.200.content.application/json.name”

name: string

Name for the Spend Limit.

put.responses.200.content.application/json.owner_user_ids
Section titled “put.responses.200.content.application/json.owner_user_ids”

owner_user_ids: string[]

User IDs of the owners of the Spend Limit.

put.responses.200.content.application/json.parent_budget_id?
Section titled “put.responses.200.content.application/json.parent_budget_id?”

optional parent_budget_id?: string | null

ID of parent Budget.

put.responses.200.content.application/json.period_type
Section titled “put.responses.200.content.application/json.period_type”

period_type: "WEEKLY" | "MONTHLY" | "QUARTERLY" | "YEARLY" | "ONE_TIME"

put.responses.200.content.application/json.spend_type
Section titled “put.responses.200.content.application/json.spend_type”

spend_type: "BUDGET_PROVISIONED_CARDS_ONLY" | "NON_BUDGET_PROVISIONED_CARDS_ALLOWED"

put.responses.200.content.application/json.start_date?
Section titled “put.responses.200.content.application/json.start_date?”

optional start_date?: string | null

Format: date

The UTC date when the Spend Limit should start counting.

put.responses.200.content.application/json.templateId?
Section titled “put.responses.200.content.application/json.templateId?”

optional templateId?: string | null

headers: object

[name: string]: unknown

400: object

Bad request

optional content?: undefined

headers: object

[name: string]: unknown

401: object

Unauthorized

optional content?: undefined

headers: object

[name: string]: unknown

403: object

Forbidden

optional content?: undefined

headers: object

[name: string]: unknown

404: object

Not Found

optional content?: undefined

headers: object

[name: string]: unknown

optional trace?: undefined


/v1/budgets/{id}/archive: object

Defined in: src/budgets/types.gen.ts:91

optional delete?: undefined

optional get?: undefined

optional head?: undefined

optional options?: undefined

parameters: object

optional cookie?: undefined

optional header?: undefined

optional path?: undefined

optional query?: undefined

optional patch?: undefined

post: object

Archive a Spend Limit

Archives a Spend Limit, making it unusable for future expenses and removing it from the UI

parameters: object

optional cookie?: undefined

optional header?: undefined

path: object

id: string

optional query?: undefined

optional requestBody?: undefined

responses: object

200: object

The Spend Limit that was archived

optional content?: undefined

headers: object

[name: string]: unknown

400: object

Bad request

optional content?: undefined

headers: object

[name: string]: unknown

401: object

Unauthorized

optional content?: undefined

headers: object

[name: string]: unknown

403: object

Forbidden

optional content?: undefined

headers: object

[name: string]: unknown

404: object

Not Found

optional content?: undefined

headers: object

[name: string]: unknown

optional put?: undefined

optional trace?: undefined


/v2/budgets: object

Defined in: src/budgets/types.gen.ts:111

optional delete?: undefined

get: object

List Budgets

Retrieves a list of Budgets

parameters: object

optional cookie?: undefined

optional header?: undefined

optional path?: undefined

optional query?: object

optional cursor?: string | null

optional limit?: number | null

optional requestBody?: undefined

responses: object

200: object

A page with a list of Budgets

content: object

get.responses.200.content.application/json
Section titled “get.responses.200.content.application/json”

application/json: object

get.responses.200.content.application/json.items
Section titled “get.responses.200.content.application/json.items”

items: object[]

get.responses.200.content.application/json.next_cursor?
Section titled “get.responses.200.content.application/json.next_cursor?”

optional next_cursor?: string | null

headers: object

[name: string]: unknown

400: object

Bad request

optional content?: undefined

headers: object

[name: string]: unknown

401: object

Unauthorized

optional content?: undefined

headers: object

[name: string]: unknown

403: object

Forbidden

optional content?: undefined

headers: object

[name: string]: unknown

404: object

Not Found

optional content?: undefined

headers: object

[name: string]: unknown

optional head?: undefined

optional options?: undefined

parameters: object

optional cookie?: undefined

optional header?: undefined

optional path?: undefined

optional query?: undefined

optional patch?: undefined

post: object

Create Budget

Creates a Budget

parameters: object

optional cookie?: undefined

header: object

Idempotency-Key: string

optional path?: undefined

optional query?: undefined

requestBody: object

content: object

application/json: object

post.requestBody.content.application/json.amount
Section titled “post.requestBody.content.application/json.amount”

amount: object

post.requestBody.content.application/json.amount.amount
Section titled “post.requestBody.content.application/json.amount.amount”

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
post.requestBody.content.application/json.amount.currency
Section titled “post.requestBody.content.application/json.amount.currency”

currency: string | null

The type of currency, in ISO 4217 format.

USD
USD
post.requestBody.content.application/json.description
Section titled “post.requestBody.content.application/json.description”

description: string

Description of what the Budget is used for.

post.requestBody.content.application/json.end_date?
Section titled “post.requestBody.content.application/json.end_date?”

optional end_date?: string | null

Format: date

The date when the Budget should stop counting.

post.requestBody.content.application/json.limit_type?
Section titled “post.requestBody.content.application/json.limit_type?”

optional limit_type?: "HARD" | "SOFT" | null

post.requestBody.content.application/json.name
Section titled “post.requestBody.content.application/json.name”

name: string

Name for the Budget.

post.requestBody.content.application/json.owner_user_ids?
Section titled “post.requestBody.content.application/json.owner_user_ids?”

optional owner_user_ids?: string[] | null

User IDs of the owners of the Budget.

post.requestBody.content.application/json.parent_budget_id
Section titled “post.requestBody.content.application/json.parent_budget_id”

parent_budget_id: string

ID of parent Budget.

post.requestBody.content.application/json.period_recurrence_type
Section titled “post.requestBody.content.application/json.period_recurrence_type”

period_recurrence_type: "WEEKLY" | "MONTHLY" | "QUARTERLY" | "YEARLY" | "ONE_TIME"

post.requestBody.content.application/json.start_date?
Section titled “post.requestBody.content.application/json.start_date?”

optional start_date?: string | null

Format: date

The date when the Budget should start counting.

responses: object

200: object

The Budget that was created

content: object

post.responses.200.content.application/json
Section titled “post.responses.200.content.application/json”

application/json: object

post.responses.200.content.application/json.account_id
Section titled “post.responses.200.content.application/json.account_id”

account_id: string

The Brex account this Budget belongs to.

post.responses.200.content.application/json.amount?
Section titled “post.responses.200.content.application/json.amount?”

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

post.responses.200.content.application/json.budget_id
Section titled “post.responses.200.content.application/json.budget_id”

budget_id: string

Unique ID for the Budget.

post.responses.200.content.application/json.description?
Section titled “post.responses.200.content.application/json.description?”

optional description?: string | null

Description of what the Budget is used for.

post.responses.200.content.application/json.end_date?
Section titled “post.responses.200.content.application/json.end_date?”

optional end_date?: string | null

Format: date

The date when the Budget should stop counting.

post.responses.200.content.application/json.limit_type?
Section titled “post.responses.200.content.application/json.limit_type?”

optional limit_type?: "HARD" | "SOFT" | null

post.responses.200.content.application/json.name
Section titled “post.responses.200.content.application/json.name”

name: string

Name for the Budget.

post.responses.200.content.application/json.owner_user_ids
Section titled “post.responses.200.content.application/json.owner_user_ids”

owner_user_ids: string[]

User IDs of the owners of the Budget.

post.responses.200.content.application/json.parent_budget_id?
Section titled “post.responses.200.content.application/json.parent_budget_id?”

optional parent_budget_id?: string | null

ID of parent Budget.

post.responses.200.content.application/json.period_recurrence_type
Section titled “post.responses.200.content.application/json.period_recurrence_type”

period_recurrence_type: "WEEKLY" | "MONTHLY" | "QUARTERLY" | "YEARLY" | "ONE_TIME"

post.responses.200.content.application/json.spend_budget_status
Section titled “post.responses.200.content.application/json.spend_budget_status”

spend_budget_status: "ACTIVE" | "ARCHIVED" | "DELETED" | "EXPIRED"

post.responses.200.content.application/json.start_date?
Section titled “post.responses.200.content.application/json.start_date?”

optional start_date?: string | null

Format: date

The date when the Budget should start counting.

headers: object

[name: string]: unknown

400: object

Bad request

optional content?: undefined

headers: object

[name: string]: unknown

401: object

Unauthorized

optional content?: undefined

headers: object

[name: string]: unknown

403: object

Forbidden

optional content?: undefined

headers: object

[name: string]: unknown

optional put?: undefined

optional trace?: undefined


/v2/budgets/{id}: object

Defined in: src/budgets/types.gen.ts:135

optional delete?: undefined

get: object

Get Budget

Retrieves a Budget by ID

parameters: object

optional cookie?: undefined

optional header?: undefined

path: object

id: string

optional query?: undefined

optional requestBody?: undefined

responses: object

200: object

The Budget that was retrieved

content: object

get.responses.200.content.application/json
Section titled “get.responses.200.content.application/json”

application/json: object

get.responses.200.content.application/json.account_id
Section titled “get.responses.200.content.application/json.account_id”

account_id: string

The Brex account this Budget belongs to.

get.responses.200.content.application/json.amount?
Section titled “get.responses.200.content.application/json.amount?”

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

get.responses.200.content.application/json.budget_id
Section titled “get.responses.200.content.application/json.budget_id”

budget_id: string

Unique ID for the Budget.

get.responses.200.content.application/json.description?
Section titled “get.responses.200.content.application/json.description?”

optional description?: string | null

Description of what the Budget is used for.

get.responses.200.content.application/json.end_date?
Section titled “get.responses.200.content.application/json.end_date?”

optional end_date?: string | null

Format: date

The date when the Budget should stop counting.

get.responses.200.content.application/json.limit_type?
Section titled “get.responses.200.content.application/json.limit_type?”

optional limit_type?: "HARD" | "SOFT" | null

get.responses.200.content.application/json.name
Section titled “get.responses.200.content.application/json.name”

name: string

Name for the Budget.

get.responses.200.content.application/json.owner_user_ids
Section titled “get.responses.200.content.application/json.owner_user_ids”

owner_user_ids: string[]

User IDs of the owners of the Budget.

get.responses.200.content.application/json.parent_budget_id?
Section titled “get.responses.200.content.application/json.parent_budget_id?”

optional parent_budget_id?: string | null

ID of parent Budget.

get.responses.200.content.application/json.period_recurrence_type
Section titled “get.responses.200.content.application/json.period_recurrence_type”

period_recurrence_type: "WEEKLY" | "MONTHLY" | "QUARTERLY" | "YEARLY" | "ONE_TIME"

get.responses.200.content.application/json.spend_budget_status
Section titled “get.responses.200.content.application/json.spend_budget_status”

spend_budget_status: "ACTIVE" | "ARCHIVED" | "DELETED" | "EXPIRED"

get.responses.200.content.application/json.start_date?
Section titled “get.responses.200.content.application/json.start_date?”

optional start_date?: string | null

Format: date

The date when the Budget should start counting.

headers: object

[name: string]: unknown

400: object

Bad request

optional content?: undefined

headers: object

[name: string]: unknown

401: object

Unauthorized

optional content?: undefined

headers: object

[name: string]: unknown

403: object

Forbidden

optional content?: undefined

headers: object

[name: string]: unknown

404: object

Not Found

optional content?: undefined

headers: object

[name: string]: unknown

optional head?: undefined

optional options?: undefined

parameters: object

optional cookie?: undefined

optional header?: undefined

optional path?: undefined

optional query?: undefined

optional patch?: undefined

optional post?: undefined

put: object

Update Budget

Updates a Budget

parameters: object

optional cookie?: undefined

header: object

Idempotency-Key: string

path: object

id: string

optional query?: undefined

requestBody: object

content: object

application/json: object

put.requestBody.content.application/json.amount?
Section titled “put.requestBody.content.application/json.amount?”

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

put.requestBody.content.application/json.description?
Section titled “put.requestBody.content.application/json.description?”

optional description?: string | null

Description of what the Budget is used for.

put.requestBody.content.application/json.end_date?
Section titled “put.requestBody.content.application/json.end_date?”

optional end_date?: string | null

Format: date

The date when the Budget should stop counting.

put.requestBody.content.application/json.limit_type?
Section titled “put.requestBody.content.application/json.limit_type?”

optional limit_type?: "HARD" | "SOFT" | null

put.requestBody.content.application/json.name?
Section titled “put.requestBody.content.application/json.name?”

optional name?: string | null

Name for the Budget.

put.requestBody.content.application/json.owner_user_ids?
Section titled “put.requestBody.content.application/json.owner_user_ids?”

optional owner_user_ids?: string[] | null

User IDs of the owners of the Budget.

put.requestBody.content.application/json.parent_budget_id?
Section titled “put.requestBody.content.application/json.parent_budget_id?”

optional parent_budget_id?: string | null

ID of parent Budget.

put.requestBody.content.application/json.period_recurrence_type?
Section titled “put.requestBody.content.application/json.period_recurrence_type?”

optional period_recurrence_type?: "WEEKLY" | "MONTHLY" | "QUARTERLY" | "YEARLY" | "ONE_TIME" | null

put.requestBody.content.application/json.start_date?
Section titled “put.requestBody.content.application/json.start_date?”

optional start_date?: string | null

Format: date

The date when the Budget should start counting.

responses: object

200: object

The Budget that was updated

content: object

put.responses.200.content.application/json
Section titled “put.responses.200.content.application/json”

application/json: object

put.responses.200.content.application/json.account_id
Section titled “put.responses.200.content.application/json.account_id”

account_id: string

The Brex account this Budget belongs to.

put.responses.200.content.application/json.amount?
Section titled “put.responses.200.content.application/json.amount?”

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

put.responses.200.content.application/json.budget_id
Section titled “put.responses.200.content.application/json.budget_id”

budget_id: string

Unique ID for the Budget.

put.responses.200.content.application/json.description?
Section titled “put.responses.200.content.application/json.description?”

optional description?: string | null

Description of what the Budget is used for.

put.responses.200.content.application/json.end_date?
Section titled “put.responses.200.content.application/json.end_date?”

optional end_date?: string | null

Format: date

The date when the Budget should stop counting.

put.responses.200.content.application/json.limit_type?
Section titled “put.responses.200.content.application/json.limit_type?”

optional limit_type?: "HARD" | "SOFT" | null

put.responses.200.content.application/json.name
Section titled “put.responses.200.content.application/json.name”

name: string

Name for the Budget.

put.responses.200.content.application/json.owner_user_ids
Section titled “put.responses.200.content.application/json.owner_user_ids”

owner_user_ids: string[]

User IDs of the owners of the Budget.

put.responses.200.content.application/json.parent_budget_id?
Section titled “put.responses.200.content.application/json.parent_budget_id?”

optional parent_budget_id?: string | null

ID of parent Budget.

put.responses.200.content.application/json.period_recurrence_type
Section titled “put.responses.200.content.application/json.period_recurrence_type”

period_recurrence_type: "WEEKLY" | "MONTHLY" | "QUARTERLY" | "YEARLY" | "ONE_TIME"

put.responses.200.content.application/json.spend_budget_status
Section titled “put.responses.200.content.application/json.spend_budget_status”

spend_budget_status: "ACTIVE" | "ARCHIVED" | "DELETED" | "EXPIRED"

put.responses.200.content.application/json.start_date?
Section titled “put.responses.200.content.application/json.start_date?”

optional start_date?: string | null

Format: date

The date when the Budget should start counting.

headers: object

[name: string]: unknown

400: object

Bad request

optional content?: undefined

headers: object

[name: string]: unknown

401: object

Unauthorized

optional content?: undefined

headers: object

[name: string]: unknown

403: object

Forbidden

optional content?: undefined

headers: object

[name: string]: unknown

404: object

Not Found

optional content?: undefined

headers: object

[name: string]: unknown

optional trace?: undefined


/v2/budgets/{id}/archive: object

Defined in: src/budgets/types.gen.ts:159

optional delete?: undefined

optional get?: undefined

optional head?: undefined

optional options?: undefined

parameters: object

optional cookie?: undefined

optional header?: undefined

optional path?: undefined

optional query?: undefined

optional patch?: undefined

post: object

Archive a Budget

Archives a Budget, making any Spend Limits beneath it unusable for future expenses and removing it from the UI

parameters: object

optional cookie?: undefined

optional header?: undefined

path: object

id: string

optional query?: undefined

optional requestBody?: undefined

responses: object

200: object

The Budget that was archived

optional content?: undefined

headers: object

[name: string]: unknown

400: object

Bad request

optional content?: undefined

headers: object

[name: string]: unknown

401: object

Unauthorized

optional content?: undefined

headers: object

[name: string]: unknown

403: object

Forbidden

optional content?: undefined

headers: object

[name: string]: unknown

404: object

Not Found

optional content?: undefined

headers: object

[name: string]: unknown

optional put?: undefined

optional trace?: undefined


/v2/spend_limits: object

Defined in: src/budgets/types.gen.ts:179

optional delete?: undefined

get: object

List Spend Limits

Retrieves a list of Spend Limits

parameters: object

optional cookie?: undefined

optional header?: undefined

optional path?: undefined

optional query?: object

optional cursor?: string | null

optional limit?: number | null

optional member_user_id[]?: string[] | null

optional requestBody?: undefined

responses: object

200: object

A page with a list of Spend Limits

content: object

get.responses.200.content.application/json
Section titled “get.responses.200.content.application/json”

application/json: object

get.responses.200.content.application/json.items
Section titled “get.responses.200.content.application/json.items”

items: object[]

get.responses.200.content.application/json.next_cursor?
Section titled “get.responses.200.content.application/json.next_cursor?”

optional next_cursor?: string | null

headers: object

[name: string]: unknown

400: object

Bad request

optional content?: undefined

headers: object

[name: string]: unknown

401: object

Unauthorized

optional content?: undefined

headers: object

[name: string]: unknown

403: object

Forbidden

optional content?: undefined

headers: object

[name: string]: unknown

404: object

Not Found

optional content?: undefined

headers: object

[name: string]: unknown

optional head?: undefined

optional options?: undefined

parameters: object

optional cookie?: undefined

optional header?: undefined

optional path?: undefined

optional query?: undefined

optional patch?: undefined

post: object

Create Spend Limit

Creates a Spend Limit

parameters: object

optional cookie?: undefined

header: object

Idempotency-Key: string

optional path?: undefined

optional query?: undefined

requestBody: object

content: object

application/json: object

post.requestBody.content.application/json.authorization_settings
Section titled “post.requestBody.content.application/json.authorization_settings”

authorization_settings: object

post.requestBody.content.application/json.authorization_settings.authorization_type
Section titled “post.requestBody.content.application/json.authorization_settings.authorization_type”

authorization_type: "HARD" | "SOFT"

post.requestBody.content.application/json.authorization_settings.base_limit
Section titled “post.requestBody.content.application/json.authorization_settings.base_limit”

base_limit: object

post.requestBody.content.application/json.authorization_settings.base_limit.amount
Section titled “post.requestBody.content.application/json.authorization_settings.base_limit.amount”

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
post.requestBody.content.application/json.authorization_settings.base_limit.currency
Section titled “post.requestBody.content.application/json.authorization_settings.base_limit.currency”

currency: string | null

The type of currency, in ISO 4217 format.

USD
USD
post.requestBody.content.application/json.authorization_settings.limit_buffer_percentage?
Section titled “post.requestBody.content.application/json.authorization_settings.limit_buffer_percentage?”

optional limit_buffer_percentage?: number | null

Format: int32

The percentage of flexible buffer on the limit as a 0-100 integer.

post.requestBody.content.application/json.authorization_settings.rollover_refresh_rate
Section titled “post.requestBody.content.application/json.authorization_settings.rollover_refresh_rate”

rollover_refresh_rate: "OFF" | "NEVER" | "PER_MONTH" | "PER_QUARTER" | "PER_YEAR"

post.requestBody.content.application/json.authorization_visibility
Section titled “post.requestBody.content.application/json.authorization_visibility”

authorization_visibility: "PUBLIC" | "PRIVATE"

post.requestBody.content.application/json.auto_create_limit_cards_setting
Section titled “post.requestBody.content.application/json.auto_create_limit_cards_setting”

auto_create_limit_cards_setting: "DISABLED" | "ALL_MEMBERS"

post.requestBody.content.application/json.auto_transfer_cards_setting
Section titled “post.requestBody.content.application/json.auto_transfer_cards_setting”

auto_transfer_cards_setting: "DISABLED" | "ENABLED"

post.requestBody.content.application/json.department_id?
Section titled “post.requestBody.content.application/json.department_id?”

optional department_id?: string | null

The department ID to which Spend Limit expenses will be attributed.

post.requestBody.content.application/json.description?
Section titled “post.requestBody.content.application/json.description?”

optional description?: string | null

Description of what the Spend Limit is used for.

post.requestBody.content.application/json.end_date?
Section titled “post.requestBody.content.application/json.end_date?”

optional end_date?: string | null

Format: date

The date when the Spend Limit should expire.

post.requestBody.content.application/json.expense_policy_id
Section titled “post.requestBody.content.application/json.expense_policy_id”

expense_policy_id: string

The ID of the expense policy corresponding to this Spend Limit.

post.requestBody.content.application/json.expense_visibility
Section titled “post.requestBody.content.application/json.expense_visibility”

expense_visibility: "PRIVATE" | "SHARED"

post.requestBody.content.application/json.legal_entity_id?
Section titled “post.requestBody.content.application/json.legal_entity_id?”

optional legal_entity_id?: string | null

The legal entity ID to which Spend Limit expenses will be attributed. If not set, expenses will be attributed to the spending user’s entity.

post.requestBody.content.application/json.limit_approval_policy_id?
Section titled “post.requestBody.content.application/json.limit_approval_policy_id?”

optional limit_approval_policy_id?: string | null

The ID of the policy for limit increase approval requests. Meant to replace limit_increase_request_policy_id.

post.requestBody.content.application/json.limit_increase_request_policy_id?
Section titled “post.requestBody.content.application/json.limit_increase_request_policy_id?”

optional limit_increase_request_policy_id?: string | null

The ID of the policy for limit increase requests for this Spend Limit.

post.requestBody.content.application/json.limit_increase_setting
Section titled “post.requestBody.content.application/json.limit_increase_setting”

limit_increase_setting: "DISABLED" | "ENABLED"

post.requestBody.content.application/json.member_user_ids?
Section titled “post.requestBody.content.application/json.member_user_ids?”

optional member_user_ids?: string[] | null

User IDs of the members of the Spend Limit.

post.requestBody.content.application/json.name
Section titled “post.requestBody.content.application/json.name”

name: string

Name for the Spend Limit.

post.requestBody.content.application/json.owner_user_ids?
Section titled “post.requestBody.content.application/json.owner_user_ids?”

optional owner_user_ids?: string[] | null

User IDs of the owners of the Spend Limit.

post.requestBody.content.application/json.parent_budget_id?
Section titled “post.requestBody.content.application/json.parent_budget_id?”

optional parent_budget_id?: string | null

ID of parent Budget.

post.requestBody.content.application/json.period_recurrence_type
Section titled “post.requestBody.content.application/json.period_recurrence_type”

period_recurrence_type: "PER_MONTH" | "PER_QUARTER" | "PER_YEAR" | "ONE_TIME" | "PER_WEEK"

post.requestBody.content.application/json.spend_type
Section titled “post.requestBody.content.application/json.spend_type”

spend_type: "BUDGET_PROVISIONED_CARDS_ONLY" | "NON_BUDGET_PROVISIONED_CARDS_ALLOWED"

post.requestBody.content.application/json.start_date?
Section titled “post.requestBody.content.application/json.start_date?”

optional start_date?: string | null

Format: date

The date when the Spend Limit should start counting.

post.requestBody.content.application/json.transaction_limit?
Section titled “post.requestBody.content.application/json.transaction_limit?”

optional transaction_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

responses: object

200: object

The Spend Limit that was created

content: object

post.responses.200.content.application/json
Section titled “post.responses.200.content.application/json”

application/json: object

post.responses.200.content.application/json.account_id
Section titled “post.responses.200.content.application/json.account_id”

account_id: string

The Brex account this Spend Limit belongs to.

post.responses.200.content.application/json.authorization_settings?
Section titled “post.responses.200.content.application/json.authorization_settings?”

optional authorization_settings?: { authorization_type: "HARD" | "SOFT"; base_limit: { amount: number; currency: string | null; }; limit_buffer_percentage?: number | null; limit_with_increases: { amount: number; currency: string | null; }; rollover_refresh_rate: "OFF" | "NEVER" | "PER_MONTH" | "PER_QUARTER" | "PER_YEAR"; } | null

{ authorization_type: "HARD" | "SOFT"; base_limit: { amount: number; currency: string | null; }; limit_buffer_percentage?: number | null; limit_with_increases: { amount: number; currency: string | null; }; rollover_refresh_rate: "OFF" | "NEVER" | "PER_MONTH" | "PER_QUARTER" | "PER_YEAR"; }

authorization_type: "HARD" | "SOFT"

base_limit: 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 limit_buffer_percentage?: number | null

Format: int32

The percentage of flexible buffer on the limit as a 0-100 integer.

limit_with_increases: 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

rollover_refresh_rate: "OFF" | "NEVER" | "PER_MONTH" | "PER_QUARTER" | "PER_YEAR"


null

post.responses.200.content.application/json.authorization_visibility
Section titled “post.responses.200.content.application/json.authorization_visibility”

authorization_visibility: "PUBLIC" | "PRIVATE"

post.responses.200.content.application/json.auto_create_limit_cards_setting
Section titled “post.responses.200.content.application/json.auto_create_limit_cards_setting”

auto_create_limit_cards_setting: "DISABLED" | "ALL_MEMBERS"

post.responses.200.content.application/json.auto_transfer_cards_setting
Section titled “post.responses.200.content.application/json.auto_transfer_cards_setting”

auto_transfer_cards_setting: "DISABLED" | "ENABLED"

post.responses.200.content.application/json.current_period_balance?
Section titled “post.responses.200.content.application/json.current_period_balance?”

optional current_period_balance?: { amount_spent?: { amount: number; currency: … | …; } | null; end_date?: string | null; end_time?: string | null; rollover_amount?: { amount: number; currency: … | …; } | null; start_date?: string | null; start_time?: string | null; } | null

{ amount_spent?: { amount: number; currency: … | …; } | null; end_date?: string | null; end_time?: string | null; rollover_amount?: { amount: number; currency: … | …; } | null; start_date?: string | null; start_time?: string | null; }

optional amount_spent?: { amount: number; currency: … | …; } | null

{ amount: number; currency: … | …; }

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: … | …

The type of currency, in ISO 4217 format.

USD
USD

null

optional end_date?: string | null

Format: date

optional end_time?: string | null

Format: date-time

optional rollover_amount?: { amount: number; currency: … | …; } | null

{ amount: number; currency: … | …; }

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: … | …

The type of currency, in ISO 4217 format.

USD
USD

null

optional start_date?: string | null

Format: date

optional start_time?: string | null

Format: date-time


null

post.responses.200.content.application/json.department_id?
Section titled “post.responses.200.content.application/json.department_id?”

optional department_id?: string | null

The department ID to which Spend Limit expenses will be attributed.

post.responses.200.content.application/json.description?
Section titled “post.responses.200.content.application/json.description?”

optional description?: string | null

Description of what the Spend Limit is used for.

post.responses.200.content.application/json.end_date?
Section titled “post.responses.200.content.application/json.end_date?”

optional end_date?: string | null

Format: date

The date when the Spend Limit should expire.

post.responses.200.content.application/json.end_time_utc?
Section titled “post.responses.200.content.application/json.end_time_utc?”

optional end_time_utc?: string | null

Format: date-time

The UTC time when the Spend Limit should expire.

post.responses.200.content.application/json.expense_policy_id
Section titled “post.responses.200.content.application/json.expense_policy_id”

expense_policy_id: string

The ID of the expense policy corresponding to this Spend Limit.

post.responses.200.content.application/json.expense_visibility
Section titled “post.responses.200.content.application/json.expense_visibility”

expense_visibility: "PRIVATE" | "SHARED"

post.responses.200.content.application/json.id
Section titled “post.responses.200.content.application/json.id”

id: string

Unique ID for the Spend Limit.

post.responses.200.content.application/json.legal_entity_id?
Section titled “post.responses.200.content.application/json.legal_entity_id?”

optional legal_entity_id?: string | null

The legal entity ID to which Spend Limit expenses will be attributed. If not set, expenses will be attributed to the spending user’s entity.

post.responses.200.content.application/json.limit_approval_policy_id?
Section titled “post.responses.200.content.application/json.limit_approval_policy_id?”

optional limit_approval_policy_id?: string | null

The ID of the policy for limit increase approval requests. Meant to replace limit_increase_request_policy_id.

post.responses.200.content.application/json.limit_increase_request_policy_id?
Section titled “post.responses.200.content.application/json.limit_increase_request_policy_id?”

optional limit_increase_request_policy_id?: string | null

The ID of the policy for limit increase requests for this Spend Limit.

post.responses.200.content.application/json.limit_increase_setting
Section titled “post.responses.200.content.application/json.limit_increase_setting”

limit_increase_setting: "DISABLED" | "ENABLED"

post.responses.200.content.application/json.member_user_ids
Section titled “post.responses.200.content.application/json.member_user_ids”

member_user_ids: string[]

User IDs of the members of the Spend Limit.

post.responses.200.content.application/json.merchant_category_controls?
Section titled “post.responses.200.content.application/json.merchant_category_controls?”

optional merchant_category_controls?: { allowed_merchant_categories?: (… | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | …)[] | null; blocked_merchant_categories?: (… | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | …)[] | null; } | null

post.responses.200.content.application/json.name
Section titled “post.responses.200.content.application/json.name”

name: string

Name for the Spend Limit.

post.responses.200.content.application/json.owner_user_ids
Section titled “post.responses.200.content.application/json.owner_user_ids”

owner_user_ids: string[]

User IDs of the owners of the Spend Limit.

post.responses.200.content.application/json.parent_budget_id?
Section titled “post.responses.200.content.application/json.parent_budget_id?”

optional parent_budget_id?: string | null

ID of parent Budget.

post.responses.200.content.application/json.period_recurrence_type
Section titled “post.responses.200.content.application/json.period_recurrence_type”

period_recurrence_type: "PER_MONTH" | "PER_QUARTER" | "PER_YEAR" | "ONE_TIME" | "PER_WEEK"

post.responses.200.content.application/json.spend_type
Section titled “post.responses.200.content.application/json.spend_type”

spend_type: "BUDGET_PROVISIONED_CARDS_ONLY" | "NON_BUDGET_PROVISIONED_CARDS_ALLOWED"

post.responses.200.content.application/json.start_date?
Section titled “post.responses.200.content.application/json.start_date?”

optional start_date?: string | null

Format: date

The date when the Spend Limit should start counting.

post.responses.200.content.application/json.start_time_utc?
Section titled “post.responses.200.content.application/json.start_time_utc?”

optional start_time_utc?: string | null

Format: date-time

The UTC time when the Spend Limit should start counting.

post.responses.200.content.application/json.status
Section titled “post.responses.200.content.application/json.status”

status: "ACTIVE" | "ARCHIVED" | "DELETED" | "EXPIRED"

post.responses.200.content.application/json.transaction_limit?
Section titled “post.responses.200.content.application/json.transaction_limit?”

optional transaction_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

headers: object

[name: string]: unknown

400: object

Bad request

optional content?: undefined

headers: object

[name: string]: unknown

401: object

Unauthorized

optional content?: undefined

headers: object

[name: string]: unknown

403: object

Forbidden

optional content?: undefined

headers: object

[name: string]: unknown

optional put?: undefined

optional trace?: undefined


/v2/spend_limits/{id}: object

Defined in: src/budgets/types.gen.ts:203

optional delete?: undefined

get: object

Get Spend Limit

Retrieves a Spend Limit by ID

parameters: object

optional cookie?: undefined

optional header?: undefined

path: object

id: string

optional query?: undefined

optional requestBody?: undefined

responses: object

200: object

The Spend Limit that was retrieved

content: object

get.responses.200.content.application/json
Section titled “get.responses.200.content.application/json”

application/json: object

get.responses.200.content.application/json.account_id
Section titled “get.responses.200.content.application/json.account_id”

account_id: string

The Brex account this Spend Limit belongs to.

get.responses.200.content.application/json.authorization_settings?
Section titled “get.responses.200.content.application/json.authorization_settings?”

optional authorization_settings?: { authorization_type: "HARD" | "SOFT"; base_limit: { amount: number; currency: string | null; }; limit_buffer_percentage?: number | null; limit_with_increases: { amount: number; currency: string | null; }; rollover_refresh_rate: "OFF" | "NEVER" | "PER_MONTH" | "PER_QUARTER" | "PER_YEAR"; } | null

{ authorization_type: "HARD" | "SOFT"; base_limit: { amount: number; currency: string | null; }; limit_buffer_percentage?: number | null; limit_with_increases: { amount: number; currency: string | null; }; rollover_refresh_rate: "OFF" | "NEVER" | "PER_MONTH" | "PER_QUARTER" | "PER_YEAR"; }

authorization_type: "HARD" | "SOFT"

base_limit: 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 limit_buffer_percentage?: number | null

Format: int32

The percentage of flexible buffer on the limit as a 0-100 integer.

limit_with_increases: 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

rollover_refresh_rate: "OFF" | "NEVER" | "PER_MONTH" | "PER_QUARTER" | "PER_YEAR"


null

get.responses.200.content.application/json.authorization_visibility
Section titled “get.responses.200.content.application/json.authorization_visibility”

authorization_visibility: "PUBLIC" | "PRIVATE"

get.responses.200.content.application/json.auto_create_limit_cards_setting
Section titled “get.responses.200.content.application/json.auto_create_limit_cards_setting”

auto_create_limit_cards_setting: "DISABLED" | "ALL_MEMBERS"

get.responses.200.content.application/json.auto_transfer_cards_setting
Section titled “get.responses.200.content.application/json.auto_transfer_cards_setting”

auto_transfer_cards_setting: "DISABLED" | "ENABLED"

get.responses.200.content.application/json.current_period_balance?
Section titled “get.responses.200.content.application/json.current_period_balance?”

optional current_period_balance?: { amount_spent?: { amount: number; currency: … | …; } | null; end_date?: string | null; end_time?: string | null; rollover_amount?: { amount: number; currency: … | …; } | null; start_date?: string | null; start_time?: string | null; } | null

{ amount_spent?: { amount: number; currency: … | …; } | null; end_date?: string | null; end_time?: string | null; rollover_amount?: { amount: number; currency: … | …; } | null; start_date?: string | null; start_time?: string | null; }

optional amount_spent?: { amount: number; currency: … | …; } | null

{ amount: number; currency: … | …; }

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: … | …

The type of currency, in ISO 4217 format.

USD
USD

null

optional end_date?: string | null

Format: date

optional end_time?: string | null

Format: date-time

optional rollover_amount?: { amount: number; currency: … | …; } | null

{ amount: number; currency: … | …; }

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: … | …

The type of currency, in ISO 4217 format.

USD
USD

null

optional start_date?: string | null

Format: date

optional start_time?: string | null

Format: date-time


null

get.responses.200.content.application/json.department_id?
Section titled “get.responses.200.content.application/json.department_id?”

optional department_id?: string | null

The department ID to which Spend Limit expenses will be attributed.

get.responses.200.content.application/json.description?
Section titled “get.responses.200.content.application/json.description?”

optional description?: string | null

Description of what the Spend Limit is used for.

get.responses.200.content.application/json.end_date?
Section titled “get.responses.200.content.application/json.end_date?”

optional end_date?: string | null

Format: date

The date when the Spend Limit should expire.

get.responses.200.content.application/json.end_time_utc?
Section titled “get.responses.200.content.application/json.end_time_utc?”

optional end_time_utc?: string | null

Format: date-time

The UTC time when the Spend Limit should expire.

get.responses.200.content.application/json.expense_policy_id
Section titled “get.responses.200.content.application/json.expense_policy_id”

expense_policy_id: string

The ID of the expense policy corresponding to this Spend Limit.

get.responses.200.content.application/json.expense_visibility
Section titled “get.responses.200.content.application/json.expense_visibility”

expense_visibility: "PRIVATE" | "SHARED"

get.responses.200.content.application/json.id
Section titled “get.responses.200.content.application/json.id”

id: string

Unique ID for the Spend Limit.

get.responses.200.content.application/json.legal_entity_id?
Section titled “get.responses.200.content.application/json.legal_entity_id?”

optional legal_entity_id?: string | null

The legal entity ID to which Spend Limit expenses will be attributed. If not set, expenses will be attributed to the spending user’s entity.

get.responses.200.content.application/json.limit_approval_policy_id?
Section titled “get.responses.200.content.application/json.limit_approval_policy_id?”

optional limit_approval_policy_id?: string | null

The ID of the policy for limit increase approval requests. Meant to replace limit_increase_request_policy_id.

get.responses.200.content.application/json.limit_increase_request_policy_id?
Section titled “get.responses.200.content.application/json.limit_increase_request_policy_id?”

optional limit_increase_request_policy_id?: string | null

The ID of the policy for limit increase requests for this Spend Limit.

get.responses.200.content.application/json.limit_increase_setting
Section titled “get.responses.200.content.application/json.limit_increase_setting”

limit_increase_setting: "DISABLED" | "ENABLED"

get.responses.200.content.application/json.member_user_ids
Section titled “get.responses.200.content.application/json.member_user_ids”

member_user_ids: string[]

User IDs of the members of the Spend Limit.

get.responses.200.content.application/json.merchant_category_controls?
Section titled “get.responses.200.content.application/json.merchant_category_controls?”

optional merchant_category_controls?: { allowed_merchant_categories?: (… | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | …)[] | null; blocked_merchant_categories?: (… | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | …)[] | null; } | null

get.responses.200.content.application/json.name
Section titled “get.responses.200.content.application/json.name”

name: string

Name for the Spend Limit.

get.responses.200.content.application/json.owner_user_ids
Section titled “get.responses.200.content.application/json.owner_user_ids”

owner_user_ids: string[]

User IDs of the owners of the Spend Limit.

get.responses.200.content.application/json.parent_budget_id?
Section titled “get.responses.200.content.application/json.parent_budget_id?”

optional parent_budget_id?: string | null

ID of parent Budget.

get.responses.200.content.application/json.period_recurrence_type
Section titled “get.responses.200.content.application/json.period_recurrence_type”

period_recurrence_type: "PER_MONTH" | "PER_QUARTER" | "PER_YEAR" | "ONE_TIME" | "PER_WEEK"

get.responses.200.content.application/json.spend_type
Section titled “get.responses.200.content.application/json.spend_type”

spend_type: "BUDGET_PROVISIONED_CARDS_ONLY" | "NON_BUDGET_PROVISIONED_CARDS_ALLOWED"

get.responses.200.content.application/json.start_date?
Section titled “get.responses.200.content.application/json.start_date?”

optional start_date?: string | null

Format: date

The date when the Spend Limit should start counting.

get.responses.200.content.application/json.start_time_utc?
Section titled “get.responses.200.content.application/json.start_time_utc?”

optional start_time_utc?: string | null

Format: date-time

The UTC time when the Spend Limit should start counting.

get.responses.200.content.application/json.status
Section titled “get.responses.200.content.application/json.status”

status: "ACTIVE" | "ARCHIVED" | "DELETED" | "EXPIRED"

get.responses.200.content.application/json.transaction_limit?
Section titled “get.responses.200.content.application/json.transaction_limit?”

optional transaction_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

headers: object

[name: string]: unknown

400: object

Bad request

optional content?: undefined

headers: object

[name: string]: unknown

401: object

Unauthorized

optional content?: undefined

headers: object

[name: string]: unknown

403: object

Forbidden

optional content?: undefined

headers: object

[name: string]: unknown

404: object

Not Found

optional content?: undefined

headers: object

[name: string]: unknown

optional head?: undefined

optional options?: undefined

parameters: object

optional cookie?: undefined

optional header?: undefined

optional path?: undefined

optional query?: undefined

optional patch?: undefined

optional post?: undefined

put: object

Update Spend Limit

Updates a Spend Limit

parameters: object

optional cookie?: undefined

header: object

Idempotency-Key: string

path: object

id: string

optional query?: undefined

requestBody: object

content: object

application/json: object

put.requestBody.content.application/json.authorization_settings?
Section titled “put.requestBody.content.application/json.authorization_settings?”

optional authorization_settings?: { authorization_type?: "HARD" | "SOFT" | null; base_limit?: { amount: number; currency: string | null; } | null; limit_buffer_percentage?: number | null; rollover_refresh_rate?: "OFF" | "NEVER" | "PER_MONTH" | "PER_QUARTER" | "PER_YEAR" | null; } | null

{ authorization_type?: "HARD" | "SOFT" | null; base_limit?: { amount: number; currency: string | null; } | null; limit_buffer_percentage?: number | null; rollover_refresh_rate?: "OFF" | "NEVER" | "PER_MONTH" | "PER_QUARTER" | "PER_YEAR" | null; }

optional authorization_type?: "HARD" | "SOFT" | null

optional base_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 limit_buffer_percentage?: number | null

Format: int32

The percentage of flexible buffer on the limit as a 0-100 integer.

optional rollover_refresh_rate?: "OFF" | "NEVER" | "PER_MONTH" | "PER_QUARTER" | "PER_YEAR" | null


null

put.requestBody.content.application/json.authorization_visibility?
Section titled “put.requestBody.content.application/json.authorization_visibility?”

optional authorization_visibility?: "PUBLIC" | "PRIVATE" | null

put.requestBody.content.application/json.auto_create_limit_cards_setting?
Section titled “put.requestBody.content.application/json.auto_create_limit_cards_setting?”

optional auto_create_limit_cards_setting?: "DISABLED" | "ALL_MEMBERS" | null

put.requestBody.content.application/json.auto_transfer_cards_setting?
Section titled “put.requestBody.content.application/json.auto_transfer_cards_setting?”

optional auto_transfer_cards_setting?: "DISABLED" | "ENABLED" | null

put.requestBody.content.application/json.department_id?
Section titled “put.requestBody.content.application/json.department_id?”

optional department_id?: string | null

The department ID to which Spend Limit expenses will be attributed.

put.requestBody.content.application/json.description?
Section titled “put.requestBody.content.application/json.description?”

optional description?: string | null

Description of what the Spend Limit is used for.

put.requestBody.content.application/json.end_date?
Section titled “put.requestBody.content.application/json.end_date?”

optional end_date?: string | null

Format: date

The date when the Spend Limit should expire.

put.requestBody.content.application/json.expense_policy_id?
Section titled “put.requestBody.content.application/json.expense_policy_id?”

optional expense_policy_id?: string | null

The ID of the expense policy corresponding to this Spend Limit.

put.requestBody.content.application/json.expense_visibility?
Section titled “put.requestBody.content.application/json.expense_visibility?”

optional expense_visibility?: "PRIVATE" | "SHARED" | null

put.requestBody.content.application/json.legal_entity_id?
Section titled “put.requestBody.content.application/json.legal_entity_id?”

optional legal_entity_id?: string | null

The legal entity ID to which Spend Limit expenses will be attributed. If not set, expenses will be attributed to the spending user’s entity.

put.requestBody.content.application/json.limit_approval_policy_id?
Section titled “put.requestBody.content.application/json.limit_approval_policy_id?”

optional limit_approval_policy_id?: string | null

The ID of the policy for limit increase approval requests. Meant to replace limit_increase_request_policy_id.

put.requestBody.content.application/json.limit_increase_request_policy_id?
Section titled “put.requestBody.content.application/json.limit_increase_request_policy_id?”

optional limit_increase_request_policy_id?: string | null

The ID of the policy for limit increase requests for this Spend Limit.

put.requestBody.content.application/json.limit_increase_setting?
Section titled “put.requestBody.content.application/json.limit_increase_setting?”

optional limit_increase_setting?: "DISABLED" | "ENABLED" | null

put.requestBody.content.application/json.member_user_ids?
Section titled “put.requestBody.content.application/json.member_user_ids?”

optional member_user_ids?: string[] | null

User IDs of the members of the Spend Limit.

put.requestBody.content.application/json.merchant_category_controls?
Section titled “put.requestBody.content.application/json.merchant_category_controls?”

optional merchant_category_controls?: { allowed_merchant_categories?: ("ADVERTISING_MARKETING" | "GROCERY" | "TELEPHONY" | "OFFICE_SUPPLIES" | "PRIVATE_AIR_TRAVEL" | "CLOTHING" | "CAR_RENTAL" | "VEHICLE_EXPENSES" | "RESTAURANTS" | "GAMBLING" | "FLOWERS" | "ELECTRONICS" | "LEGAL_SERVICES" | "UTILITIES" | "FURNITURE" | "BARS_NIGHTLIFE" | "LAUNDRY" | "EVENT_EXPENSES" | "SHIPPING" | "OTHER_TRAVEL_EXPENSES" | "CHARITY" | "SOFTWARE" | "LODGING" | "FACILITIES_EXPENSES" | "SERVERS" | "CONFERENCES" | "FOOD_DELIVERY" | "RENT" | "AIRLINE_EXPENSES" | "OTHER_BUSINESS_EXPENSES" | "BANK_FINANCIAL_FEES" | "BOOKS_NEWSPAPERS" | "CONSULTANT_CONTRACTOR" | "CORPORATE_INSURANCE" | "DIGITAL_GOODS" | "LICENSES_TAXES" | "GAS_FUEL" | "GENERAL_MERCHANDISE" | "MEDICAL" | "MEMBERSHIPS_CLUBS" | "PARKING_EXPENSES" | "POLITICAL_DONATIONS" | "PUBLIC_TRANSPORTATION" | "RECURRING_SOFTWARE_SAAS" | "RIDESHARE_TAXI" | "TOLL_BRIDGE_FEES" | "TRAINING_EDUCATION" | "TRAVEL")[] | null; blocked_merchant_categories?: ("ADVERTISING_MARKETING" | "GROCERY" | "TELEPHONY" | "OFFICE_SUPPLIES" | "PRIVATE_AIR_TRAVEL" | "CLOTHING" | "CAR_RENTAL" | "VEHICLE_EXPENSES" | "RESTAURANTS" | "GAMBLING" | "FLOWERS" | "ELECTRONICS" | "LEGAL_SERVICES" | "UTILITIES" | "FURNITURE" | "BARS_NIGHTLIFE" | "LAUNDRY" | "EVENT_EXPENSES" | "SHIPPING" | "OTHER_TRAVEL_EXPENSES" | "CHARITY" | "SOFTWARE" | "LODGING" | "FACILITIES_EXPENSES" | "SERVERS" | "CONFERENCES" | "FOOD_DELIVERY" | "RENT" | "AIRLINE_EXPENSES" | "OTHER_BUSINESS_EXPENSES" | "BANK_FINANCIAL_FEES" | "BOOKS_NEWSPAPERS" | "CONSULTANT_CONTRACTOR" | "CORPORATE_INSURANCE" | "DIGITAL_GOODS" | "LICENSES_TAXES" | "GAS_FUEL" | "GENERAL_MERCHANDISE" | "MEDICAL" | "MEMBERSHIPS_CLUBS" | "PARKING_EXPENSES" | "POLITICAL_DONATIONS" | "PUBLIC_TRANSPORTATION" | "RECURRING_SOFTWARE_SAAS" | "RIDESHARE_TAXI" | "TOLL_BRIDGE_FEES" | "TRAINING_EDUCATION" | "TRAVEL")[] | null; } | null

put.requestBody.content.application/json.name?
Section titled “put.requestBody.content.application/json.name?”

optional name?: string | null

Name for the Spend Limit.

put.requestBody.content.application/json.owner_user_ids?
Section titled “put.requestBody.content.application/json.owner_user_ids?”

optional owner_user_ids?: string[] | null

User IDs of the owners of the Spend Limit.

put.requestBody.content.application/json.period_recurrence_type?
Section titled “put.requestBody.content.application/json.period_recurrence_type?”

optional period_recurrence_type?: "PER_MONTH" | "PER_QUARTER" | "PER_YEAR" | "ONE_TIME" | "PER_WEEK" | null

put.requestBody.content.application/json.set_end_date_null?
Section titled “put.requestBody.content.application/json.set_end_date_null?”

optional set_end_date_null?: boolean | null

Set the date when the Spend Limit should expire to null.

put.requestBody.content.application/json.set_start_date_null?
Section titled “put.requestBody.content.application/json.set_start_date_null?”

optional set_start_date_null?: boolean | null

Set the date when the Spend Limit should start counting to null.

put.requestBody.content.application/json.set_transaction_limit_null?
Section titled “put.requestBody.content.application/json.set_transaction_limit_null?”

optional set_transaction_limit_null?: boolean | null

Set the transaction limit that this Spend Limit will enforce to null.

put.requestBody.content.application/json.spend_type?
Section titled “put.requestBody.content.application/json.spend_type?”

optional spend_type?: "BUDGET_PROVISIONED_CARDS_ONLY" | "NON_BUDGET_PROVISIONED_CARDS_ALLOWED" | null

put.requestBody.content.application/json.start_date?
Section titled “put.requestBody.content.application/json.start_date?”

optional start_date?: string | null

Format: date

The date when the Spend Limit should start counting.

put.requestBody.content.application/json.status?
Section titled “put.requestBody.content.application/json.status?”

optional status?: "ACTIVE" | "ARCHIVED" | "DELETED" | "EXPIRED" | null

put.requestBody.content.application/json.transaction_limit?
Section titled “put.requestBody.content.application/json.transaction_limit?”

optional transaction_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

responses: object

200: object

The Spend Limit that was updated

content: object

put.responses.200.content.application/json
Section titled “put.responses.200.content.application/json”

application/json: object

put.responses.200.content.application/json.account_id
Section titled “put.responses.200.content.application/json.account_id”

account_id: string

The Brex account this Spend Limit belongs to.

put.responses.200.content.application/json.authorization_settings?
Section titled “put.responses.200.content.application/json.authorization_settings?”

optional authorization_settings?: { authorization_type: "HARD" | "SOFT"; base_limit: { amount: number; currency: string | null; }; limit_buffer_percentage?: number | null; limit_with_increases: { amount: number; currency: string | null; }; rollover_refresh_rate: "OFF" | "NEVER" | "PER_MONTH" | "PER_QUARTER" | "PER_YEAR"; } | null

{ authorization_type: "HARD" | "SOFT"; base_limit: { amount: number; currency: string | null; }; limit_buffer_percentage?: number | null; limit_with_increases: { amount: number; currency: string | null; }; rollover_refresh_rate: "OFF" | "NEVER" | "PER_MONTH" | "PER_QUARTER" | "PER_YEAR"; }

authorization_type: "HARD" | "SOFT"

base_limit: 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 limit_buffer_percentage?: number | null

Format: int32

The percentage of flexible buffer on the limit as a 0-100 integer.

limit_with_increases: 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

rollover_refresh_rate: "OFF" | "NEVER" | "PER_MONTH" | "PER_QUARTER" | "PER_YEAR"


null

put.responses.200.content.application/json.authorization_visibility
Section titled “put.responses.200.content.application/json.authorization_visibility”

authorization_visibility: "PUBLIC" | "PRIVATE"

put.responses.200.content.application/json.auto_create_limit_cards_setting
Section titled “put.responses.200.content.application/json.auto_create_limit_cards_setting”

auto_create_limit_cards_setting: "DISABLED" | "ALL_MEMBERS"

put.responses.200.content.application/json.auto_transfer_cards_setting
Section titled “put.responses.200.content.application/json.auto_transfer_cards_setting”

auto_transfer_cards_setting: "DISABLED" | "ENABLED"

put.responses.200.content.application/json.current_period_balance?
Section titled “put.responses.200.content.application/json.current_period_balance?”

optional current_period_balance?: { amount_spent?: { amount: number; currency: … | …; } | null; end_date?: string | null; end_time?: string | null; rollover_amount?: { amount: number; currency: … | …; } | null; start_date?: string | null; start_time?: string | null; } | null

{ amount_spent?: { amount: number; currency: … | …; } | null; end_date?: string | null; end_time?: string | null; rollover_amount?: { amount: number; currency: … | …; } | null; start_date?: string | null; start_time?: string | null; }

optional amount_spent?: { amount: number; currency: … | …; } | null

{ amount: number; currency: … | …; }

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: … | …

The type of currency, in ISO 4217 format.

USD
USD

null

optional end_date?: string | null

Format: date

optional end_time?: string | null

Format: date-time

optional rollover_amount?: { amount: number; currency: … | …; } | null

{ amount: number; currency: … | …; }

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: … | …

The type of currency, in ISO 4217 format.

USD
USD

null

optional start_date?: string | null

Format: date

optional start_time?: string | null

Format: date-time


null

put.responses.200.content.application/json.department_id?
Section titled “put.responses.200.content.application/json.department_id?”

optional department_id?: string | null

The department ID to which Spend Limit expenses will be attributed.

put.responses.200.content.application/json.description?
Section titled “put.responses.200.content.application/json.description?”

optional description?: string | null

Description of what the Spend Limit is used for.

put.responses.200.content.application/json.end_date?
Section titled “put.responses.200.content.application/json.end_date?”

optional end_date?: string | null

Format: date

The date when the Spend Limit should expire.

put.responses.200.content.application/json.end_time_utc?
Section titled “put.responses.200.content.application/json.end_time_utc?”

optional end_time_utc?: string | null

Format: date-time

The UTC time when the Spend Limit should expire.

put.responses.200.content.application/json.expense_policy_id
Section titled “put.responses.200.content.application/json.expense_policy_id”

expense_policy_id: string

The ID of the expense policy corresponding to this Spend Limit.

put.responses.200.content.application/json.expense_visibility
Section titled “put.responses.200.content.application/json.expense_visibility”

expense_visibility: "PRIVATE" | "SHARED"

put.responses.200.content.application/json.id
Section titled “put.responses.200.content.application/json.id”

id: string

Unique ID for the Spend Limit.

put.responses.200.content.application/json.legal_entity_id?
Section titled “put.responses.200.content.application/json.legal_entity_id?”

optional legal_entity_id?: string | null

The legal entity ID to which Spend Limit expenses will be attributed. If not set, expenses will be attributed to the spending user’s entity.

put.responses.200.content.application/json.limit_approval_policy_id?
Section titled “put.responses.200.content.application/json.limit_approval_policy_id?”

optional limit_approval_policy_id?: string | null

The ID of the policy for limit increase approval requests. Meant to replace limit_increase_request_policy_id.

put.responses.200.content.application/json.limit_increase_request_policy_id?
Section titled “put.responses.200.content.application/json.limit_increase_request_policy_id?”

optional limit_increase_request_policy_id?: string | null

The ID of the policy for limit increase requests for this Spend Limit.

put.responses.200.content.application/json.limit_increase_setting
Section titled “put.responses.200.content.application/json.limit_increase_setting”

limit_increase_setting: "DISABLED" | "ENABLED"

put.responses.200.content.application/json.member_user_ids
Section titled “put.responses.200.content.application/json.member_user_ids”

member_user_ids: string[]

User IDs of the members of the Spend Limit.

put.responses.200.content.application/json.merchant_category_controls?
Section titled “put.responses.200.content.application/json.merchant_category_controls?”

optional merchant_category_controls?: { allowed_merchant_categories?: (… | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | …)[] | null; blocked_merchant_categories?: (… | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | … | …)[] | null; } | null

put.responses.200.content.application/json.name
Section titled “put.responses.200.content.application/json.name”

name: string

Name for the Spend Limit.

put.responses.200.content.application/json.owner_user_ids
Section titled “put.responses.200.content.application/json.owner_user_ids”

owner_user_ids: string[]

User IDs of the owners of the Spend Limit.

put.responses.200.content.application/json.parent_budget_id?
Section titled “put.responses.200.content.application/json.parent_budget_id?”

optional parent_budget_id?: string | null

ID of parent Budget.

put.responses.200.content.application/json.period_recurrence_type
Section titled “put.responses.200.content.application/json.period_recurrence_type”

period_recurrence_type: "PER_MONTH" | "PER_QUARTER" | "PER_YEAR" | "ONE_TIME" | "PER_WEEK"

put.responses.200.content.application/json.spend_type
Section titled “put.responses.200.content.application/json.spend_type”

spend_type: "BUDGET_PROVISIONED_CARDS_ONLY" | "NON_BUDGET_PROVISIONED_CARDS_ALLOWED"

put.responses.200.content.application/json.start_date?
Section titled “put.responses.200.content.application/json.start_date?”

optional start_date?: string | null

Format: date

The date when the Spend Limit should start counting.

put.responses.200.content.application/json.start_time_utc?
Section titled “put.responses.200.content.application/json.start_time_utc?”

optional start_time_utc?: string | null

Format: date-time

The UTC time when the Spend Limit should start counting.

put.responses.200.content.application/json.status
Section titled “put.responses.200.content.application/json.status”

status: "ACTIVE" | "ARCHIVED" | "DELETED" | "EXPIRED"

put.responses.200.content.application/json.transaction_limit?
Section titled “put.responses.200.content.application/json.transaction_limit?”

optional transaction_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

headers: object

[name: string]: unknown

400: object

Bad request

optional content?: undefined

headers: object

[name: string]: unknown

401: object

Unauthorized

optional content?: undefined

headers: object

[name: string]: unknown

403: object

Forbidden

optional content?: undefined

headers: object

[name: string]: unknown

404: object

Not Found

optional content?: undefined

headers: object

[name: string]: unknown

optional trace?: undefined


/v2/spend_limits/{id}/archive: object

Defined in: src/budgets/types.gen.ts:227

optional delete?: undefined

optional get?: undefined

optional head?: undefined

optional options?: undefined

parameters: object

optional cookie?: undefined

optional header?: undefined

optional path?: undefined

optional query?: undefined

optional patch?: undefined

post: object

Archive a Spend Limit

Archives a Spend Limit, making it unusable for future expenses and removing it from the UI

parameters: object

optional cookie?: undefined

optional header?: undefined

path: object

id: string

optional query?: undefined

optional requestBody?: undefined

responses: object

200: object

The Spend Limit that was archived

optional content?: undefined

headers: object

[name: string]: unknown

400: object

Bad request

optional content?: undefined

headers: object

[name: string]: unknown

401: object

Unauthorized

optional content?: undefined

headers: object

[name: string]: unknown

403: object

Forbidden

optional content?: undefined

headers: object

[name: string]: unknown

404: object

Not Found

optional content?: undefined

headers: object

[name: string]: unknown

optional put?: undefined

optional trace?: undefined