Skip to content

LegalEntities

Defined in: src/team/client.gen.ts:286

new LegalEntities(_core): LegalEntities

Defined in: src/team/client.gen.ts:287

BrexCore

LegalEntities

get(id, options?): Promise<{ billingAddress: { city?: string | null; country?: string | null; line1?: string | null; line2?: string | null; phone_number?: string | null; postal_code?: string | null; state?: string | null; }; createdAt: string; displayName: string; id: string; isDefault?: boolean; status: "UNSUBMITTED" | "UNVERIFIED" | "IN_PROGRESS" | "VERIFIED" | "REJECTED"; }>

Defined in: src/team/client.gen.ts:296

Get legal entity

Get a legal entity by its ID.

GET /v2/legal_entities/{id} — requires OAuth scope: legal_entities, legal_entities.readonly

string

RequestOptions

Promise<{ billingAddress: { city?: string | null; country?: string | null; line1?: string | null; line2?: string | null; phone_number?: string | null; postal_code?: string | null; state?: string | null; }; createdAt: string; displayName: string; id: string; isDefault?: boolean; status: "UNSUBMITTED" | "UNVERIFIED" | "IN_PROGRESS" | "VERIFIED" | "REJECTED"; }>


list(query?, options?): PagePromise<{ items: object[]; next_cursor?: string | null; }>

Defined in: src/team/client.gen.ts:315

List legal entities

List legal entities for the account.

GET /v2/legal_entities — requires OAuth scope: legal_entities, legal_entities.readonly Await for a single page, or for await to iterate items across all pages.

string | null

number | null

RequestOptions

PagePromise<{ items: object[]; next_cursor?: string | null; }>