Skip to content

TeamComponents

Defined in: src/team/types.gen.ts:449

headers: never

Defined in: src/team/types.gen.ts:890


parameters: never

Defined in: src/team/types.gen.ts:888


pathItems: never

Defined in: src/team/types.gen.ts:891


requestBodies: never

Defined in: src/team/types.gen.ts:889


responses: never

Defined in: src/team/types.gen.ts:887


schemas: object

Defined in: src/team/types.gen.ts:450

AccountType: "BREX_CLASSIC" | "BREX_EMPOWER"

Address: object

Company business address (must be in the US; no PO box or virtual/forwarding addresses allowed).

optional city?: string | null

City, district, suburb, town, or village.

optional country?: string | null

Two-letter country code (ISO 3166-1 alpha-2).

optional line1?: string | null

Address line 1, no PO Box.

optional line2?: string | null

Address line 2 (e.g., apartment, suite, unit, or building).

optional phone_number?: string | null

Phone number.

optional postal_code?: string | null

ZIP or postal code.

optional state?: string | null

For US-addressed the 2-letter State abbreviation. For international-addresses the county, providence, or region.

Card: object

Only cards with limit_type = CARD have spend_controls

billing_address: object

optional city?: string | null

City, district, suburb, town, or village.

optional country?: string | null

Two-letter country code (ISO 3166-1 alpha-2).

optional line1?: string | null

Address line 1, no PO Box.

optional line2?: string | null

Address line 2 (e.g., apartment, suite, unit, or building).

optional phone_number?: string | null

Phone number.

optional postal_code?: string | null

ZIP or postal code.

optional state?: string | null

For US-addressed the 2-letter State abbreviation. For international-addresses the county, providence, or region.

optional budget_id?: string | null

card_name: string

optional card_type?: "VIRTUAL" | "PHYSICAL" | null

expiration_date: object

month: number

Format: int32

year: number

Format: int32

optional has_been_transferred?: boolean

Indicates whether a card has been transferred. Transferred cards have a spending restriction: we only allow transactions
at online vendors where this card was previously used before the transfer.

id: string

last_four: string

limit_type: "CARD" | "USER"

optional mailing_address?: { city?: string | null; country?: string | null; line1?: string | null; line2?: string | null; phone_number?: string | null; postal_code?: string | null; state?: string | null; } | null

{ city?: string | null; country?: string | null; line1?: string | null; line2?: string | null; phone_number?: string | null; postal_code?: string | null; state?: string | null; }

optional city?: string | null

City, district, suburb, town, or village.

optional country?: string | null

Two-letter country code (ISO 3166-1 alpha-2).

optional line1?: string | null

Address line 1, no PO Box.

optional line2?: string | null

Address line 2 (e.g., apartment, suite, unit, or building).

optional phone_number?: string | null

Phone number.

optional postal_code?: string | null

ZIP or postal code.

optional state?: string | null

For US-addressed the 2-letter State abbreviation. For international-addresses the county, providence, or region.


null

optional metadata?: {[key: string]: string; } | null

Set of key value pairs associated with this object. Please do not store any personally identifiable or sensitive information here. Limitations: maximum of 50 keys, keys cannot exceed 40 characters, values cannot exceed 500 characters.

owner: object & object

type: "USER"

user_id: string

type: "USER"

discriminator enum property added by openapi-typescript

optional spend_controls?: { allowed_merchant_details?: object[] | null; blocked_merchant_details?: object[] | null; lock_after_date?: string | null; reason?: string | null; spend_available?: { amount: number; currency: string | null; } | null; spend_duration?: "MONTHLY" | "QUARTERLY" | "YEARLY" | "ONE_TIME" | null; spend_limit?: { amount: number; currency: string | null; } | null; } | null

{ allowed_merchant_details?: object[] | null; blocked_merchant_details?: object[] | null; lock_after_date?: string | null; reason?: string | null; spend_available?: { amount: number; currency: string | null; } | null; spend_duration?: "MONTHLY" | "QUARTERLY" | "YEARLY" | "ONE_TIME" | null; spend_limit?: { amount: number; currency: string | null; } | null; }

optional allowed_merchant_details?: object[] | null

List of merchant details where card transactions are allowed. Empty if no allowed merchant details are configured.

