BudgetsPaths
Defined in: src/budgets/types.gen.ts:2
Properties
Section titled “Properties”/v1/budget_programs
Section titled “/v1/budget_programs”/v1/budget_programs:
object
Defined in: src/budgets/types.gen.ts:3
delete?
Section titled “delete?”
optionaldelete?:undefined
get:
object
List Budget Programs
Description
Section titled “Description”Lists Budget Programs belonging to this account
get.parameters
Section titled “get.parameters”parameters:
object
get.parameters.cookie?
Section titled “get.parameters.cookie?”
optionalcookie?:undefined
get.parameters.header?
Section titled “get.parameters.header?”
optionalheader?:undefined
get.parameters.path?
Section titled “get.parameters.path?”
optionalpath?:undefined
get.parameters.query?
Section titled “get.parameters.query?”
optionalquery?:object
get.parameters.query.cursor?
Section titled “get.parameters.query.cursor?”
optionalcursor?:string|null
get.parameters.query.limit?
Section titled “get.parameters.query.limit?”
optionallimit?:number|null
get.requestBody?
Section titled “get.requestBody?”
optionalrequestBody?:undefined
get.responses
Section titled “get.responses”responses:
object
get.responses.200
Section titled “get.responses.200”200:
object
Description
Section titled “Description”A page with a list of Budget Programs
get.responses.200.content
Section titled “get.responses.200.content”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?”
optionalnext_cursor?:string|null
get.responses.200.headers
Section titled “get.responses.200.headers”headers:
object
Index Signature
Section titled “Index Signature”[name: string]: unknown
get.responses.400
Section titled “get.responses.400”400:
object
Description
Section titled “Description”Bad request
get.responses.400.content?
Section titled “get.responses.400.content?”
optionalcontent?:undefined
get.responses.400.headers
Section titled “get.responses.400.headers”headers:
object
Index Signature
Section titled “Index Signature”[name: string]: unknown
get.responses.401
Section titled “get.responses.401”401:
object
Description
Section titled “Description”Unauthorized
get.responses.401.content?
Section titled “get.responses.401.content?”
optionalcontent?:undefined
get.responses.401.headers
Section titled “get.responses.401.headers”headers:
object
Index Signature
Section titled “Index Signature”[name: string]: unknown
get.responses.403
Section titled “get.responses.403”403:
object
Description
Section titled “Description”Forbidden
get.responses.403.content?
Section titled “get.responses.403.content?”
optionalcontent?:undefined
get.responses.403.headers
Section titled “get.responses.403.headers”headers:
object
Index Signature
Section titled “Index Signature”[name: string]: unknown
optionalhead?:undefined
options?
Section titled “options?”
optionaloptions?:undefined
parameters
Section titled “parameters”parameters:
object
parameters.cookie?
Section titled “parameters.cookie?”
optionalcookie?:undefined
parameters.header?
Section titled “parameters.header?”
optionalheader?:undefined
parameters.path?
Section titled “parameters.path?”
optionalpath?:undefined
parameters.query?
Section titled “parameters.query?”
optionalquery?:undefined
patch?
Section titled “patch?”
optionalpatch?:undefined
optionalpost?:undefined
optionalput?:undefined
trace?
Section titled “trace?”
optionaltrace?:undefined
/v1/budget_programs/{id}
Section titled “/v1/budget_programs/{id}”/v1/budget_programs/{id}:
object
Defined in: src/budgets/types.gen.ts:23
delete?
Section titled “delete?”
optionaldelete?:undefined
get:
object
Get Budget Program
Description
Section titled “Description”Retrieves a Budget Program by ID
get.parameters
Section titled “get.parameters”parameters:
object
get.parameters.cookie?
Section titled “get.parameters.cookie?”
optionalcookie?:undefined
get.parameters.header?
Section titled “get.parameters.header?”
optionalheader?:undefined
get.parameters.path
Section titled “get.parameters.path”path:
object
get.parameters.path.id
Section titled “get.parameters.path.id”id:
string
get.parameters.query?
Section titled “get.parameters.query?”
optionalquery?:undefined
get.requestBody?
Section titled “get.requestBody?”
optionalrequestBody?:undefined
get.responses
Section titled “get.responses”responses:
object
get.responses.200
Section titled “get.responses.200”200:
object
Description
Section titled “Description”The Budget Program that was retrieved
get.responses.200.content
Section titled “get.responses.200.content”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?”
optionalcreator_user_id?:string|null
get.responses.200.content.application/json.description?
Section titled “get.responses.200.content.application/json.description?”
optionaldescription?:string|null
get.responses.200.content.application/json.employee_filter?
Section titled “get.responses.200.content.application/json.employee_filter?”
optionalemployee_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?”
optionalexisting_budget_ids?:string[] |null
Description
Section titled “Description”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
get.responses.200.headers
Section titled “get.responses.200.headers”headers:
object
Index Signature
Section titled “Index Signature”[name: string]: unknown
get.responses.400
Section titled “get.responses.400”400:
object
Description
Section titled “Description”Bad request
get.responses.400.content?
Section titled “get.responses.400.content?”
optionalcontent?:undefined
get.responses.400.headers
Section titled “get.responses.400.headers”headers:
object
Index Signature
Section titled “Index Signature”[name: string]: unknown
get.responses.401
Section titled “get.responses.401”401:
object
Description
Section titled “Description”Unauthorized
get.responses.401.content?
Section titled “get.responses.401.content?”
optionalcontent?:undefined
get.responses.401.headers
Section titled “get.responses.401.headers”headers:
object
Index Signature
Section titled “Index Signature”[name: string]: unknown
get.responses.403
Section titled “get.responses.403”403:
object
Description
Section titled “Description”Forbidden
get.responses.403.content?
Section titled “get.responses.403.content?”
optionalcontent?:undefined
get.responses.403.headers
Section titled “get.responses.403.headers”headers:
object
Index Signature
Section titled “Index Signature”[name: string]: unknown
get.responses.404
Section titled “get.responses.404”404:
object
Description
Section titled “Description”Not Found
get.responses.404.content?
Section titled “get.responses.404.content?”
optionalcontent?:undefined
get.responses.404.headers
Section titled “get.responses.404.headers”headers:
object
Index Signature
Section titled “Index Signature”[name: string]: unknown
optionalhead?:undefined
options?
Section titled “options?”
optionaloptions?:undefined
parameters
Section titled “parameters”parameters:
object
parameters.cookie?
Section titled “parameters.cookie?”
optionalcookie?:undefined
parameters.header?
Section titled “parameters.header?”
optionalheader?:undefined
parameters.path?
Section titled “parameters.path?”
optionalpath?:undefined
parameters.query?
Section titled “parameters.query?”
optionalquery?:undefined
patch?
Section titled “patch?”
optionalpatch?:undefined
optionalpost?:undefined
optionalput?:undefined
trace?
Section titled “trace?”
optionaltrace?:undefined
/v1/budgets
Section titled “/v1/budgets”/v1/budgets:
object
Defined in: src/budgets/types.gen.ts:43
delete?
Section titled “delete?”
optionaldelete?:undefined
get:
object
List Spend Limits
Description
Section titled “Description”Lists Spend Limits belonging to this account
get.parameters
Section titled “get.parameters”parameters:
object
get.parameters.cookie?
Section titled “get.parameters.cookie?”
optionalcookie?:undefined
get.parameters.header?
Section titled “get.parameters.header?”
optionalheader?:undefined
get.parameters.path?
Section titled “get.parameters.path?”
optionalpath?:undefined
get.parameters.query?
Section titled “get.parameters.query?”
optionalquery?:object
get.parameters.query.cursor?
Section titled “get.parameters.query.cursor?”
optionalcursor?:string|null
get.parameters.query.limit?
Section titled “get.parameters.query.limit?”
optionallimit?:number|null
get.requestBody?
Section titled “get.requestBody?”
optionalrequestBody?:undefined
get.responses
Section titled “get.responses”responses:
object
get.responses.200
Section titled “get.responses.200”200:
object
Description
Section titled “Description”A page with a list of Spend Limits
get.responses.200.content
Section titled “get.responses.200.content”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?”
optionalnext_cursor?:string|null
get.responses.200.headers
Section titled “get.responses.200.headers”headers:
object
Index Signature
Section titled “Index Signature”[name: string]: unknown
get.responses.400
Section titled “get.responses.400”400:
object
Description
Section titled “Description”Bad request
get.responses.400.content?
Section titled “get.responses.400.content?”
optionalcontent?:undefined
get.responses.400.headers
Section titled “get.responses.400.headers”headers:
object
Index Signature
Section titled “Index Signature”[name: string]: unknown
get.responses.401
Section titled “get.responses.401”401:
object
Description
Section titled “Description”Unauthorized
get.responses.401.content?
Section titled “get.responses.401.content?”
optionalcontent?:undefined
get.responses.401.headers
Section titled “get.responses.401.headers”headers:
object
Index Signature
Section titled “Index Signature”[name: string]: unknown
get.responses.403
Section titled “get.responses.403”403:
object
Description
Section titled “Description”Forbidden
get.responses.403.content?
Section titled “get.responses.403.content?”
optionalcontent?:undefined
get.responses.403.headers
Section titled “get.responses.403.headers”headers:
object
Index Signature
Section titled “Index Signature”[name: string]: unknown
optionalhead?:undefined
options?
Section titled “options?”
optionaloptions?:undefined
parameters
Section titled “parameters”parameters:
object
parameters.cookie?
Section titled “parameters.cookie?”
optionalcookie?:undefined
parameters.header?
Section titled “parameters.header?”
optionalheader?:undefined
parameters.path?
Section titled “parameters.path?”
optionalpath?:undefined
parameters.query?
Section titled “parameters.query?”
optionalquery?:undefined
patch?
Section titled “patch?”
optionalpatch?:undefined
post:
object
Create Spend Limit
Description
Section titled “Description”Creates a Spend Limit
post.parameters
Section titled “post.parameters”parameters:
object
post.parameters.cookie?
Section titled “post.parameters.cookie?”
optionalcookie?:undefined
post.parameters.header
Section titled “post.parameters.header”header:
object
post.parameters.header.Idempotency-Key
Section titled “post.parameters.header.Idempotency-Key”Idempotency-Key:
string
post.parameters.path?
Section titled “post.parameters.path?”
optionalpath?:undefined
post.parameters.query?
Section titled “post.parameters.query?”
optionalquery?:undefined
post.requestBody
Section titled “post.requestBody”requestBody:
object
post.requestBody.content
Section titled “post.requestBody.content”content:
object
post.requestBody.content.application/json
Section titled “post.requestBody.content.application/json”application/json:
object
post.requestBody.content.application/json.description
Section titled “post.requestBody.content.application/json.description”description:
string
Description
Section titled “Description”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?”
optionalend_date?:string|null
Format: date
Description
Section titled “Description”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?”
optionalentity_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
Description
Section titled “Description”The amount of money, in the smallest denomination of the currency indicated by currency. For example, when currency is USD, amount is in cents.
Example
Section titled “Example”700post.requestBody.content.application/json.limit.currency
Section titled “post.requestBody.content.application/json.limit.currency”currency:
string|null
Description
Section titled “Description”The type of currency, in ISO 4217 format.
Default
Section titled “Default”USDExample
Section titled “Example”USDpost.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?”
optionalmember_user_ids?:string[] |null
Description
Section titled “Description”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
Description
Section titled “Description”Name for the Spend Limit.
post.requestBody.content.application/json.owner_user_ids?
Section titled “post.requestBody.content.application/json.owner_user_ids?”
optionalowner_user_ids?:string[] |null
Description
Section titled “Description”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
Description
Section titled “Description”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?”
optionalpolicy_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?”
optionalstart_date?:string|null
Format: date
Description
Section titled “Description”The UTC date when the Spend Limit should start counting.
post.responses
Section titled “post.responses”responses:
object
post.responses.200
Section titled “post.responses.200”200:
object
Description
Section titled “Description”The Spend Limit that was created
post.responses.200.content
Section titled “post.responses.200.content”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
Description
Section titled “Description”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
Description
Section titled “Description”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?”
optionalcreator_user_id?:string|null
Description
Section titled “Description”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?”
optionalcurrent_period_balance?: {balance?: {amount:number;currency: … | …; } |null;end_date?:string|null;start_date?:string|null; } |null
Union Members
Section titled “Union Members”Type Literal
Section titled “Type Literal”{ balance?: { amount: number; currency: … | …; } | null; end_date?: string | null; start_date?: string | null; }
balance?
Section titled “balance?”
optionalbalance?: {amount:number;currency: … | …; } |null
Union Members
Section titled “Union Members”Type Literal
Section titled “Type Literal”{ amount: number; currency: … | …; }
amount
Section titled “amount”amount:
number
Format: int64
Description
Section titled “Description”The amount of money, in the smallest denomination of the currency indicated by currency. For example, when currency is USD, amount is in cents.
Example
Section titled “Example”700currency
Section titled “currency”currency: … | …
Description
Section titled “Description”The type of currency, in ISO 4217 format.
Default
Section titled “Default”USDExample
Section titled “Example”USDnull
end_date?
Section titled “end_date?”
optionalend_date?:string|null
Format: date
start_date?
Section titled “start_date?”
optionalstart_date?:string|null
Format: date
null
post.responses.200.content.application/json.description?
Section titled “post.responses.200.content.application/json.description?”
optionaldescription?:string|null
Description
Section titled “Description”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?”
optionalend_date?:string|null
Format: date
Description
Section titled “Description”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?”
optionallimit?: {amount:number;currency:string|null; } |null
Union Members
Section titled “Union Members”Type Literal
Section titled “Type Literal”{ amount: number; currency: string | null; }
amount
Section titled “amount”amount:
number
Format: int64
Description
Section titled “Description”The amount of money, in the smallest denomination of the currency indicated by currency. For example, when currency is USD, amount is in cents.
Example
Section titled “Example”700currency
Section titled “currency”currency:
string|null
Description
Section titled “Description”The type of currency, in ISO 4217 format.
Default
Section titled “Default”USDExample
Section titled “Example”USDnull
post.responses.200.content.application/json.limit_type?
Section titled “post.responses.200.content.application/json.limit_type?”
optionallimit_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[]
Description
Section titled “Description”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
Description
Section titled “Description”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[]
Description
Section titled “Description”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?”
optionalparent_budget_id?:string|null
Description
Section titled “Description”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?”
optionalstart_date?:string|null
Format: date
Description
Section titled “Description”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?”
optionaltemplateId?:string|null
post.responses.200.headers
Section titled “post.responses.200.headers”headers:
object
Index Signature
Section titled “Index Signature”[name: string]: unknown
post.responses.400
Section titled “post.responses.400”400:
object
Description
Section titled “Description”Bad request
post.responses.400.content?
Section titled “post.responses.400.content?”
optionalcontent?:undefined
post.responses.400.headers
Section titled “post.responses.400.headers”headers:
object
Index Signature
Section titled “Index Signature”[name: string]: unknown
post.responses.401
Section titled “post.responses.401”401:
object
Description
Section titled “Description”Unauthorized
post.responses.401.content?
Section titled “post.responses.401.content?”
optionalcontent?:undefined
post.responses.401.headers
Section titled “post.responses.401.headers”headers:
object
Index Signature
Section titled “Index Signature”[name: string]: unknown
post.responses.403
Section titled “post.responses.403”403:
object
Description
Section titled “Description”Forbidden
post.responses.403.content?
Section titled “post.responses.403.content?”
optionalcontent?:undefined
post.responses.403.headers
Section titled “post.responses.403.headers”headers:
object
Index Signature
Section titled “Index Signature”[name: string]: unknown
optionalput?:undefined
trace?
Section titled “trace?”
optionaltrace?:undefined
/v1/budgets/{id}
Section titled “/v1/budgets/{id}”/v1/budgets/{id}:
object
Defined in: src/budgets/types.gen.ts:67
delete?
Section titled “delete?”
optionaldelete?:undefined
get:
object
Get Spend Limit
Description
Section titled “Description”Retrieves a Spend Limit by ID
get.parameters
Section titled “get.parameters”parameters:
object
get.parameters.cookie?
Section titled “get.parameters.cookie?”
optionalcookie?:undefined
get.parameters.header?
Section titled “get.parameters.header?”
optionalheader?:undefined
get.parameters.path
Section titled “get.parameters.path”path:
object
get.parameters.path.id
Section titled “get.parameters.path.id”id:
string
get.parameters.query?
Section titled “get.parameters.query?”
optionalquery?:undefined
get.requestBody?
Section titled “get.requestBody?”
optionalrequestBody?:undefined
get.responses
Section titled “get.responses”responses:
object
get.responses.200
Section titled “get.responses.200”200:
object
Description
Section titled “Description”The Spend Limit that was retrieved
get.responses.200.content
Section titled “get.responses.200.content”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
Description
Section titled “Description”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
Description
Section titled “Description”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?”
optionalcreator_user_id?:string|null
Description
Section titled “Description”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?”
optionalcurrent_period_balance?: {balance?: {amount:number;currency: … | …; } |null;end_date?:string|null;start_date?:string|null; } |null
Union Members
Section titled “Union Members”Type Literal
Section titled “Type Literal”{ balance?: { amount: number; currency: … | …; } | null; end_date?: string | null; start_date?: string | null; }
balance?
Section titled “balance?”
optionalbalance?: {amount:number;currency: … | …; } |null
Union Members
Section titled “Union Members”Type Literal
Section titled “Type Literal”{ amount: number; currency: … | …; }
amount
Section titled “amount”amount:
number
Format: int64
Description
Section titled “Description”The amount of money, in the smallest denomination of the currency indicated by currency. For example, when currency is USD, amount is in cents.
Example
Section titled “Example”700currency
Section titled “currency”currency: … | …
Description
Section titled “Description”The type of currency, in ISO 4217 format.
Default
Section titled “Default”USDExample
Section titled “Example”USDnull
end_date?
Section titled “end_date?”
optionalend_date?:string|null
Format: date
start_date?
Section titled “start_date?”
optionalstart_date?:string|null
Format: date
null
get.responses.200.content.application/json.description?
Section titled “get.responses.200.content.application/json.description?”
optionaldescription?:string|null
Description
Section titled “Description”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?”
optionalend_date?:string|null
Format: date
Description
Section titled “Description”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?”
optionallimit?: {amount:number;currency:string|null; } |null
Union Members
Section titled “Union Members”Type Literal
Section titled “Type Literal”{ amount: number; currency: string | null; }
amount
Section titled “amount”amount:
number
Format: int64
Description
Section titled “Description”The amount of money, in the smallest denomination of the currency indicated by currency. For example, when currency is USD, amount is in cents.
Example
Section titled “Example”700currency
Section titled “currency”currency:
string|null
Description
Section titled “Description”The type of currency, in ISO 4217 format.
Default
Section titled “Default”USDExample
Section titled “Example”USDnull
get.responses.200.content.application/json.limit_type?
Section titled “get.responses.200.content.application/json.limit_type?”
optionallimit_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[]
Description
Section titled “Description”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
Description
Section titled “Description”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[]
Description
Section titled “Description”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?”
optionalparent_budget_id?:string|null
Description
Section titled “Description”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?”
optionalstart_date?:string|null
Format: date
Description
Section titled “Description”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?”
optionaltemplateId?:string|null
get.responses.200.headers
Section titled “get.responses.200.headers”headers:
object
Index Signature
Section titled “Index Signature”[name: string]: unknown
get.responses.400
Section titled “get.responses.400”400:
object
Description
Section titled “Description”Bad request
get.responses.400.content?
Section titled “get.responses.400.content?”
optionalcontent?:undefined
get.responses.400.headers
Section titled “get.responses.400.headers”headers:
object
Index Signature
Section titled “Index Signature”[name: string]: unknown
get.responses.401
Section titled “get.responses.401”401:
object
Description
Section titled “Description”Unauthorized
get.responses.401.content?
Section titled “get.responses.401.content?”
optionalcontent?:undefined
get.responses.401.headers
Section titled “get.responses.401.headers”headers:
object
Index Signature
Section titled “Index Signature”[name: string]: unknown
get.responses.403
Section titled “get.responses.403”403:
object
Description
Section titled “Description”Forbidden
get.responses.403.content?
Section titled “get.responses.403.content?”
optionalcontent?:undefined
get.responses.403.headers
Section titled “get.responses.403.headers”headers:
object
Index Signature
Section titled “Index Signature”[name: string]: unknown
get.responses.404
Section titled “get.responses.404”404:
object
Description
Section titled “Description”Not Found
get.responses.404.content?
Section titled “get.responses.404.content?”
optionalcontent?:undefined
get.responses.404.headers
Section titled “get.responses.404.headers”headers:
object
Index Signature
Section titled “Index Signature”[name: string]: unknown
optionalhead?:undefined
options?
Section titled “options?”
optionaloptions?:undefined
parameters
Section titled “parameters”parameters:
object
parameters.cookie?
Section titled “parameters.cookie?”
optionalcookie?:undefined
parameters.header?
Section titled “parameters.header?”
optionalheader?:undefined
parameters.path?
Section titled “parameters.path?”
optionalpath?:undefined
parameters.query?
Section titled “parameters.query?”
optionalquery?:undefined
patch?
Section titled “patch?”
optionalpatch?:undefined
optionalpost?:undefined
put:
object
Update Spend Limit
Description
Section titled “Description”Updates a Spend Limit
put.parameters
Section titled “put.parameters”parameters:
object
put.parameters.cookie?
Section titled “put.parameters.cookie?”
optionalcookie?:undefined
put.parameters.header
Section titled “put.parameters.header”header:
object
put.parameters.header.Idempotency-Key
Section titled “put.parameters.header.Idempotency-Key”Idempotency-Key:
string
put.parameters.path
Section titled “put.parameters.path”path:
object
put.parameters.path.id
Section titled “put.parameters.path.id”id:
string
put.parameters.query?
Section titled “put.parameters.query?”
optionalquery?:undefined
put.requestBody
Section titled “put.requestBody”requestBody:
object
put.requestBody.content
Section titled “put.requestBody.content”content:
object
put.requestBody.content.application/json
Section titled “put.requestBody.content.application/json”application/json:
object
put.requestBody.content.application/json.description?
Section titled “put.requestBody.content.application/json.description?”
optionaldescription?:string|null
Description
Section titled “Description”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?”
optionalend_date?:string|null
Format: date
Description
Section titled “Description”The UTC date when the Spend Limit should stop counting.
put.requestBody.content.application/json.limit?
Section titled “put.requestBody.content.application/json.limit?”
optionallimit?: {amount:number;currency:string|null; } |null
Union Members
Section titled “Union Members”Type Literal
Section titled “Type Literal”{ amount: number; currency: string | null; }
amount
Section titled “amount”amount:
number
Format: int64
Description
Section titled “Description”The amount of money, in the smallest denomination of the currency indicated by currency. For example, when currency is USD, amount is in cents.
Example
Section titled “Example”700currency
Section titled “currency”currency:
string|null
Description
Section titled “Description”The type of currency, in ISO 4217 format.
Default
Section titled “Default”USDExample
Section titled “Example”USDnull
put.requestBody.content.application/json.limit_type?
Section titled “put.requestBody.content.application/json.limit_type?”
optionallimit_type?:"HARD"|"SOFT"|null
put.requestBody.content.application/json.limit_visibility?
Section titled “put.requestBody.content.application/json.limit_visibility?”
optionallimit_visibility?:"PRIVATE"|"SHARED"|null
put.requestBody.content.application/json.member_user_ids?
Section titled “put.requestBody.content.application/json.member_user_ids?”
optionalmember_user_ids?:string[] |null
Description
Section titled “Description”User IDs of the members of the Spend Limit.
put.requestBody.content.application/json.name?
Section titled “put.requestBody.content.application/json.name?”
optionalname?:string|null
Description
Section titled “Description”Name for the Spend Limit.
put.requestBody.content.application/json.owner_user_ids?
Section titled “put.requestBody.content.application/json.owner_user_ids?”
optionalowner_user_ids?:string[] |null
Description
Section titled “Description”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?”
optionalperiod_type?:"WEEKLY"|"MONTHLY"|"QUARTERLY"|"YEARLY"|"ONE_TIME"|null
put.requestBody.content.application/json.spend_type?
Section titled “put.requestBody.content.application/json.spend_type?”
optionalspend_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?”
optionalstart_date?:string|null
Format: date
Description
Section titled “Description”The UTC date when the Spend Limit should start counting.
put.responses
Section titled “put.responses”responses:
object
put.responses.200
Section titled “put.responses.200”200:
object
Description
Section titled “Description”The Spend Limit that was updated
put.responses.200.content
Section titled “put.responses.200.content”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
Description
Section titled “Description”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
Description
Section titled “Description”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?”
optionalcreator_user_id?:string|null
Description
Section titled “Description”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?”
optionalcurrent_period_balance?: {balance?: {amount:number;currency: … | …; } |null;end_date?:string|null;start_date?:string|null; } |null
Union Members
Section titled “Union Members”Type Literal
Section titled “Type Literal”{ balance?: { amount: number; currency: … | …; } | null; end_date?: string | null; start_date?: string | null; }
balance?
Section titled “balance?”
optionalbalance?: {amount:number;currency: … | …; } |null
Union Members
Section titled “Union Members”Type Literal
Section titled “Type Literal”{ amount: number; currency: … | …; }
amount
Section titled “amount”amount:
number
Format: int64
Description
Section titled “Description”The amount of money, in the smallest denomination of the currency indicated by currency. For example, when currency is USD, amount is in cents.
Example
Section titled “Example”700currency
Section titled “currency”currency: … | …
Description
Section titled “Description”The type of currency, in ISO 4217 format.
Default
Section titled “Default”USDExample
Section titled “Example”USDnull
end_date?
Section titled “end_date?”
optionalend_date?:string|null
Format: date
start_date?
Section titled “start_date?”
optionalstart_date?:string|null
Format: date
null
put.responses.200.content.application/json.description?
Section titled “put.responses.200.content.application/json.description?”
optionaldescription?:string|null
Description
Section titled “Description”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?”
optionalend_date?:string|null
Format: date
Description
Section titled “Description”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?”
optionallimit?: {amount:number;currency:string|null; } |null
Union Members
Section titled “Union Members”Type Literal
Section titled “Type Literal”{ amount: number; currency: string | null; }
amount
Section titled “amount”amount:
number
Format: int64
Description
Section titled “Description”The amount of money, in the smallest denomination of the currency indicated by currency. For example, when currency is USD, amount is in cents.
Example
Section titled “Example”700currency
Section titled “currency”currency:
string|null
Description
Section titled “Description”The type of currency, in ISO 4217 format.
Default
Section titled “Default”USDExample
Section titled “Example”USDnull
put.responses.200.content.application/json.limit_type?
Section titled “put.responses.200.content.application/json.limit_type?”
optionallimit_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[]
Description
Section titled “Description”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
Description
Section titled “Description”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[]
Description
Section titled “Description”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?”
optionalparent_budget_id?:string|null
Description
Section titled “Description”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?”
optionalstart_date?:string|null
Format: date
Description
Section titled “Description”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?”
optionaltemplateId?:string|null
put.responses.200.headers
Section titled “put.responses.200.headers”headers:
object
Index Signature
Section titled “Index Signature”[name: string]: unknown
put.responses.400
Section titled “put.responses.400”400:
object
Description
Section titled “Description”Bad request
put.responses.400.content?
Section titled “put.responses.400.content?”
optionalcontent?:undefined
put.responses.400.headers
Section titled “put.responses.400.headers”headers:
object
Index Signature
Section titled “Index Signature”[name: string]: unknown
put.responses.401
Section titled “put.responses.401”401:
object
Description
Section titled “Description”Unauthorized
put.responses.401.content?
Section titled “put.responses.401.content?”
optionalcontent?:undefined
put.responses.401.headers
Section titled “put.responses.401.headers”headers:
object
Index Signature
Section titled “Index Signature”[name: string]: unknown
put.responses.403
Section titled “put.responses.403”403:
object
Description
Section titled “Description”Forbidden
put.responses.403.content?
Section titled “put.responses.403.content?”
optionalcontent?:undefined
put.responses.403.headers
Section titled “put.responses.403.headers”headers:
object
Index Signature
Section titled “Index Signature”[name: string]: unknown
put.responses.404
Section titled “put.responses.404”404:
object
Description
Section titled “Description”Not Found
put.responses.404.content?
Section titled “put.responses.404.content?”
optionalcontent?:undefined
put.responses.404.headers
Section titled “put.responses.404.headers”headers:
object
Index Signature
Section titled “Index Signature”[name: string]: unknown
trace?
Section titled “trace?”
optionaltrace?:undefined
/v1/budgets/{id}/archive
Section titled “/v1/budgets/{id}/archive”/v1/budgets/{id}/archive:
object
Defined in: src/budgets/types.gen.ts:91
delete?
Section titled “delete?”
optionaldelete?:undefined
optionalget?:undefined
optionalhead?:undefined
options?
Section titled “options?”
optionaloptions?:undefined
parameters
Section titled “parameters”parameters:
object
parameters.cookie?
Section titled “parameters.cookie?”
optionalcookie?:undefined
parameters.header?
Section titled “parameters.header?”
optionalheader?:undefined
parameters.path?
Section titled “parameters.path?”
optionalpath?:undefined
parameters.query?
Section titled “parameters.query?”
optionalquery?:undefined
patch?
Section titled “patch?”
optionalpatch?:undefined
post:
object
Archive a Spend Limit
Description
Section titled “Description”Archives a Spend Limit, making it unusable for future expenses and removing it from the UI
post.parameters
Section titled “post.parameters”parameters:
object
post.parameters.cookie?
Section titled “post.parameters.cookie?”
optionalcookie?:undefined
post.parameters.header?
Section titled “post.parameters.header?”
optionalheader?:undefined
post.parameters.path
Section titled “post.parameters.path”path:
object
post.parameters.path.id
Section titled “post.parameters.path.id”id:
string
post.parameters.query?
Section titled “post.parameters.query?”
optionalquery?:undefined
post.requestBody?
Section titled “post.requestBody?”
optionalrequestBody?:undefined
post.responses
Section titled “post.responses”responses:
object
post.responses.200
Section titled “post.responses.200”200:
object
Description
Section titled “Description”The Spend Limit that was archived
post.responses.200.content?
Section titled “post.responses.200.content?”
optionalcontent?:undefined
post.responses.200.headers
Section titled “post.responses.200.headers”headers:
object
Index Signature
Section titled “Index Signature”[name: string]: unknown
post.responses.400
Section titled “post.responses.400”400:
object
Description
Section titled “Description”Bad request
post.responses.400.content?
Section titled “post.responses.400.content?”
optionalcontent?:undefined
post.responses.400.headers
Section titled “post.responses.400.headers”headers:
object
Index Signature
Section titled “Index Signature”[name: string]: unknown
post.responses.401
Section titled “post.responses.401”401:
object
Description
Section titled “Description”Unauthorized
post.responses.401.content?
Section titled “post.responses.401.content?”
optionalcontent?:undefined
post.responses.401.headers
Section titled “post.responses.401.headers”headers:
object
Index Signature
Section titled “Index Signature”[name: string]: unknown
post.responses.403
Section titled “post.responses.403”403:
object
Description
Section titled “Description”Forbidden
post.responses.403.content?
Section titled “post.responses.403.content?”
optionalcontent?:undefined
post.responses.403.headers
Section titled “post.responses.403.headers”headers:
object
Index Signature
Section titled “Index Signature”[name: string]: unknown
post.responses.404
Section titled “post.responses.404”404:
object
Description
Section titled “Description”Not Found
post.responses.404.content?
Section titled “post.responses.404.content?”
optionalcontent?:undefined
post.responses.404.headers
Section titled “post.responses.404.headers”headers:
object
Index Signature
Section titled “Index Signature”[name: string]: unknown
optionalput?:undefined
trace?
Section titled “trace?”
optionaltrace?:undefined
/v2/budgets
Section titled “/v2/budgets”/v2/budgets:
object
Defined in: src/budgets/types.gen.ts:111
delete?
Section titled “delete?”
optionaldelete?:undefined
get:
object
List Budgets
Description
Section titled “Description”Retrieves a list of Budgets
get.parameters
Section titled “get.parameters”parameters:
object
get.parameters.cookie?
Section titled “get.parameters.cookie?”
optionalcookie?:undefined
get.parameters.header?
Section titled “get.parameters.header?”
optionalheader?:undefined
get.parameters.path?
Section titled “get.parameters.path?”
optionalpath?:undefined
get.parameters.query?
Section titled “get.parameters.query?”
optionalquery?:object
get.parameters.query.cursor?
Section titled “get.parameters.query.cursor?”
optionalcursor?:string|null
get.parameters.query.limit?
Section titled “get.parameters.query.limit?”
optionallimit?:number|null
get.requestBody?
Section titled “get.requestBody?”
optionalrequestBody?:undefined
get.responses
Section titled “get.responses”responses:
object
get.responses.200
Section titled “get.responses.200”200:
object
Description
Section titled “Description”A page with a list of Budgets
get.responses.200.content
Section titled “get.responses.200.content”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?”
optionalnext_cursor?:string|null
get.responses.200.headers
Section titled “get.responses.200.headers”headers:
object
Index Signature
Section titled “Index Signature”[name: string]: unknown
get.responses.400
Section titled “get.responses.400”400:
object
Description
Section titled “Description”Bad request
get.responses.400.content?
Section titled “get.responses.400.content?”
optionalcontent?:undefined
get.responses.400.headers
Section titled “get.responses.400.headers”headers:
object
Index Signature
Section titled “Index Signature”[name: string]: unknown
get.responses.401
Section titled “get.responses.401”401:
object
Description
Section titled “Description”Unauthorized
get.responses.401.content?
Section titled “get.responses.401.content?”
optionalcontent?:undefined
get.responses.401.headers
Section titled “get.responses.401.headers”headers:
object
Index Signature
Section titled “Index Signature”[name: string]: unknown
get.responses.403
Section titled “get.responses.403”403:
object
Description
Section titled “Description”Forbidden
get.responses.403.content?
Section titled “get.responses.403.content?”
optionalcontent?:undefined
get.responses.403.headers
Section titled “get.responses.403.headers”headers:
object
Index Signature
Section titled “Index Signature”[name: string]: unknown
get.responses.404
Section titled “get.responses.404”404:
object
Description
Section titled “Description”Not Found
get.responses.404.content?
Section titled “get.responses.404.content?”
optionalcontent?:undefined
get.responses.404.headers
Section titled “get.responses.404.headers”headers:
object
Index Signature
Section titled “Index Signature”[name: string]: unknown
optionalhead?:undefined
options?
Section titled “options?”
optionaloptions?:undefined
parameters
Section titled “parameters”parameters:
object
parameters.cookie?
Section titled “parameters.cookie?”
optionalcookie?:undefined
parameters.header?
Section titled “parameters.header?”
optionalheader?:undefined
parameters.path?
Section titled “parameters.path?”
optionalpath?:undefined
parameters.query?
Section titled “parameters.query?”
optionalquery?:undefined
patch?
Section titled “patch?”
optionalpatch?:undefined
post:
object
Create Budget
Description
Section titled “Description”Creates a Budget
post.parameters
Section titled “post.parameters”parameters:
object
post.parameters.cookie?
Section titled “post.parameters.cookie?”
optionalcookie?:undefined
post.parameters.header
Section titled “post.parameters.header”header:
object
post.parameters.header.Idempotency-Key
Section titled “post.parameters.header.Idempotency-Key”Idempotency-Key:
string
post.parameters.path?
Section titled “post.parameters.path?”
optionalpath?:undefined
post.parameters.query?
Section titled “post.parameters.query?”
optionalquery?:undefined
post.requestBody
Section titled “post.requestBody”requestBody:
object
post.requestBody.content
Section titled “post.requestBody.content”content:
object
post.requestBody.content.application/json
Section titled “post.requestBody.content.application/json”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
Description
Section titled “Description”The amount of money, in the smallest denomination of the currency indicated by currency. For example, when currency is USD, amount is in cents.
Example
Section titled “Example”700post.requestBody.content.application/json.amount.currency
Section titled “post.requestBody.content.application/json.amount.currency”currency:
string|null
Description
Section titled “Description”The type of currency, in ISO 4217 format.
Default
Section titled “Default”USDExample
Section titled “Example”USDpost.requestBody.content.application/json.description
Section titled “post.requestBody.content.application/json.description”description:
string
Description
Section titled “Description”Description of what the Budget is used for.
post.requestBody.content.application/json.end_date?
Section titled “post.requestBody.content.application/json.end_date?”
optionalend_date?:string|null
Format: date
Description
Section titled “Description”The date when the Budget should stop counting.
post.requestBody.content.application/json.limit_type?
Section titled “post.requestBody.content.application/json.limit_type?”
optionallimit_type?:"HARD"|"SOFT"|null
post.requestBody.content.application/json.name
Section titled “post.requestBody.content.application/json.name”name:
string
Description
Section titled “Description”Name for the Budget.
post.requestBody.content.application/json.owner_user_ids?
Section titled “post.requestBody.content.application/json.owner_user_ids?”
optionalowner_user_ids?:string[] |null
Description
Section titled “Description”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
Description
Section titled “Description”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?”
optionalstart_date?:string|null
Format: date
Description
Section titled “Description”The date when the Budget should start counting.
post.responses
Section titled “post.responses”responses:
object
post.responses.200
Section titled “post.responses.200”200:
object
Description
Section titled “Description”The Budget that was created
post.responses.200.content
Section titled “post.responses.200.content”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
Description
Section titled “Description”The Brex account this Budget belongs to.
post.responses.200.content.application/json.amount?
Section titled “post.responses.200.content.application/json.amount?”
optionalamount?: {amount:number;currency:string|null; } |null
Union Members
Section titled “Union Members”Type Literal
Section titled “Type Literal”{ amount: number; currency: string | null; }
amount
Section titled “amount”amount:
number
Format: int64
Description
Section titled “Description”The amount of money, in the smallest denomination of the currency indicated by currency. For example, when currency is USD, amount is in cents.
Example
Section titled “Example”700currency
Section titled “currency”currency:
string|null
Description
Section titled “Description”The type of currency, in ISO 4217 format.
Default
Section titled “Default”USDExample
Section titled “Example”USDnull
post.responses.200.content.application/json.budget_id
Section titled “post.responses.200.content.application/json.budget_id”budget_id:
string
Description
Section titled “Description”Unique ID for the Budget.
post.responses.200.content.application/json.description?
Section titled “post.responses.200.content.application/json.description?”
optionaldescription?:string|null
Description
Section titled “Description”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?”
optionalend_date?:string|null
Format: date
Description
Section titled “Description”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?”
optionallimit_type?:"HARD"|"SOFT"|null
post.responses.200.content.application/json.name
Section titled “post.responses.200.content.application/json.name”name:
string
Description
Section titled “Description”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[]
Description
Section titled “Description”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?”
optionalparent_budget_id?:string|null
Description
Section titled “Description”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?”
optionalstart_date?:string|null
Format: date
Description
Section titled “Description”The date when the Budget should start counting.
post.responses.200.headers
Section titled “post.responses.200.headers”headers:
object
Index Signature
Section titled “Index Signature”[name: string]: unknown
post.responses.400
Section titled “post.responses.400”400:
object
Description
Section titled “Description”Bad request
post.responses.400.content?
Section titled “post.responses.400.content?”
optionalcontent?:undefined
post.responses.400.headers
Section titled “post.responses.400.headers”headers:
object
Index Signature
Section titled “Index Signature”[name: string]: unknown
post.responses.401
Section titled “post.responses.401”401:
object
Description
Section titled “Description”Unauthorized
post.responses.401.content?
Section titled “post.responses.401.content?”
optionalcontent?:undefined
post.responses.401.headers
Section titled “post.responses.401.headers”headers:
object
Index Signature
Section titled “Index Signature”[name: string]: unknown
post.responses.403
Section titled “post.responses.403”403:
object
Description
Section titled “Description”Forbidden
post.responses.403.content?
Section titled “post.responses.403.content?”
optionalcontent?:undefined
post.responses.403.headers
Section titled “post.responses.403.headers”headers:
object
Index Signature
Section titled “Index Signature”[name: string]: unknown
optionalput?:undefined
trace?
Section titled “trace?”
optionaltrace?:undefined
/v2/budgets/{id}
Section titled “/v2/budgets/{id}”/v2/budgets/{id}:
object
Defined in: src/budgets/types.gen.ts:135
delete?
Section titled “delete?”
optionaldelete?:undefined
get:
object
Get Budget
Description
Section titled “Description”Retrieves a Budget by ID
get.parameters
Section titled “get.parameters”parameters:
object
get.parameters.cookie?
Section titled “get.parameters.cookie?”
optionalcookie?:undefined
get.parameters.header?
Section titled “get.parameters.header?”
optionalheader?:undefined
get.parameters.path
Section titled “get.parameters.path”path:
object
get.parameters.path.id
Section titled “get.parameters.path.id”id:
string
get.parameters.query?
Section titled “get.parameters.query?”
optionalquery?:undefined
get.requestBody?
Section titled “get.requestBody?”
optionalrequestBody?:undefined
get.responses
Section titled “get.responses”responses:
object
get.responses.200
Section titled “get.responses.200”200:
object
Description
Section titled “Description”The Budget that was retrieved
get.responses.200.content
Section titled “get.responses.200.content”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
Description
Section titled “Description”The Brex account this Budget belongs to.
get.responses.200.content.application/json.amount?
Section titled “get.responses.200.content.application/json.amount?”
optionalamount?: {amount:number;currency:string|null; } |null
Union Members
Section titled “Union Members”Type Literal
Section titled “Type Literal”{ amount: number; currency: string | null; }
amount
Section titled “amount”amount:
number
Format: int64
Description
Section titled “Description”The amount of money, in the smallest denomination of the currency indicated by currency. For example, when currency is USD, amount is in cents.
Example
Section titled “Example”700currency
Section titled “currency”currency:
string|null
Description
Section titled “Description”The type of currency, in ISO 4217 format.
Default
Section titled “Default”USDExample
Section titled “Example”USDnull
get.responses.200.content.application/json.budget_id
Section titled “get.responses.200.content.application/json.budget_id”budget_id:
string
Description
Section titled “Description”Unique ID for the Budget.
get.responses.200.content.application/json.description?
Section titled “get.responses.200.content.application/json.description?”
optionaldescription?:string|null
Description
Section titled “Description”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?”
optionalend_date?:string|null
Format: date
Description
Section titled “Description”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?”
optionallimit_type?:"HARD"|"SOFT"|null
get.responses.200.content.application/json.name
Section titled “get.responses.200.content.application/json.name”name:
string
Description
Section titled “Description”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[]
Description
Section titled “Description”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?”
optionalparent_budget_id?:string|null
Description
Section titled “Description”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?”
optionalstart_date?:string|null
Format: date
Description
Section titled “Description”The date when the Budget should start counting.
get.responses.200.headers
Section titled “get.responses.200.headers”headers:
object
Index Signature
Section titled “Index Signature”[name: string]: unknown
get.responses.400
Section titled “get.responses.400”400:
object
Description
Section titled “Description”Bad request
get.responses.400.content?
Section titled “get.responses.400.content?”
optionalcontent?:undefined
get.responses.400.headers
Section titled “get.responses.400.headers”headers:
object
Index Signature
Section titled “Index Signature”[name: string]: unknown
get.responses.401
Section titled “get.responses.401”401:
object
Description
Section titled “Description”Unauthorized
get.responses.401.content?
Section titled “get.responses.401.content?”
optionalcontent?:undefined
get.responses.401.headers
Section titled “get.responses.401.headers”headers:
object
Index Signature
Section titled “Index Signature”[name: string]: unknown
get.responses.403
Section titled “get.responses.403”403:
object
Description
Section titled “Description”Forbidden
get.responses.403.content?
Section titled “get.responses.403.content?”
optionalcontent?:undefined
get.responses.403.headers
Section titled “get.responses.403.headers”headers:
object
Index Signature
Section titled “Index Signature”[name: string]: unknown
get.responses.404
Section titled “get.responses.404”404:
object
Description
Section titled “Description”Not Found
get.responses.404.content?
Section titled “get.responses.404.content?”
optionalcontent?:undefined
get.responses.404.headers
Section titled “get.responses.404.headers”headers:
object
Index Signature
Section titled “Index Signature”[name: string]: unknown
optionalhead?:undefined
options?
Section titled “options?”
optionaloptions?:undefined
parameters
Section titled “parameters”parameters:
object
parameters.cookie?
Section titled “parameters.cookie?”
optionalcookie?:undefined
parameters.header?
Section titled “parameters.header?”
optionalheader?:undefined
parameters.path?
Section titled “parameters.path?”
optionalpath?:undefined
parameters.query?
Section titled “parameters.query?”
optionalquery?:undefined
patch?
Section titled “patch?”
optionalpatch?:undefined
optionalpost?:undefined
put:
object
Update Budget
Description
Section titled “Description”Updates a Budget
put.parameters
Section titled “put.parameters”parameters:
object
put.parameters.cookie?
Section titled “put.parameters.cookie?”
optionalcookie?:undefined
put.parameters.header
Section titled “put.parameters.header”header:
object
put.parameters.header.Idempotency-Key
Section titled “put.parameters.header.Idempotency-Key”Idempotency-Key:
string
put.parameters.path
Section titled “put.parameters.path”path:
object
put.parameters.path.id
Section titled “put.parameters.path.id”id:
string
put.parameters.query?
Section titled “put.parameters.query?”
optionalquery?:undefined
put.requestBody
Section titled “put.requestBody”requestBody:
object
put.requestBody.content
Section titled “put.requestBody.content”content:
object
put.requestBody.content.application/json
Section titled “put.requestBody.content.application/json”application/json:
object
put.requestBody.content.application/json.amount?
Section titled “put.requestBody.content.application/json.amount?”
optionalamount?: {amount:number;currency:string|null; } |null
Union Members
Section titled “Union Members”Type Literal
Section titled “Type Literal”{ amount: number; currency: string | null; }
amount
Section titled “amount”amount:
number
Format: int64
Description
Section titled “Description”The amount of money, in the smallest denomination of the currency indicated by currency. For example, when currency is USD, amount is in cents.
Example
Section titled “Example”700currency
Section titled “currency”currency:
string|null
Description
Section titled “Description”The type of currency, in ISO 4217 format.
Default
Section titled “Default”USDExample
Section titled “Example”USDnull
put.requestBody.content.application/json.description?
Section titled “put.requestBody.content.application/json.description?”
optionaldescription?:string|null
Description
Section titled “Description”Description of what the Budget is used for.
put.requestBody.content.application/json.end_date?
Section titled “put.requestBody.content.application/json.end_date?”
optionalend_date?:string|null
Format: date
Description
Section titled “Description”The date when the Budget should stop counting.
put.requestBody.content.application/json.limit_type?
Section titled “put.requestBody.content.application/json.limit_type?”
optionallimit_type?:"HARD"|"SOFT"|null
put.requestBody.content.application/json.name?
Section titled “put.requestBody.content.application/json.name?”
optionalname?:string|null
Description
Section titled “Description”Name for the Budget.
put.requestBody.content.application/json.owner_user_ids?
Section titled “put.requestBody.content.application/json.owner_user_ids?”
optionalowner_user_ids?:string[] |null
Description
Section titled “Description”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?”
optionalparent_budget_id?:string|null
Description
Section titled “Description”ID of parent Budget.
put.requestBody.content.application/json.period_recurrence_type?
Section titled “put.requestBody.content.application/json.period_recurrence_type?”
optionalperiod_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?”
optionalstart_date?:string|null
Format: date
Description
Section titled “Description”The date when the Budget should start counting.
put.responses
Section titled “put.responses”responses:
object
put.responses.200
Section titled “put.responses.200”200:
object
Description
Section titled “Description”The Budget that was updated
put.responses.200.content
Section titled “put.responses.200.content”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
Description
Section titled “Description”The Brex account this Budget belongs to.
put.responses.200.content.application/json.amount?
Section titled “put.responses.200.content.application/json.amount?”
optionalamount?: {amount:number;currency:string|null; } |null
Union Members
Section titled “Union Members”Type Literal
Section titled “Type Literal”{ amount: number; currency: string | null; }
amount
Section titled “amount”amount:
number
Format: int64
Description
Section titled “Description”The amount of money, in the smallest denomination of the currency indicated by currency. For example, when currency is USD, amount is in cents.
Example
Section titled “Example”700currency
Section titled “currency”currency:
string|null
Description
Section titled “Description”The type of currency, in ISO 4217 format.
Default
Section titled “Default”USDExample
Section titled “Example”USDnull
put.responses.200.content.application/json.budget_id
Section titled “put.responses.200.content.application/json.budget_id”budget_id:
string
Description
Section titled “Description”Unique ID for the Budget.
put.responses.200.content.application/json.description?
Section titled “put.responses.200.content.application/json.description?”
optionaldescription?:string|null
Description
Section titled “Description”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?”
optionalend_date?:string|null
Format: date
Description
Section titled “Description”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?”
optionallimit_type?:"HARD"|"SOFT"|null
put.responses.200.content.application/json.name
Section titled “put.responses.200.content.application/json.name”name:
string
Description
Section titled “Description”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[]
Description
Section titled “Description”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?”
optionalparent_budget_id?:string|null
Description
Section titled “Description”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?”
optionalstart_date?:string|null
Format: date
Description
Section titled “Description”The date when the Budget should start counting.
put.responses.200.headers
Section titled “put.responses.200.headers”headers:
object
Index Signature
Section titled “Index Signature”[name: string]: unknown
put.responses.400
Section titled “put.responses.400”400:
object
Description
Section titled “Description”Bad request
put.responses.400.content?
Section titled “put.responses.400.content?”
optionalcontent?:undefined
put.responses.400.headers
Section titled “put.responses.400.headers”headers:
object
Index Signature
Section titled “Index Signature”[name: string]: unknown
put.responses.401
Section titled “put.responses.401”401:
object
Description
Section titled “Description”Unauthorized
put.responses.401.content?
Section titled “put.responses.401.content?”
optionalcontent?:undefined
put.responses.401.headers
Section titled “put.responses.401.headers”headers:
object
Index Signature
Section titled “Index Signature”[name: string]: unknown
put.responses.403
Section titled “put.responses.403”403:
object
Description
Section titled “Description”Forbidden
put.responses.403.content?
Section titled “put.responses.403.content?”
optionalcontent?:undefined
put.responses.403.headers
Section titled “put.responses.403.headers”headers:
object
Index Signature
Section titled “Index Signature”[name: string]: unknown
put.responses.404
Section titled “put.responses.404”404:
object
Description
Section titled “Description”Not Found
put.responses.404.content?
Section titled “put.responses.404.content?”
optionalcontent?:undefined
put.responses.404.headers
Section titled “put.responses.404.headers”headers:
object
Index Signature
Section titled “Index Signature”[name: string]: unknown
trace?
Section titled “trace?”
optionaltrace?:undefined
/v2/budgets/{id}/archive
Section titled “/v2/budgets/{id}/archive”/v2/budgets/{id}/archive:
object
Defined in: src/budgets/types.gen.ts:159
delete?
Section titled “delete?”
optionaldelete?:undefined
optionalget?:undefined
optionalhead?:undefined
options?
Section titled “options?”
optionaloptions?:undefined
parameters
Section titled “parameters”parameters:
object
parameters.cookie?
Section titled “parameters.cookie?”
optionalcookie?:undefined
parameters.header?
Section titled “parameters.header?”
optionalheader?:undefined
parameters.path?
Section titled “parameters.path?”
optionalpath?:undefined
parameters.query?
Section titled “parameters.query?”
optionalquery?:undefined
patch?
Section titled “patch?”
optionalpatch?:undefined
post:
object
Archive a Budget
Description
Section titled “Description”Archives a Budget, making any Spend Limits beneath it unusable for future expenses and removing it from the UI
post.parameters
Section titled “post.parameters”parameters:
object
post.parameters.cookie?
Section titled “post.parameters.cookie?”
optionalcookie?:undefined
post.parameters.header?
Section titled “post.parameters.header?”
optionalheader?:undefined
post.parameters.path
Section titled “post.parameters.path”path:
object
post.parameters.path.id
Section titled “post.parameters.path.id”id:
string
post.parameters.query?
Section titled “post.parameters.query?”
optionalquery?:undefined
post.requestBody?
Section titled “post.requestBody?”
optionalrequestBody?:undefined
post.responses
Section titled “post.responses”responses:
object
post.responses.200
Section titled “post.responses.200”200:
object
Description
Section titled “Description”The Budget that was archived
post.responses.200.content?
Section titled “post.responses.200.content?”
optionalcontent?:undefined
post.responses.200.headers
Section titled “post.responses.200.headers”headers:
object
Index Signature
Section titled “Index Signature”[name: string]: unknown
post.responses.400
Section titled “post.responses.400”400:
object
Description
Section titled “Description”Bad request
post.responses.400.content?
Section titled “post.responses.400.content?”
optionalcontent?:undefined
post.responses.400.headers
Section titled “post.responses.400.headers”headers:
object
Index Signature
Section titled “Index Signature”[name: string]: unknown
post.responses.401
Section titled “post.responses.401”401:
object
Description
Section titled “Description”Unauthorized
post.responses.401.content?
Section titled “post.responses.401.content?”
optionalcontent?:undefined
post.responses.401.headers
Section titled “post.responses.401.headers”headers:
object
Index Signature
Section titled “Index Signature”[name: string]: unknown
post.responses.403
Section titled “post.responses.403”403:
object
Description
Section titled “Description”Forbidden
post.responses.403.content?
Section titled “post.responses.403.content?”
optionalcontent?:undefined
post.responses.403.headers
Section titled “post.responses.403.headers”headers:
object
Index Signature
Section titled “Index Signature”[name: string]: unknown
post.responses.404
Section titled “post.responses.404”404:
object
Description
Section titled “Description”Not Found
post.responses.404.content?
Section titled “post.responses.404.content?”
optionalcontent?:undefined
post.responses.404.headers
Section titled “post.responses.404.headers”headers:
object
Index Signature
Section titled “Index Signature”[name: string]: unknown
optionalput?:undefined
trace?
Section titled “trace?”
optionaltrace?:undefined
/v2/spend_limits
Section titled “/v2/spend_limits”/v2/spend_limits:
object
Defined in: src/budgets/types.gen.ts:179
delete?
Section titled “delete?”
optionaldelete?:undefined
get:
object
List Spend Limits
Description
Section titled “Description”Retrieves a list of Spend Limits
get.parameters
Section titled “get.parameters”parameters:
object
get.parameters.cookie?
Section titled “get.parameters.cookie?”
optionalcookie?:undefined
get.parameters.header?
Section titled “get.parameters.header?”
optionalheader?:undefined
get.parameters.path?
Section titled “get.parameters.path?”
optionalpath?:undefined
get.parameters.query?
Section titled “get.parameters.query?”
optionalquery?:object
get.parameters.query.cursor?
Section titled “get.parameters.query.cursor?”
optionalcursor?:string|null
get.parameters.query.limit?
Section titled “get.parameters.query.limit?”
optionallimit?:number|null
get.parameters.query.member_user_id[]?
Section titled “get.parameters.query.member_user_id[]?”
optionalmember_user_id[]?:string[] |null
get.requestBody?
Section titled “get.requestBody?”
optionalrequestBody?:undefined
get.responses
Section titled “get.responses”responses:
object
get.responses.200
Section titled “get.responses.200”200:
object
Description
Section titled “Description”A page with a list of Spend Limits
get.responses.200.content
Section titled “get.responses.200.content”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?”
optionalnext_cursor?:string|null
get.responses.200.headers
Section titled “get.responses.200.headers”headers:
object
Index Signature
Section titled “Index Signature”[name: string]: unknown
get.responses.400
Section titled “get.responses.400”400:
object
Description
Section titled “Description”Bad request
get.responses.400.content?
Section titled “get.responses.400.content?”
optionalcontent?:undefined
get.responses.400.headers
Section titled “get.responses.400.headers”headers:
object
Index Signature
Section titled “Index Signature”[name: string]: unknown
get.responses.401
Section titled “get.responses.401”401:
object
Description
Section titled “Description”Unauthorized
get.responses.401.content?
Section titled “get.responses.401.content?”
optionalcontent?:undefined
get.responses.401.headers
Section titled “get.responses.401.headers”headers:
object
Index Signature
Section titled “Index Signature”[name: string]: unknown
get.responses.403
Section titled “get.responses.403”403:
object
Description
Section titled “Description”Forbidden
get.responses.403.content?
Section titled “get.responses.403.content?”
optionalcontent?:undefined
get.responses.403.headers
Section titled “get.responses.403.headers”headers:
object
Index Signature
Section titled “Index Signature”[name: string]: unknown
get.responses.404
Section titled “get.responses.404”404:
object
Description
Section titled “Description”Not Found
get.responses.404.content?
Section titled “get.responses.404.content?”
optionalcontent?:undefined
get.responses.404.headers
Section titled “get.responses.404.headers”headers:
object
Index Signature
Section titled “Index Signature”[name: string]: unknown
optionalhead?:undefined
options?
Section titled “options?”
optionaloptions?:undefined
parameters
Section titled “parameters”parameters:
object
parameters.cookie?
Section titled “parameters.cookie?”
optionalcookie?:undefined
parameters.header?
Section titled “parameters.header?”
optionalheader?:undefined
parameters.path?
Section titled “parameters.path?”
optionalpath?:undefined
parameters.query?
Section titled “parameters.query?”
optionalquery?:undefined
patch?
Section titled “patch?”
optionalpatch?:undefined
post:
object
Create Spend Limit
Description
Section titled “Description”Creates a Spend Limit
post.parameters
Section titled “post.parameters”parameters:
object
post.parameters.cookie?
Section titled “post.parameters.cookie?”
optionalcookie?:undefined
post.parameters.header
Section titled “post.parameters.header”header:
object
post.parameters.header.Idempotency-Key
Section titled “post.parameters.header.Idempotency-Key”Idempotency-Key:
string
post.parameters.path?
Section titled “post.parameters.path?”
optionalpath?:undefined
post.parameters.query?
Section titled “post.parameters.query?”
optionalquery?:undefined
post.requestBody
Section titled “post.requestBody”requestBody:
object
post.requestBody.content
Section titled “post.requestBody.content”content:
object
post.requestBody.content.application/json
Section titled “post.requestBody.content.application/json”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
Description
Section titled “Description”The amount of money, in the smallest denomination of the currency indicated by currency. For example, when currency is USD, amount is in cents.
Example
Section titled “Example”700post.requestBody.content.application/json.authorization_settings.base_limit.currency
Section titled “post.requestBody.content.application/json.authorization_settings.base_limit.currency”currency:
string|null
Description
Section titled “Description”The type of currency, in ISO 4217 format.
Default
Section titled “Default”USDExample
Section titled “Example”USDpost.requestBody.content.application/json.authorization_settings.limit_buffer_percentage?
Section titled “post.requestBody.content.application/json.authorization_settings.limit_buffer_percentage?”
optionallimit_buffer_percentage?:number|null
Format: int32
Description
Section titled “Description”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?”
optionaldepartment_id?:string|null
Description
Section titled “Description”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?”
optionaldescription?:string|null
Description
Section titled “Description”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?”
optionalend_date?:string|null
Format: date
Description
Section titled “Description”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
Description
Section titled “Description”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?”
optionallegal_entity_id?:string|null
Description
Section titled “Description”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?”
optionallimit_approval_policy_id?:string|null
Description
Section titled “Description”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?”
optionallimit_increase_request_policy_id?:string|null
Description
Section titled “Description”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?”
optionalmember_user_ids?:string[] |null
Description
Section titled “Description”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
Description
Section titled “Description”Name for the Spend Limit.
post.requestBody.content.application/json.owner_user_ids?
Section titled “post.requestBody.content.application/json.owner_user_ids?”
optionalowner_user_ids?:string[] |null
Description
Section titled “Description”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?”
optionalparent_budget_id?:string|null
Description
Section titled “Description”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?”
optionalstart_date?:string|null
Format: date
Description
Section titled “Description”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?”
optionaltransaction_limit?: {amount:number;currency:string|null; } |null
Union Members
Section titled “Union Members”Type Literal
Section titled “Type Literal”{ amount: number; currency: string | null; }
amount
Section titled “amount”amount:
number
Format: int64
Description
Section titled “Description”The amount of money, in the smallest denomination of the currency indicated by currency. For example, when currency is USD, amount is in cents.
Example
Section titled “Example”700currency
Section titled “currency”currency:
string|null
Description
Section titled “Description”The type of currency, in ISO 4217 format.
Default
Section titled “Default”USDExample
Section titled “Example”USDnull
post.responses
Section titled “post.responses”responses:
object
post.responses.200
Section titled “post.responses.200”200:
object
Description
Section titled “Description”The Spend Limit that was created
post.responses.200.content
Section titled “post.responses.200.content”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
Description
Section titled “Description”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?”
optionalauthorization_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
Union Members
Section titled “Union Members”Type Literal
Section titled “Type Literal”{ 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
Section titled “authorization_type”authorization_type:
"HARD"|"SOFT"
base_limit
Section titled “base_limit”base_limit:
object
base_limit.amount
Section titled “base_limit.amount”amount:
number
Format: int64
Description
Section titled “Description”The amount of money, in the smallest denomination of the currency indicated by currency. For example, when currency is USD, amount is in cents.
Example
Section titled “Example”700base_limit.currency
Section titled “base_limit.currency”currency:
string|null
Description
Section titled “Description”The type of currency, in ISO 4217 format.
Default
Section titled “Default”USDExample
Section titled “Example”USDlimit_buffer_percentage?
Section titled “limit_buffer_percentage?”
optionallimit_buffer_percentage?:number|null
Format: int32
Description
Section titled “Description”The percentage of flexible buffer on the limit as a 0-100 integer.
limit_with_increases
Section titled “limit_with_increases”limit_with_increases:
object
limit_with_increases.amount
Section titled “limit_with_increases.amount”amount:
number
Format: int64
Description
Section titled “Description”The amount of money, in the smallest denomination of the currency indicated by currency. For example, when currency is USD, amount is in cents.
Example
Section titled “Example”700limit_with_increases.currency
Section titled “limit_with_increases.currency”currency:
string|null
Description
Section titled “Description”The type of currency, in ISO 4217 format.
Default
Section titled “Default”USDExample
Section titled “Example”USDrollover_refresh_rate
Section titled “rollover_refresh_rate”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?”
optionalcurrent_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
Union Members
Section titled “Union Members”Type Literal
Section titled “Type Literal”{ 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; }
amount_spent?
Section titled “amount_spent?”
optionalamount_spent?: {amount:number;currency: … | …; } |null
Union Members
Section titled “Union Members”Type Literal
Section titled “Type Literal”{ amount: number; currency: … | …; }
amount
Section titled “amount”amount:
number
Format: int64
Description
Section titled “Description”The amount of money, in the smallest denomination of the currency indicated by currency. For example, when currency is USD, amount is in cents.
Example
Section titled “Example”700currency
Section titled “currency”currency: … | …
Description
Section titled “Description”The type of currency, in ISO 4217 format.
Default
Section titled “Default”USDExample
Section titled “Example”USDnull
end_date?
Section titled “end_date?”
optionalend_date?:string|null
Format: date
end_time?
Section titled “end_time?”
optionalend_time?:string|null
Format: date-time
rollover_amount?
Section titled “rollover_amount?”
optionalrollover_amount?: {amount:number;currency: … | …; } |null
Union Members
Section titled “Union Members”Type Literal
Section titled “Type Literal”{ amount: number; currency: … | …; }
amount
Section titled “amount”amount:
number
Format: int64
Description
Section titled “Description”The amount of money, in the smallest denomination of the currency indicated by currency. For example, when currency is USD, amount is in cents.
Example
Section titled “Example”700currency
Section titled “currency”currency: … | …
Description
Section titled “Description”The type of currency, in ISO 4217 format.
Default
Section titled “Default”USDExample
Section titled “Example”USDnull
start_date?
Section titled “start_date?”
optionalstart_date?:string|null
Format: date
start_time?
Section titled “start_time?”
optionalstart_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?”
optionaldepartment_id?:string|null
Description
Section titled “Description”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?”
optionaldescription?:string|null
Description
Section titled “Description”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?”
optionalend_date?:string|null
Format: date
Description
Section titled “Description”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?”
optionalend_time_utc?:string|null
Format: date-time
Description
Section titled “Description”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
Description
Section titled “Description”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
Description
Section titled “Description”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?”
optionallegal_entity_id?:string|null
Description
Section titled “Description”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?”
optionallimit_approval_policy_id?:string|null
Description
Section titled “Description”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?”
optionallimit_increase_request_policy_id?:string|null
Description
Section titled “Description”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[]
Description
Section titled “Description”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?”
optionalmerchant_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
Description
Section titled “Description”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[]
Description
Section titled “Description”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?”
optionalparent_budget_id?:string|null
Description
Section titled “Description”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?”
optionalstart_date?:string|null
Format: date
Description
Section titled “Description”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?”
optionalstart_time_utc?:string|null
Format: date-time
Description
Section titled “Description”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?”
optionaltransaction_limit?: {amount:number;currency:string|null; } |null
Union Members
Section titled “Union Members”Type Literal
Section titled “Type Literal”{ amount: number; currency: string | null; }
amount
Section titled “amount”amount:
number
Format: int64
Description
Section titled “Description”The amount of money, in the smallest denomination of the currency indicated by currency. For example, when currency is USD, amount is in cents.
Example
Section titled “Example”700currency
Section titled “currency”currency:
string|null
Description
Section titled “Description”The type of currency, in ISO 4217 format.
Default
Section titled “Default”USDExample
Section titled “Example”USDnull
post.responses.200.headers
Section titled “post.responses.200.headers”headers:
object
Index Signature
Section titled “Index Signature”[name: string]: unknown
post.responses.400
Section titled “post.responses.400”400:
object
Description
Section titled “Description”Bad request
post.responses.400.content?
Section titled “post.responses.400.content?”
optionalcontent?:undefined
post.responses.400.headers
Section titled “post.responses.400.headers”headers:
object
Index Signature
Section titled “Index Signature”[name: string]: unknown
post.responses.401
Section titled “post.responses.401”401:
object
Description
Section titled “Description”Unauthorized
post.responses.401.content?
Section titled “post.responses.401.content?”
optionalcontent?:undefined
post.responses.401.headers
Section titled “post.responses.401.headers”headers:
object
Index Signature
Section titled “Index Signature”[name: string]: unknown
post.responses.403
Section titled “post.responses.403”403:
object
Description
Section titled “Description”Forbidden
post.responses.403.content?
Section titled “post.responses.403.content?”
optionalcontent?:undefined
post.responses.403.headers
Section titled “post.responses.403.headers”headers:
object
Index Signature
Section titled “Index Signature”[name: string]: unknown
optionalput?:undefined
trace?
Section titled “trace?”
optionaltrace?:undefined
/v2/spend_limits/{id}
Section titled “/v2/spend_limits/{id}”/v2/spend_limits/{id}:
object
Defined in: src/budgets/types.gen.ts:203
delete?
Section titled “delete?”
optionaldelete?:undefined
get:
object
Get Spend Limit
Description
Section titled “Description”Retrieves a Spend Limit by ID
get.parameters
Section titled “get.parameters”parameters:
object
get.parameters.cookie?
Section titled “get.parameters.cookie?”
optionalcookie?:undefined
get.parameters.header?
Section titled “get.parameters.header?”
optionalheader?:undefined
get.parameters.path
Section titled “get.parameters.path”path:
object
get.parameters.path.id
Section titled “get.parameters.path.id”id:
string
get.parameters.query?
Section titled “get.parameters.query?”
optionalquery?:undefined
get.requestBody?
Section titled “get.requestBody?”
optionalrequestBody?:undefined
get.responses
Section titled “get.responses”responses:
object
get.responses.200
Section titled “get.responses.200”200:
object
Description
Section titled “Description”The Spend Limit that was retrieved
get.responses.200.content
Section titled “get.responses.200.content”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
Description
Section titled “Description”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?”
optionalauthorization_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
Union Members
Section titled “Union Members”Type Literal
Section titled “Type Literal”{ 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
Section titled “authorization_type”authorization_type:
"HARD"|"SOFT"
base_limit
Section titled “base_limit”base_limit:
object
base_limit.amount
Section titled “base_limit.amount”amount:
number
Format: int64
Description
Section titled “Description”The amount of money, in the smallest denomination of the currency indicated by currency. For example, when currency is USD, amount is in cents.
Example
Section titled “Example”700base_limit.currency
Section titled “base_limit.currency”currency:
string|null
Description
Section titled “Description”The type of currency, in ISO 4217 format.
Default
Section titled “Default”USDExample
Section titled “Example”USDlimit_buffer_percentage?
Section titled “limit_buffer_percentage?”
optionallimit_buffer_percentage?:number|null
Format: int32
Description
Section titled “Description”The percentage of flexible buffer on the limit as a 0-100 integer.
limit_with_increases
Section titled “limit_with_increases”limit_with_increases:
object
limit_with_increases.amount
Section titled “limit_with_increases.amount”amount:
number
Format: int64
Description
Section titled “Description”The amount of money, in the smallest denomination of the currency indicated by currency. For example, when currency is USD, amount is in cents.
Example
Section titled “Example”700limit_with_increases.currency
Section titled “limit_with_increases.currency”currency:
string|null
Description
Section titled “Description”The type of currency, in ISO 4217 format.
Default
Section titled “Default”USDExample
Section titled “Example”USDrollover_refresh_rate
Section titled “rollover_refresh_rate”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?”
optionalcurrent_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
Union Members
Section titled “Union Members”Type Literal
Section titled “Type Literal”{ 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; }
amount_spent?
Section titled “amount_spent?”
optionalamount_spent?: {amount:number;currency: … | …; } |null
Union Members
Section titled “Union Members”Type Literal
Section titled “Type Literal”{ amount: number; currency: … | …; }
amount
Section titled “amount”amount:
number
Format: int64
Description
Section titled “Description”The amount of money, in the smallest denomination of the currency indicated by currency. For example, when currency is USD, amount is in cents.
Example
Section titled “Example”700currency
Section titled “currency”currency: … | …
Description
Section titled “Description”The type of currency, in ISO 4217 format.
Default
Section titled “Default”USDExample
Section titled “Example”USDnull
end_date?
Section titled “end_date?”
optionalend_date?:string|null
Format: date
end_time?
Section titled “end_time?”
optionalend_time?:string|null
Format: date-time
rollover_amount?
Section titled “rollover_amount?”
optionalrollover_amount?: {amount:number;currency: … | …; } |null
Union Members
Section titled “Union Members”Type Literal
Section titled “Type Literal”{ amount: number; currency: … | …; }
amount
Section titled “amount”amount:
number
Format: int64
Description
Section titled “Description”The amount of money, in the smallest denomination of the currency indicated by currency. For example, when currency is USD, amount is in cents.
Example
Section titled “Example”700currency
Section titled “currency”currency: … | …
Description
Section titled “Description”The type of currency, in ISO 4217 format.
Default
Section titled “Default”USDExample
Section titled “Example”USDnull
start_date?
Section titled “start_date?”
optionalstart_date?:string|null
Format: date
start_time?
Section titled “start_time?”
optionalstart_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?”
optionaldepartment_id?:string|null
Description
Section titled “Description”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?”
optionaldescription?:string|null
Description
Section titled “Description”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?”
optionalend_date?:string|null
Format: date
Description
Section titled “Description”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?”
optionalend_time_utc?:string|null
Format: date-time
Description
Section titled “Description”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
Description
Section titled “Description”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
Description
Section titled “Description”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?”
optionallegal_entity_id?:string|null
Description
Section titled “Description”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?”
optionallimit_approval_policy_id?:string|null
Description
Section titled “Description”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?”
optionallimit_increase_request_policy_id?:string|null
Description
Section titled “Description”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[]
Description
Section titled “Description”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?”
optionalmerchant_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
Description
Section titled “Description”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[]
Description
Section titled “Description”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?”
optionalparent_budget_id?:string|null
Description
Section titled “Description”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?”
optionalstart_date?:string|null
Format: date
Description
Section titled “Description”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?”
optionalstart_time_utc?:string|null
Format: date-time
Description
Section titled “Description”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?”
optionaltransaction_limit?: {amount:number;currency:string|null; } |null
Union Members
Section titled “Union Members”Type Literal
Section titled “Type Literal”{ amount: number; currency: string | null; }
amount
Section titled “amount”amount:
number
Format: int64
Description
Section titled “Description”The amount of money, in the smallest denomination of the currency indicated by currency. For example, when currency is USD, amount is in cents.
Example
Section titled “Example”700currency
Section titled “currency”currency:
string|null
Description
Section titled “Description”The type of currency, in ISO 4217 format.
Default
Section titled “Default”USDExample
Section titled “Example”USDnull
get.responses.200.headers
Section titled “get.responses.200.headers”headers:
object
Index Signature
Section titled “Index Signature”[name: string]: unknown
get.responses.400
Section titled “get.responses.400”400:
object
Description
Section titled “Description”Bad request
get.responses.400.content?
Section titled “get.responses.400.content?”
optionalcontent?:undefined
get.responses.400.headers
Section titled “get.responses.400.headers”headers:
object
Index Signature
Section titled “Index Signature”[name: string]: unknown
get.responses.401
Section titled “get.responses.401”401:
object
Description
Section titled “Description”Unauthorized
get.responses.401.content?
Section titled “get.responses.401.content?”
optionalcontent?:undefined
get.responses.401.headers
Section titled “get.responses.401.headers”headers:
object
Index Signature
Section titled “Index Signature”[name: string]: unknown
get.responses.403
Section titled “get.responses.403”403:
object
Description
Section titled “Description”Forbidden
get.responses.403.content?
Section titled “get.responses.403.content?”
optionalcontent?:undefined
get.responses.403.headers
Section titled “get.responses.403.headers”headers:
object
Index Signature
Section titled “Index Signature”[name: string]: unknown
get.responses.404
Section titled “get.responses.404”404:
object
Description
Section titled “Description”Not Found
get.responses.404.content?
Section titled “get.responses.404.content?”
optionalcontent?:undefined
get.responses.404.headers
Section titled “get.responses.404.headers”headers:
object
Index Signature
Section titled “Index Signature”[name: string]: unknown
optionalhead?:undefined
options?
Section titled “options?”
optionaloptions?:undefined
parameters
Section titled “parameters”parameters:
object
parameters.cookie?
Section titled “parameters.cookie?”
optionalcookie?:undefined
parameters.header?
Section titled “parameters.header?”
optionalheader?:undefined
parameters.path?
Section titled “parameters.path?”
optionalpath?:undefined
parameters.query?
Section titled “parameters.query?”
optionalquery?:undefined
patch?
Section titled “patch?”
optionalpatch?:undefined
optionalpost?:undefined
put:
object
Update Spend Limit
Description
Section titled “Description”Updates a Spend Limit
put.parameters
Section titled “put.parameters”parameters:
object
put.parameters.cookie?
Section titled “put.parameters.cookie?”
optionalcookie?:undefined
put.parameters.header
Section titled “put.parameters.header”header:
object
put.parameters.header.Idempotency-Key
Section titled “put.parameters.header.Idempotency-Key”Idempotency-Key:
string
put.parameters.path
Section titled “put.parameters.path”path:
object
put.parameters.path.id
Section titled “put.parameters.path.id”id:
string
put.parameters.query?
Section titled “put.parameters.query?”
optionalquery?:undefined
put.requestBody
Section titled “put.requestBody”requestBody:
object
put.requestBody.content
Section titled “put.requestBody.content”content:
object
put.requestBody.content.application/json
Section titled “put.requestBody.content.application/json”application/json:
object
put.requestBody.content.application/json.authorization_settings?
Section titled “put.requestBody.content.application/json.authorization_settings?”
optionalauthorization_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
Union Members
Section titled “Union Members”Type Literal
Section titled “Type Literal”{ 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; }
authorization_type?
Section titled “authorization_type?”
optionalauthorization_type?:"HARD"|"SOFT"|null
base_limit?
Section titled “base_limit?”
optionalbase_limit?: {amount:number;currency:string|null; } |null
Union Members
Section titled “Union Members”Type Literal
Section titled “Type Literal”{ amount: number; currency: string | null; }
amount
Section titled “amount”amount:
number
Format: int64
Description
Section titled “Description”The amount of money, in the smallest denomination of the currency indicated by currency. For example, when currency is USD, amount is in cents.
Example
Section titled “Example”700currency
Section titled “currency”currency:
string|null
Description
Section titled “Description”The type of currency, in ISO 4217 format.
Default
Section titled “Default”USDExample
Section titled “Example”USDnull
limit_buffer_percentage?
Section titled “limit_buffer_percentage?”
optionallimit_buffer_percentage?:number|null
Format: int32
Description
Section titled “Description”The percentage of flexible buffer on the limit as a 0-100 integer.
rollover_refresh_rate?
Section titled “rollover_refresh_rate?”
optionalrollover_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?”
optionalauthorization_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?”
optionalauto_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?”
optionalauto_transfer_cards_setting?:"DISABLED"|"ENABLED"|null
put.requestBody.content.application/json.department_id?
Section titled “put.requestBody.content.application/json.department_id?”
optionaldepartment_id?:string|null
Description
Section titled “Description”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?”
optionaldescription?:string|null
Description
Section titled “Description”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?”
optionalend_date?:string|null
Format: date
Description
Section titled “Description”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?”
optionalexpense_policy_id?:string|null
Description
Section titled “Description”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?”
optionalexpense_visibility?:"PRIVATE"|"SHARED"|null
put.requestBody.content.application/json.legal_entity_id?
Section titled “put.requestBody.content.application/json.legal_entity_id?”
optionallegal_entity_id?:string|null
Description
Section titled “Description”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?”
optionallimit_approval_policy_id?:string|null
Description
Section titled “Description”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?”
optionallimit_increase_request_policy_id?:string|null
Description
Section titled “Description”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?”
optionallimit_increase_setting?:"DISABLED"|"ENABLED"|null
put.requestBody.content.application/json.member_user_ids?
Section titled “put.requestBody.content.application/json.member_user_ids?”
optionalmember_user_ids?:string[] |null
Description
Section titled “Description”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?”
optionalmerchant_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?”
optionalname?:string|null
Description
Section titled “Description”Name for the Spend Limit.
put.requestBody.content.application/json.owner_user_ids?
Section titled “put.requestBody.content.application/json.owner_user_ids?”
optionalowner_user_ids?:string[] |null
Description
Section titled “Description”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?”
optionalperiod_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?”
optionalset_end_date_null?:boolean|null
Description
Section titled “Description”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?”
optionalset_start_date_null?:boolean|null
Description
Section titled “Description”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?”
optionalset_transaction_limit_null?:boolean|null
Description
Section titled “Description”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?”
optionalspend_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?”
optionalstart_date?:string|null
Format: date
Description
Section titled “Description”The date when the Spend Limit should start counting.
put.requestBody.content.application/json.status?
Section titled “put.requestBody.content.application/json.status?”
optionalstatus?:"ACTIVE"|"ARCHIVED"|"DELETED"|"EXPIRED"|null
put.requestBody.content.application/json.transaction_limit?
Section titled “put.requestBody.content.application/json.transaction_limit?”
optionaltransaction_limit?: {amount:number;currency:string|null; } |null
Union Members
Section titled “Union Members”Type Literal
Section titled “Type Literal”{ amount: number; currency: string | null; }
amount
Section titled “amount”amount:
number
Format: int64
Description
Section titled “Description”The amount of money, in the smallest denomination of the currency indicated by currency. For example, when currency is USD, amount is in cents.
Example
Section titled “Example”700currency
Section titled “currency”currency:
string|null
Description
Section titled “Description”The type of currency, in ISO 4217 format.
Default
Section titled “Default”USDExample
Section titled “Example”USDnull
put.responses
Section titled “put.responses”responses:
object
put.responses.200
Section titled “put.responses.200”200:
object
Description
Section titled “Description”The Spend Limit that was updated
put.responses.200.content
Section titled “put.responses.200.content”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
Description
Section titled “Description”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?”
optionalauthorization_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
Union Members
Section titled “Union Members”Type Literal
Section titled “Type Literal”{ 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
Section titled “authorization_type”authorization_type:
"HARD"|"SOFT"
base_limit
Section titled “base_limit”base_limit:
object
base_limit.amount
Section titled “base_limit.amount”amount:
number
Format: int64
Description
Section titled “Description”The amount of money, in the smallest denomination of the currency indicated by currency. For example, when currency is USD, amount is in cents.
Example
Section titled “Example”700base_limit.currency
Section titled “base_limit.currency”currency:
string|null
Description
Section titled “Description”The type of currency, in ISO 4217 format.
Default
Section titled “Default”USDExample
Section titled “Example”USDlimit_buffer_percentage?
Section titled “limit_buffer_percentage?”
optionallimit_buffer_percentage?:number|null
Format: int32
Description
Section titled “Description”The percentage of flexible buffer on the limit as a 0-100 integer.
limit_with_increases
Section titled “limit_with_increases”limit_with_increases:
object
limit_with_increases.amount
Section titled “limit_with_increases.amount”amount:
number
Format: int64
Description
Section titled “Description”The amount of money, in the smallest denomination of the currency indicated by currency. For example, when currency is USD, amount is in cents.
Example
Section titled “Example”700limit_with_increases.currency
Section titled “limit_with_increases.currency”currency:
string|null
Description
Section titled “Description”The type of currency, in ISO 4217 format.
Default
Section titled “Default”USDExample
Section titled “Example”USDrollover_refresh_rate
Section titled “rollover_refresh_rate”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?”
optionalcurrent_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
Union Members
Section titled “Union Members”Type Literal
Section titled “Type Literal”{ 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; }
amount_spent?
Section titled “amount_spent?”
optionalamount_spent?: {amount:number;currency: … | …; } |null
Union Members
Section titled “Union Members”Type Literal
Section titled “Type Literal”{ amount: number; currency: … | …; }
amount
Section titled “amount”amount:
number
Format: int64
Description
Section titled “Description”The amount of money, in the smallest denomination of the currency indicated by currency. For example, when currency is USD, amount is in cents.
Example
Section titled “Example”700currency
Section titled “currency”currency: … | …
Description
Section titled “Description”The type of currency, in ISO 4217 format.
Default
Section titled “Default”USDExample
Section titled “Example”USDnull
end_date?
Section titled “end_date?”
optionalend_date?:string|null
Format: date
end_time?
Section titled “end_time?”
optionalend_time?:string|null
Format: date-time
rollover_amount?
Section titled “rollover_amount?”
optionalrollover_amount?: {amount:number;currency: … | …; } |null
Union Members
Section titled “Union Members”Type Literal
Section titled “Type Literal”{ amount: number; currency: … | …; }
amount
Section titled “amount”amount:
number
Format: int64
Description
Section titled “Description”The amount of money, in the smallest denomination of the currency indicated by currency. For example, when currency is USD, amount is in cents.
Example
Section titled “Example”700currency
Section titled “currency”currency: … | …
Description
Section titled “Description”The type of currency, in ISO 4217 format.
Default
Section titled “Default”USDExample
Section titled “Example”USDnull
start_date?
Section titled “start_date?”
optionalstart_date?:string|null
Format: date
start_time?
Section titled “start_time?”
optionalstart_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?”
optionaldepartment_id?:string|null
Description
Section titled “Description”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?”
optionaldescription?:string|null
Description
Section titled “Description”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?”
optionalend_date?:string|null
Format: date
Description
Section titled “Description”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?”
optionalend_time_utc?:string|null
Format: date-time
Description
Section titled “Description”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
Description
Section titled “Description”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
Description
Section titled “Description”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?”
optionallegal_entity_id?:string|null
Description
Section titled “Description”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?”
optionallimit_approval_policy_id?:string|null
Description
Section titled “Description”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?”
optionallimit_increase_request_policy_id?:string|null
Description
Section titled “Description”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[]
Description
Section titled “Description”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?”
optionalmerchant_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
Description
Section titled “Description”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[]
Description
Section titled “Description”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?”
optionalparent_budget_id?:string|null
Description
Section titled “Description”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?”
optionalstart_date?:string|null
Format: date
Description
Section titled “Description”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?”
optionalstart_time_utc?:string|null
Format: date-time
Description
Section titled “Description”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?”
optionaltransaction_limit?: {amount:number;currency:string|null; } |null
Union Members
Section titled “Union Members”Type Literal
Section titled “Type Literal”{ amount: number; currency: string | null; }
amount
Section titled “amount”amount:
number
Format: int64
Description
Section titled “Description”The amount of money, in the smallest denomination of the currency indicated by currency. For example, when currency is USD, amount is in cents.
Example
Section titled “Example”700currency
Section titled “currency”currency:
string|null
Description
Section titled “Description”The type of currency, in ISO 4217 format.
Default
Section titled “Default”USDExample
Section titled “Example”USDnull
put.responses.200.headers
Section titled “put.responses.200.headers”headers:
object
Index Signature
Section titled “Index Signature”[name: string]: unknown
put.responses.400
Section titled “put.responses.400”400:
object
Description
Section titled “Description”Bad request
put.responses.400.content?
Section titled “put.responses.400.content?”
optionalcontent?:undefined
put.responses.400.headers
Section titled “put.responses.400.headers”headers:
object
Index Signature
Section titled “Index Signature”[name: string]: unknown
put.responses.401
Section titled “put.responses.401”401:
object
Description
Section titled “Description”Unauthorized
put.responses.401.content?
Section titled “put.responses.401.content?”
optionalcontent?:undefined
put.responses.401.headers
Section titled “put.responses.401.headers”headers:
object
Index Signature
Section titled “Index Signature”[name: string]: unknown
put.responses.403
Section titled “put.responses.403”403:
object
Description
Section titled “Description”Forbidden
put.responses.403.content?
Section titled “put.responses.403.content?”
optionalcontent?:undefined
put.responses.403.headers
Section titled “put.responses.403.headers”headers:
object
Index Signature
Section titled “Index Signature”[name: string]: unknown
put.responses.404
Section titled “put.responses.404”404:
object
Description
Section titled “Description”Not Found
put.responses.404.content?
Section titled “put.responses.404.content?”
optionalcontent?:undefined
put.responses.404.headers
Section titled “put.responses.404.headers”headers:
object
Index Signature
Section titled “Index Signature”[name: string]: unknown
trace?
Section titled “trace?”
optionaltrace?:undefined
/v2/spend_limits/{id}/archive
Section titled “/v2/spend_limits/{id}/archive”/v2/spend_limits/{id}/archive:
object
Defined in: src/budgets/types.gen.ts:227
delete?
Section titled “delete?”
optionaldelete?:undefined
optionalget?:undefined
optionalhead?:undefined
options?
Section titled “options?”
optionaloptions?:undefined
parameters
Section titled “parameters”parameters:
object
parameters.cookie?
Section titled “parameters.cookie?”
optionalcookie?:undefined
parameters.header?
Section titled “parameters.header?”
optionalheader?:undefined
parameters.path?
Section titled “parameters.path?”
optionalpath?:undefined
parameters.query?
Section titled “parameters.query?”
optionalquery?:undefined
patch?
Section titled “patch?”
optionalpatch?:undefined
post:
object
Archive a Spend Limit
Description
Section titled “Description”Archives a Spend Limit, making it unusable for future expenses and removing it from the UI
post.parameters
Section titled “post.parameters”parameters:
object
post.parameters.cookie?
Section titled “post.parameters.cookie?”
optionalcookie?:undefined
post.parameters.header?
Section titled “post.parameters.header?”
optionalheader?:undefined
post.parameters.path
Section titled “post.parameters.path”path:
object
post.parameters.path.id
Section titled “post.parameters.path.id”id:
string
post.parameters.query?
Section titled “post.parameters.query?”
optionalquery?:undefined
post.requestBody?
Section titled “post.requestBody?”
optionalrequestBody?:undefined
post.responses
Section titled “post.responses”responses:
object
post.responses.200
Section titled “post.responses.200”200:
object
Description
Section titled “Description”The Spend Limit that was archived
post.responses.200.content?
Section titled “post.responses.200.content?”
optionalcontent?:undefined
post.responses.200.headers
Section titled “post.responses.200.headers”headers:
object
Index Signature
Section titled “Index Signature”[name: string]: unknown
post.responses.400
Section titled “post.responses.400”400:
object
Description
Section titled “Description”Bad request
post.responses.400.content?
Section titled “post.responses.400.content?”
optionalcontent?:undefined
post.responses.400.headers
Section titled “post.responses.400.headers”headers:
object
Index Signature
Section titled “Index Signature”[name: string]: unknown
post.responses.401
Section titled “post.responses.401”401:
object
Description
Section titled “Description”Unauthorized
post.responses.401.content?
Section titled “post.responses.401.content?”
optionalcontent?:undefined
post.responses.401.headers
Section titled “post.responses.401.headers”headers:
object
Index Signature
Section titled “Index Signature”[name: string]: unknown
post.responses.403
Section titled “post.responses.403”403:
object
Description
Section titled “Description”Forbidden
post.responses.403.content?
Section titled “post.responses.403.content?”
optionalcontent?:undefined
post.responses.403.headers
Section titled “post.responses.403.headers”headers:
object
Index Signature
Section titled “Index Signature”[name: string]: unknown
post.responses.404
Section titled “post.responses.404”404:
object
Description
Section titled “Description”Not Found
post.responses.404.content?
Section titled “post.responses.404.content?”
optionalcontent?:undefined
post.responses.404.headers
Section titled “post.responses.404.headers”headers:
object
Index Signature
Section titled “Index Signature”[name: string]: unknown
optionalput?:undefined
trace?
Section titled “trace?”
optionaltrace?:undefined