Skip to content

FieldsComponents

Defined in: src/fields/types.gen.ts:109

headers: never

Defined in: src/fields/types.gen.ts:386


parameters: never

Defined in: src/fields/types.gen.ts:384


pathItems: never

Defined in: src/fields/types.gen.ts:387


requestBodies: never

Defined in: src/fields/types.gen.ts:385


responses: never

Defined in: src/fields/types.gen.ts:383


schemas: object

Defined in: src/fields/types.gen.ts:110

CreateFieldValueBody: object

Field value creation

Represents the data needed to create a field value

optional is_disabled?: boolean | null

Indicates whether the field value is disabled. A disabled value is not selectable: it no longer appears as a selectable option in the dropdown and cannot be chosen on new transactions. Records that already use the value are unaffected.

optional remote_id?: string | null

Remote/external ID of custom field value from external system (e.g. ERP or HRIS system)

foo_bar

value: string

The display name of the field value

optional value_id?: string | null

The value ID or code of the field value; Usually it is a unique identifier for the custom field value in the remote system

FooBar

CreateFieldValueListBody: object

Field value list creation

Represents the data needed to create multiple field values. It can’t contain more than 1000 values at once.

items: object[]

The list of field values to be created

CreateFieldValueListResponse: object

Field value list

Represents a list of field values definition

items: object[]

The list of created field values

DeletedFieldValueListResponse: Record<string, never>

Field value deleted response

Represents the confirmation of number of deleted field values

DeleteFieldValue.ByBrexId: object

by brex_id

Represents the data needed to delete a field value using its brex_id.

brex_id: string

The internal Brex ID of the field value

efo_foobar

DeleteFieldValue.ByRemoteId: object

by remote_id

Represents the data needed to delete a field value using its remote_id.

remote_id: string

Remote/external ID of custom field value from external system (e.g. ERP or HRIS system)

foo_bar

DeleteFieldValue.ByValueId: object

by value_id

Represents the data needed to delete a field value using its value_id.

value_id: string

The value ID or code of the field value; Usually it is a unique identifier for the custom field value in the remote system

FooBar

DeleteFieldValueBody: { brex_id: string; } | { remote_id: string; } | { value_id: string; }

Field value to delete

{ brex_id: string; }

brex_id: string

The internal Brex ID of the field value

efo_foobar

{ remote_id: string; }

remote_id: string

Remote/external ID of custom field value from external system (e.g. ERP or HRIS system)

foo_bar

{ value_id: string; }

value_id: string

The value ID or code of the field value; Usually it is a unique identifier for the custom field value in the remote system

FooBar

Represents the data needed to delete a field value.

DeleteFieldValueListBody: object

Field value list deletion

Represents the data needed to delete field values. It can’t contain more than 1000 values at once.

items: ({ brex_id: string; } | { remote_id: string; } | { value_id: string; })[]

Field: object

Field

Represents a field definition

brex_id: string

The internal Brex ID of the field

extended_field_foobar

optional group?: "TRAVEL" | "ACCOUNTING" | "USER" | "ERP" | null

is_disabled: boolean

Indicates whether the field is disabled. A disabled field is not selectable: it is no longer offered as an option in the Brex dropdown and cannot be applied to new transactions. Records that already reference the field are unaffected.

name: string | null

The name of the field

optional remote_id?: string | null

Remote/external ID of custom field from external system (e.g. ERP or HRIS system)

foo_bar

updated_at: string

Format: date-time

The last updated timestamp of the field

FieldCreateBody: object

Field creation

Represents the data needed to create a field. To create a field in the ERP group you must first set up an Accounting Integration and supply its integration_id.

group: "TRAVEL" | "ACCOUNTING" | "USER" | "ERP"

optional integration_id?: string | null

The ID of the Accounting Integration to associate this field with. This property is required when group is ERP: it must reference an existing Accounting Integration, and requests that omit it or send null for an ERP field are rejected. For all other groups (ACCOUNTING, USER, TRAVEL) integration_id is not applicable and should be left null.

int_123

optional is_disabled?: boolean | null

Indicates whether the field is disabled. A disabled field is not selectable: it is no longer offered as an option in the Brex dropdown and cannot be applied to new transactions. Records that already reference the field are unaffected.

name: string

The name of the field

optional remote_id?: string | null

Remote/external ID of custom field from external system (e.g. ERP or HRIS system)

foo_bar

FieldGroup: "TRAVEL" | "ACCOUNTING" | "USER" | "ERP"

The category of the field, indicating its purpose or context. Supported groups are:

* `ACCOUNTING` — Fields used to categorize transactions for accounting purposes (for example, expense categories or cost centers) that are managed directly within Brex.
* `USER` — Fields associated with users, used to capture user-specific attributes.
* `ERP` — Fields that are synced with an external ERP/accounting system through an Accounting Integration. Creating an Accounting Integration is a prerequisite for creating fields in the `ERP` group, and each `ERP` field must reference that integration through `integration_id`.
* `TRAVEL` — Fields used in the context of travel bookings and expenses.

FieldUpdateBody: object

Field update

Represents the data needed to update a field

optional is_disabled?: boolean | null

Indicates whether the field is disabled. A disabled field is not selectable: it is no longer offered as an option in the Brex dropdown and cannot be applied to new transactions. Records that already reference the field are unaffected.

optional name?: string | null

The name of the field