[{"name": "Github"}, {"name": "AWS"}]

optional blocked_merchant_details?: object[] | null

List of merchant details where card transactions are blocked. Empty if no blocked merchant details are configured.

[{"name": "Apple"}, {"name": "Amazon"}]

optional lock_after_date?: string | null

Format: date

The lock_after_date is in UTC.

optional reason?: string | null

optional spend_available?: { amount: number; currency: string | null; } | null

{ amount: number; currency: string | null; }

amount: number

Format: int64

The amount of money, in the smallest denomination of the currency indicated by currency. For example, when currency is USD, amount is in cents.

700

currency: string | null

The type of currency, in ISO 4217 format.

USD
USD

null

optional spend_duration?: "MONTHLY" | "QUARTERLY" | "YEARLY" | "ONE_TIME" | null

optional spend_limit?: { amount: number; currency: string | null; } | null

{ amount: number; currency: string | null; }

amount: number

Format: int64

The amount of money, in the smallest denomination of the currency indicated by currency. For example, when currency is USD, amount is in cents.

700

currency: string | null

The type of currency, in ISO 4217 format.

USD
USD

null


null

optional status?: "ACTIVE" | "TERMINATED" | "SHIPPED" | "LOCKED" | null

CardAttributePreferences: object

CardAttributePreferences.three_domain_secure_enabled_preference?
Section titled “CardAttributePreferences.three_domain_secure_enabled_preference?”

optional three_domain_secure_enabled_preference?: "THREE_DOMAIN_SECURE_ENABLED" | "THREE_DOMAIN_SECURE_DISABLED" | null

CardExpiration: object

Card expiration year and month. Cards expire on the last day of the expiration month.

The expiration date is in UTC for cards starting with 555671, 428803 and 485932.
And the expiration date is in PST for cards starting with 511572.

month: number

Format: int32

year: number

Format: int32

CardNumberResponse: object

Card number, CVV, and expiration date of a card.

cvv: string

expiration_date: object

month: number

Format: int32

year: number

Format: int32

holder_name: string

id: string

number: string

CardOwner: object & object

type: "USER"

user_id: string

type: "USER"

discriminator enum property added by openapi-typescript

CardStatus: "ACTIVE" | "TERMINATED" | "SHIPPED" | "LOCKED"

CardType: "VIRTUAL" | "PHYSICAL"

ChangeCardReason: "OTHER" | "CARD_DAMAGED" | "CARD_LOST" | "CARD_NOT_RECEIVED" | "DO_NOT_NEED_PHYSICAL_CARD" | "DO_NOT_NEED_VIRTUAL_CARD" | "FRAUD"

Reason for card termination.

CompanyResponse: object

accountType: "BREX_CLASSIC" | "BREX_EMPOWER"

id: string

legal_name: string

mailing_address: object

optional city?: string | null

City, district, suburb, town, or village.

optional country?: string | null

Two-letter country code (ISO 3166-1 alpha-2).

optional line1?: string | null

Address line 1, no PO Box.

optional line2?: string | null

Address line 2 (e.g., apartment, suite, unit, or building).

CompanyResponse.mailing_address.phone_number?
Section titled “CompanyResponse.mailing_address.phone_number?”

optional phone_number?: string | null

Phone number.

CompanyResponse.mailing_address.postal_code?
Section titled “CompanyResponse.mailing_address.postal_code?”

optional postal_code?: string | null

ZIP or postal code.

optional state?: string | null

For US-addressed the 2-letter State abbreviation. For international-addresses the county, providence, or region.

CreateCardRequest: object

The spend_controls field is required when limit_type = CARD. The shipping_address field is required for physical cards, and the first 2 lines of the address must be under 60 characters long.

CreateCardRequest.card_attribute_preferences?
Section titled “CreateCardRequest.card_attribute_preferences?”

optional card_attribute_preferences?: { three_domain_secure_enabled_preference?: "THREE_DOMAIN_SECURE_ENABLED" | "THREE_DOMAIN_SECURE_DISABLED" | null; } | null

card_name: string

card_type: "VIRTUAL" | "PHYSICAL"

limit_type: "CARD" | "USER"

optional mailing_address?: { city?: string | null; country?: string | null; line1?: string | null; line2?: string | null; phone_number?: string | null; postal_code?: string | null; state?: string | null; } | null

{ city?: string | null; country?: string | null; line1?: string | null; line2?: string | null; phone_number?: string | null; postal_code?: string | null; state?: string | null; }

optional city?: string | null

City, district, suburb, town, or village.

optional country?: string | null

Two-letter country code (ISO 3166-1 alpha-2).

optional line1?: string | null

Address line 1, no PO Box.

optional line2?: string | null

Address line 2 (e.g., apartment, suite, unit, or building).

optional phone_number?: string | null

Phone number.

optional postal_code?: string | null

ZIP or postal code.

optional state?: string | null

For US-addressed the 2-letter State abbreviation. For international-addresses the county, providence, or region.


null

optional metadata?: {[key: string]: string; } | null

Set of key value pairs associated with this object. Please do not store any personally identifiable or sensitive information here. Limitations: maximum of 50 keys, keys cannot exceed 40 characters, values cannot exceed 500 characters.

owner: object & object

type: "USER"

user_id: string

type: "USER"

discriminator enum property added by openapi-typescript

optional spend_controls?: { allowed_merchant_details?: object[] | null; blocked_merchant_details?: object[] | null; lock_after_date?: string | null; parent_budget_id?: string | null; policy_id?: string | null; reason?: string | null; spend_duration: "MONTHLY" | "QUARTERLY" | "YEARLY" | "ONE_TIME"; spend_limit: { amount: number; currency: string | null; }; } | null

{ allowed_merchant_details?: object[] | null; blocked_merchant_details?: object[] | null; lock_after_date?: string | null; parent_budget_id?: string | null; policy_id?: string | null; reason?: string | null; spend_duration: "MONTHLY" | "QUARTERLY" | "YEARLY" | "ONE_TIME"; spend_limit: { amount: number; currency: string | null; }; }

optional allowed_merchant_details?: object[] | null

List of merchants where card transactions are allowed. Cannot be used together with blocked_merchant_details. Maximum 50 merchant details.

[{"name": "Github"}, {"name": "AWS"}]

optional blocked_merchant_details?: object[] | null

List of merchants where card transactions are blocked. Cannot be used together with allowed_merchant_details. Maximum 50 merchant details.

[{"name": "Apple"}, {"name": "Amazon"}]

optional lock_after_date?: string | null

Format: date

optional parent_budget_id?: string | null

If using the Empower platform, a new budget will be created for this card. You can specify a parent_budget that your new budget will be nested under. If parent_budget_id is null, we will nest the new budget under the top-level account budget.

optional policy_id?: string | null

optional reason?: string | null

spend_duration: "MONTHLY" | "QUARTERLY" | "YEARLY" | "ONE_TIME"

spend_limit: object

amount: number

Format: int64

The amount of money, in the smallest denomination of the currency indicated by currency. For example, when currency is USD, amount is in cents.

700

currency: string | null

The type of currency, in ISO 4217 format.

USD
USD

null

CreateDepartmentRequest: object

optional description?: string | null

Description of the department

name: string

Name of the department

CreateLocationRequest: object

optional description?: string | null

Description of the location

name: string

Name of the location

CreateTitleRequest: object

name: string

Name of the title

CreateUserRequest: object

optional department_id?: string | null

email: string

Format: email

first_name: string

last_name: string

optional location_id?: string | null

optional manager_id?: string | null

optional metadata?: {[key: string]: string; } | null

The metadata or customized attributes of the user. Maximum number of entries: 100

optional title_id?: string | null

DepartmentResponse: object

optional description?: string | null

Description of the department

id: string

name: string

Name of the department

LegalEntity: object

Legal Entity

A Brex legal entity.

billingAddress: object

optional city?: string | null

City, district, suburb, town, or village.

optional country?: string | null

Two-letter country code (ISO 3166-1 alpha-2).

optional line1?: string | null

Address line 1, no PO Box.

optional line2?: string | null

Address line 2 (e.g., apartment, suite, unit, or building).

optional phone_number?: string | null

Phone number.

optional postal_code?: string | null

ZIP or postal code.

optional state?: string | null

For US-addressed the 2-letter State abbreviation. For international-addresses the county, providence, or region.

createdAt: string

Format: date-time

Timestamp, in UTC, when this legal entity was created.