FieldValue: object

Field value

Represents a field value definition

brex_id: string

The internal Brex ID of the field value

efo_foobar

field_id: string

The ID of the parent field this value belongs to

extended_field_foobar

is_disabled: boolean

Indicates whether the field value is disabled. A disabled value is not selectable: it no longer appears as a selectable option in the dropdown and cannot be chosen on new transactions. Records that already use the value are unaffected.

optional remote_id?: string | null

Remote/external ID of custom field value from external system (e.g. ERP or HRIS system)

foo_bar

updated_at: string

Format: date-time

The last updated timestamp of the field value

value: string

The display name of the field value

optional value_id?: string | null

The value ID or code of the field value; Usually it is a unique identifier for the custom field value in the remote system

foo_bar

Page_Field_: object

items: object[]

optional next_cursor?: string | null

Page_FieldValue_: object

items: object[]

optional next_cursor?: string | null

UpdateFieldValue.ByBrexId: object

by brex_id

Represents the data needed to update a field value using its brex_id.

brex_id: string

The internal Brex ID of the field value

efo_foobar

data: object

UpdateFieldValue.ByBrexId.data.is_disabled?
Section titled “UpdateFieldValue.ByBrexId.data.is_disabled?”

optional is_disabled?: boolean | null

Indicates whether the field value is disabled. A disabled value is not selectable: it no longer appears as a selectable option in the dropdown and cannot be chosen on new transactions. Records that already use the value are unaffected.

optional value?: string | null

The display name of the field value

UpdateFieldValue.ByRemoteId: object

by remote_id

Represents the data needed to update a field value using its remote_id.

data: object

UpdateFieldValue.ByRemoteId.data.is_disabled?
Section titled “UpdateFieldValue.ByRemoteId.data.is_disabled?”

optional is_disabled?: boolean | null

Indicates whether the field value is disabled. A disabled value is not selectable: it no longer appears as a selectable option in the dropdown and cannot be chosen on new transactions. Records that already use the value are unaffected.

optional value?: string | null

The display name of the field value

remote_id: string

Remote/external ID of custom field value from external system (e.g. ERP or HRIS system)

foo_bar

UpdateFieldValue.ByValueId: object

by value_id

Represents the data needed to update a field value using its value_id.

data: object

UpdateFieldValue.ByValueId.data.is_disabled?
Section titled “UpdateFieldValue.ByValueId.data.is_disabled?”

optional is_disabled?: boolean | null

Indicates whether the field value is disabled. A disabled value is not selectable: it no longer appears as a selectable option in the dropdown and cannot be chosen on new transactions. Records that already use the value are unaffected.

optional value?: string | null

The display name of the field value

value_id: string

The value ID or code of the field value; Usually it is a unique identifier for the custom field value in the remote system

FooBar

UpdateFieldValueBody: { brex_id: string; data: { is_disabled?: boolean | null; value?: string | null; }; } | { data: { is_disabled?: boolean | null; value?: string | null; }; remote_id: string; } | { data: { is_disabled?: boolean | null; value?: string | null; }; value_id: string; }

Field value to update

{ brex_id: string; data: { is_disabled?: boolean | null; value?: string | null; }; }

brex_id: string

The internal Brex ID of the field value

efo_foobar

data: object

optional is_disabled?: boolean | null

Indicates whether the field value is disabled. A disabled value is not selectable: it no longer appears as a selectable option in the dropdown and cannot be chosen on new transactions. Records that already use the value are unaffected.

optional value?: string | null

The display name of the field value


{ data: { is_disabled?: boolean | null; value?: string | null; }; remote_id: string; }

data: object

optional is_disabled?: boolean | null

Indicates whether the field value is disabled. A disabled value is not selectable: it no longer appears as a selectable option in the dropdown and cannot be chosen on new transactions. Records that already use the value are unaffected.

optional value?: string | null

The display name of the field value

remote_id: string

Remote/external ID of custom field value from external system (e.g. ERP or HRIS system)

foo_bar

{ data: { is_disabled?: boolean | null; value?: string | null; }; value_id: string; }

data: object

optional is_disabled?: boolean | null

Indicates whether the field value is disabled. A disabled value is not selectable: it no longer appears as a selectable option in the dropdown and cannot be chosen on new transactions. Records that already use the value are unaffected.

optional value?: string | null

The display name of the field value

value_id: string

The value ID or code of the field value; Usually it is a unique identifier for the custom field value in the remote system

FooBar

Represents the data needed to update a field value.

UpdateFieldValueDataBody: object

Field value update data

Represents the updated data of a field value

optional is_disabled?: boolean | null

Indicates whether the field value is disabled. A disabled value is not selectable: it no longer appears as a selectable option in the dropdown and cannot be chosen on new transactions. Records that already use the value are unaffected.

optional value?: string | null

The display name of the field value

UpdateFieldValueListBody: object

Field value list update

Represents the data needed to update multiple field values. It can’t contain more than 1000 values at once.

items: ({ brex_id: string; data: { is_disabled?: boolean | null; value?: string | null; }; } | { data: { is_disabled?: boolean | null; value?: string | null; }; remote_id: string; } | { data: { is_disabled?: boolean | null; value?: string | null; }; value_id: string; })[]

UpdateFieldValueListResponse: object

Field value updated list

Represents a list of updated field values

items: object[]

The list of updated field values