displayName: string

The display name of this legal entity.

id: string

The ID of this legal entity.

optional isDefault?: boolean

Whether this is the default entity of the account.

status: "UNSUBMITTED" | "UNVERIFIED" | "IN_PROGRESS" | "VERIFIED" | "REJECTED"

LegalEntityStatus: "UNSUBMITTED" | "UNVERIFIED" | "IN_PROGRESS" | "VERIFIED" | "REJECTED"

The possible statuses for an entity’s verification in Brex.

LimitType: "CARD" | "USER"

limit_type = CARD for vendor cards. Vendor cards must have a card_type of VIRTUAL and do not rely on the user specific limit.

For corporate cards, `limit_type = USER`.
Learn more about different card types [here](https://support.brex.com/what-are-the-different-types-of-cards-i-can-get/).

LocationResponse: object

optional description?: string | null

Description of the location

id: string

name: string

Name of the location

LockCardRequest: object

Parameters for locking a card.

optional description?: string | null

Description for locking a card

reason: "OTHER" | "CARD_DAMAGED" | "CARD_LOST" | "CARD_NOT_RECEIVED" | "DO_NOT_NEED_PHYSICAL_CARD" | "DO_NOT_NEED_VIRTUAL_CARD" | "FRAUD"

LockedMerchantDetails: object

Merchant details used for restricting or blocking transactions.

name: string

The name of the merchant.

Github

Money: object

Money fields can be signed or unsigned. Fields are signed (an unsigned value will be interpreted as positive). The amount of money will be represented in the smallest denomination of the currency indicated. For example, USD 7.00 will be represented in cents with an amount of 700.

amount: number

Format: int64

The amount of money, in the smallest denomination of the currency indicated by currency. For example, when currency is USD, amount is in cents.

700

currency: string | null

The type of currency, in ISO 4217 format.

USD
USD

OwnerType: "USER"

Page_Card_: object

items: object[]

optional next_cursor?: string | null

Page_DepartmentResponse_: object

items: object[]

optional next_cursor?: string | null

Page_LegalEntity_: object

items: object[]

optional next_cursor?: string | null

Page_LocationResponse_: object

items: object[]

optional next_cursor?: string | null

Page_TitleResponse_: object

items: object[]

optional next_cursor?: string | null

Page_UserResponse_: object

items: object[]

optional next_cursor?: string | null

SecureEmailForCardDetailsRequest: object

SecureEmailForCardDetailsRequest.expiry_days?
Section titled “SecureEmailForCardDetailsRequest.expiry_days?”

optional expiry_days?: number | null

Format: int32

Link expiry in number of days. Defaults to 30

optional message?: string | null

Message to send with the card details

SecureEmailForCardDetailsRequest.recipient_email
Section titled “SecureEmailForCardDetailsRequest.recipient_email”

recipient_email: string

Email address to send card details to

SecureEmailForCardDetailsRequest.sender_name
Section titled “SecureEmailForCardDetailsRequest.sender_name”

sender_name: string

Sender name. Shows up in the subject of the email

SetUserLimitRequest: object

Request that sets the monthly user limit.

optional monthly_limit?: { amount: number; currency: string | null; } | null

{ amount: number; currency: string | null; }

amount: number

Format: int64

The amount of money, in the smallest denomination of the currency indicated by currency. For example, when currency is USD, amount is in cents.

700

currency: string | null

The type of currency, in ISO 4217 format.

USD
USD

null

SpendControl: object

optional allowed_merchant_details?: object[] | null

List of merchant details where card transactions are allowed. Empty if no allowed merchant details are configured.

[{"name": "Github"}, {"name": "AWS"}]

optional blocked_merchant_details?: object[] | null

List of merchant details where card transactions are blocked. Empty if no blocked merchant details are configured.

[{"name": "Apple"}, {"name": "Amazon"}]

optional lock_after_date?: string | null

Format: date

The lock_after_date is in UTC.

optional reason?: string | null

optional spend_available?: { amount: number; currency: string | null; } | null

{ amount: number; currency: string | null; }

amount: number

Format: int64

The amount of money, in the smallest denomination of the currency indicated by currency. For example, when currency is USD, amount is in cents.

700

currency: string | null

The type of currency, in ISO 4217 format.

USD
USD

null

optional spend_duration?: "MONTHLY" | "QUARTERLY" | "YEARLY" | "ONE_TIME" | null

optional spend_limit?: { amount: number; currency: string | null; } | null

{ amount: number; currency: string | null; }

amount: number

Format: int64

The amount of money, in the smallest denomination of the currency indicated by currency. For example, when currency is USD, amount is in cents.

700

currency: string | null

The type of currency, in ISO 4217 format.

USD
USD

null

SpendControlRequest: object

When limit_type = CARD, spend_controls must be set. When limit type = USER, spend_controls must be null.

SpendControlRequest.allowed_merchant_details?
Section titled “SpendControlRequest.allowed_merchant_details?”

optional allowed_merchant_details?: object[] | null

List of merchants where card transactions are allowed. Cannot be used together with blocked_merchant_details. Maximum 50 merchant details.

[{"name": "Github"}, {"name": "AWS"}]
SpendControlRequest.blocked_merchant_details?
Section titled “SpendControlRequest.blocked_merchant_details?”

optional blocked_merchant_details?: object[] | null

List of merchants where card transactions are blocked. Cannot be used together with allowed_merchant_details. Maximum 50 merchant details.

[{"name": "Apple"}, {"name": "Amazon"}]

optional lock_after_date?: string | null

Format: date

optional parent_budget_id?: string | null

If using the Empower platform, a new budget will be created for this card. You can specify a parent_budget that your new budget will be nested under. If parent_budget_id is null, we will nest the new budget under the top-level account budget.

optional policy_id?: string | null

optional reason?: string | null

spend_duration: "MONTHLY" | "QUARTERLY" | "YEARLY" | "ONE_TIME"

spend_limit: object

amount: number

Format: int64

The amount of money, in the smallest denomination of the currency indicated by currency. For example, when currency is USD, amount is in cents.

700

currency: string | null

The type of currency, in ISO 4217 format.

USD
USD

SpendControlUpdateRequest: object

SpendControlUpdateRequest.allowed_merchant_details?
Section titled “SpendControlUpdateRequest.allowed_merchant_details?”

optional allowed_merchant_details?: object[] | null

List of merchants where card transactions are allowed. Cannot be used together with blocked_merchant_details. Maximum 50 merchant details.

[{"name": "Github"}, {"name": "AWS"}]
SpendControlUpdateRequest.blocked_merchant_details?
Section titled “SpendControlUpdateRequest.blocked_merchant_details?”

optional blocked_merchant_details?: object[] | null

List of merchants where card transactions are blocked. Cannot be used together with allowed_merchant_details. Maximum 50 merchant details.

[{"name": "Apple"}, {"name": "Amazon"}]
SpendControlUpdateRequest.lock_after_date?
Section titled “SpendControlUpdateRequest.lock_after_date?”

optional lock_after_date?: string | null

Format: date

optional reason?: string | null

optional spend_duration?: "MONTHLY" | "QUARTERLY" | "YEARLY" | "ONE_TIME" | null

optional spend_limit?: { amount: number; currency: string | null; } | null

{ amount: number; currency: string | null; }

amount: number

Format: int64

The amount of money, in the smallest denomination of the currency indicated by currency. For example, when currency is USD, amount is in cents.

700

currency: string | null

The type of currency, in ISO 4217 format.

USD
USD

null

SpendDuration: "MONTHLY" | "QUARTERLY" | "YEARLY" | "ONE_TIME"

Spend limit refresh frequency - MONTHLY: The spend limit refreshes every month - QUARTERLY: The spend limit refreshes every quarter - YEARLY: The spend limit refreshes every year - ONE_TIME: The limit does not refresh

TerminateCardRequest: object

Parameters for terminating a card.

optional description?: string | null

Description for terminating a card

reason: "OTHER" | "CARD_DAMAGED" | "CARD_LOST" | "CARD_NOT_RECEIVED" | "DO_NOT_NEED_PHYSICAL_CARD" | "DO_NOT_NEED_VIRTUAL_CARD" | "FRAUD"

ThreeDomainSecureEnabledPreference: "THREE_DOMAIN_SECURE_ENABLED" | "THREE_DOMAIN_SECURE_DISABLED"

Whether to enable 3-D secure protocol on this card.

TitleResponse: object

id: string

name: string

Name of the title

UpdateCardRequest: object

optional metadata?: {[key: string]: string; } | null

Set of key value pairs associated with this object. Please do not store any personally identifiable or sensitive information here. Limitations: maximum of 50 keys, keys cannot exceed 40 characters, values cannot exceed 500 characters.

optional spend_controls?: { allowed_merchant_details?: object[] | null; blocked_merchant_details?: object[] | null; lock_after_date?: string | null; reason?: string | null; spend_duration?: "MONTHLY" | "QUARTERLY" | "YEARLY" | "ONE_TIME" | null; spend_limit?: { amount: number; currency: string | null; } | null; } | null

{ allowed_merchant_details?: object[] | null; blocked_merchant_details?: object[] | null; lock_after_date?: string | null; reason?: string | null; spend_duration?: "MONTHLY" | "QUARTERLY" | "YEARLY" | "ONE_TIME" | null; spend_limit?: { amount: number; currency: string | null; } | null; }

optional allowed_merchant_details?: object[] | null

List of merchants where card transactions are allowed. Cannot be used together with blocked_merchant_details. Maximum 50 merchant details.

[{"name": "Github"}, {"name": "AWS"}]

optional blocked_merchant_details?: object[] | null

List of merchants where card transactions are blocked. Cannot be used together with allowed_merchant_details. Maximum 50 merchant details.

[{"name": "Apple"}, {"name": "Amazon"}]

optional lock_after_date?: string | null

Format: date

optional reason?: string | null

optional spend_duration?: "MONTHLY" | "QUARTERLY" | "YEARLY" | "ONE_TIME" | null

optional spend_limit?: { amount: number; currency: string | null; } | null

{ amount: number; currency: string | null; }

amount: number

Format: int64

The amount of money, in the smallest denomination of the currency indicated by currency. For example, when currency is USD, amount is in cents.

700

currency: string | null

The type of currency, in ISO 4217 format.

USD
USD

null


null

UpdateUserRequest: object

optional department_id?: string | null

optional location_id?: string | null

optional manager_id?: string | null

The user id of the manager of this user

optional metadata?: {[key: string]: string; } | null

The metadata or customized attributes of the user. Maximum number of entries: 100

optional status?: "ACTIVE" | "DISABLED" | null

optional title_id?: string | null

UpdateUserStatus: "ACTIVE" | "DISABLED"

Acceptable user status for update. To suspend a user, set status to ‘disabled’. To unsuspend a user, set status to ‘active’.

UserLimitResponse: object

optional monthly_available?: { amount: number; currency: string | null; } | null

{ amount: number; currency: string | null; }

amount: number

Format: int64

The amount of money, in the smallest denomination of the currency indicated by currency. For example, when currency is USD, amount is in cents.

700

currency: string | null

The type of currency, in ISO 4217 format.

USD
USD

null

optional monthly_limit?: { amount: number; currency: string | null; } | null

{ amount: number; currency: string | null; }

amount: number

Format: int64

The amount of money, in the smallest denomination of the currency indicated by currency. For example, when currency is USD, amount is in cents.

700

currency: string | null

The type of currency, in ISO 4217 format.

USD
USD

null

UserOwner: object & object

type: "USER"

user_id: string

type: "USER"

discriminator enum property added by openapi-typescript

UserResponse: object

optional department_id?: string | null

email: string

Email address of the user

first_name: string

First name of the user

id: string

last_name: string

Last name of the user

optional location_id?: string | null

optional manager_id?: string | null

The user id of the manager of this user

optional metadata?: {[key: string]: string; } | null

The metadata or customized attributes of the user. Maximum number of entries: 100

optional remote_display_id?: string | null

Identifier that is displayed on the IDP or HR system, eg, if OKTA identifies you as user xyz

optional status?: "ACTIVE" | "DISABLED" | "ARCHIVED" | "DELETED" | "INACTIVE" | "INVITED" | "PENDING_ACTIVATION" | "CLOSED" | null

optional title_id?: string | null

UserStatus: "ACTIVE" | "DISABLED" | "ARCHIVED" | "DELETED" | "INACTIVE" | "INVITED" | "PENDING_ACTIVATION" | "CLOSED"

Status of the user