Skip to content

OnboardingPaths

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

/v1/referrals: object

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

optional delete?: undefined

get: object

List referrals

Returns referrals created. Note: This doesn’t include referrals that have expired.

parameters: object

optional cookie?: undefined

optional header?: undefined

optional path?: undefined

optional query?: object

optional cursor?: string | null

optional requestBody?: undefined

responses: object

200: object

Success

content: object

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

application/json: object

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

items: object[]

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

optional next_cursor?: string | null

headers: object

[name: string]: unknown

400: object

Invalid cursor

optional content?: undefined

headers: object

[name: string]: unknown

401: object

Unauthorized

optional content?: undefined

headers: object

[name: string]: unknown

optional head?: undefined

optional options?: undefined

parameters: object

optional cookie?: undefined

optional header?: undefined

optional path?: undefined

optional query?: undefined

optional patch?: undefined

post: object

Creates a referral

This creates new referrals. The response will contain an identifier and a unique personalized link to an application flow. Many fields are optional and when they’re provided they’ll prefill the application flow for Brex. You should handle and store these references securely as they contain sensitive information about the referral.

parameters: object

optional cookie?: undefined

optional header?: undefined

optional path?: undefined

optional query?: undefined

requestBody: object

content: object

application/json: object

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

applicant: object

post.requestBody.content.application/json.applicant.email
Section titled “post.requestBody.content.application/json.applicant.email”

email: string

Format: email

Business email of the applying customer.

jane.smith@example.com
post.requestBody.content.application/json.applicant.first_name
Section titled “post.requestBody.content.application/json.applicant.first_name”

first_name: string

First name of the applying customer.

Jane
post.requestBody.content.application/json.applicant.last_name
Section titled “post.requestBody.content.application/json.applicant.last_name”

last_name: string

Last name of the applying customer.

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

optional business?: { activity_description?: string | null; 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; alternate_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; beneficial_owners?: object[] | null; employer_identification_number?: string | null; incorporation_state?: string | null; incorporation_type?: "C_CORP" | "S_CORP" | "B_CORP" | "LLC" | "LLP" | "SOLE_PROP" | "ORG_501C3" | "LP" | null; incorporation_year?: number | null; legal_name?: string | null; website_url?: string | null; } | null

{ activity_description?: string | null; 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; alternate_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; beneficial_owners?: object[] | null; employer_identification_number?: string | null; incorporation_state?: string | null; incorporation_type?: "C_CORP" | "S_CORP" | "B_CORP" | "LLC" | "LLP" | "SOLE_PROP" | "ORG_501C3" | "LP" | null; incorporation_year?: number | null; legal_name?: string | null; website_url?: string | null; }

optional activity_description?: string | null

Brief description of the business activity.

Software as a Service platform for project management

optional 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 alternate_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 beneficial_owners?: object[] | null

List of beneficial owners of the company

optional employer_identification_number?: string | null

Company Employer Identification Number(EIN).

123456789

optional incorporation_state?: string | null

State of incorporation (US state abbreviation).

CA

optional incorporation_type?: "C_CORP" | "S_CORP" | "B_CORP" | "LLC" | "LLP" | "SOLE_PROP" | "ORG_501C3" | "LP" | null

optional incorporation_year?: number | null

Format: int32

Year of incorporation (YYYY format).

2023

optional legal_name?: string | null

Company legal name.

Acme Corporation

optional website_url?: string | null

Business website (or link to ecommerce store for sellers).

https://www.acmecorp.com

null

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

optional contact_preference?: "NO_OUTBOUND" | "EMAIL_OUTBOUND" | null

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

referral_code: string

Referral code that attributes credit to you if the prospect signs up for a Brex account.

partner_abc123

responses: object

200: object

Success

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.customer_email?
Section titled “post.responses.200.content.application/json.customer_email?”

optional customer_email?: string | null

Format: email

Customer’s email address registered for the Brex application. This field is available only if there’s a signup completed.

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

expires_at: string

Format: date-time

The time at which this referral link expires.

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

id: string

Unique identifier for the referral.

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

products: object[]

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

referral_signup_url: string

Signup URL to redirect prospects to complete their onboarding flow.

*Note*: Necessary disclosures must be shown when the prospect clicks on this link.
https://brex.com/signup?pref_token=a1b2c3d4e5f6g7
post.responses.200.content.application/json.status
Section titled “post.responses.200.content.application/json.status”

status: "ACTIVE" | "EXPIRED" | "CLOSED" | "UNCLAIMED"

headers: object

[name: string]: unknown

401: object

Unauthorized

optional content?: undefined

headers: object

[name: string]: unknown

optional put?: undefined

optional trace?: undefined


/v1/referrals/{id}: object

Defined in: src/onboarding/types.gen.ts:28

optional delete?: undefined

get: object

Gets a referral by ID

Returns a referral object by ID if it exists.

parameters: object

optional cookie?: undefined

optional header?: undefined

path: object

id: string

optional query?: undefined

optional requestBody?: undefined

responses: object

200: object

Success

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.customer_email?
Section titled “get.responses.200.content.application/json.customer_email?”

optional customer_email?: string | null

Format: email

Customer’s email address registered for the Brex application. This field is available only if there’s a signup completed.

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

expires_at: string

Format: date-time

The time at which this referral link expires.

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

id: string

Unique identifier for the referral.

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

products: object[]

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

referral_signup_url: string

Signup URL to redirect prospects to complete their onboarding flow.

*Note*: Necessary disclosures must be shown when the prospect clicks on this link.
https://brex.com/signup?pref_token=a1b2c3d4e5f6g7
get.responses.200.content.application/json.status
Section titled “get.responses.200.content.application/json.status”

status: "ACTIVE" | "EXPIRED" | "CLOSED" | "UNCLAIMED"

headers: object

[name: string]: unknown

401: object

Unauthorized

optional content?: undefined

headers: object

[name: string]: unknown

404: object

Referral not found

optional content?: undefined

headers: object

[name: string]: unknown

optional head?: undefined

optional options?: undefined

parameters: object

optional cookie?: undefined

optional header?: undefined

optional path?: undefined

optional query?: undefined

optional patch?: undefined

optional post?: undefined

optional put?: undefined

optional trace?: undefined


/v1/referrals/{id}/document_upload: object

Defined in: src/onboarding/types.gen.ts:48

optional delete?: undefined

optional get?: undefined

optional head?: undefined

optional options?: undefined

parameters: object

optional cookie?: undefined

optional header?: undefined

optional path?: undefined

optional query?: undefined

optional patch?: undefined

post: object

Create a new document upload

The uri will be a presigned S3 URL allowing you to upload the referral doc securely. This URL can only be used for a PUT operation and expires 30 minutes after its creation. Once your upload is complete, we will use this to prefill the application.

Refer to these [docs](https://docs.aws.amazon.com/AmazonS3/latest/dev/PresignedUrlUploadObject.html) on how to upload to this presigned S3 URL. We highly recommend using one of AWS SDKs if they're available for your language to upload these files.

parameters: object

optional cookie?: undefined

optional header?: undefined

path: object

id: string

optional query?: undefined

requestBody: object

content: object

application/json: object

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

type: "ARTICLES_OF_INCORPORATION" | "IRS_EIN_CONFIRMATION" | "IRS_EIN_APPLICATION" | "CERTIFICATE_GOOD_STANDING"

responses: object

200: object

Success

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.id
Section titled “post.responses.200.content.application/json.id”

id: string

Unique identifier for the document.

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

uri: string

This is a presigned S3 link that should be used to attach the document. The maximum size accepted for this document is 50 MB.

https://brex-documents.s3.amazonaws.com/upload/abc123?AWSAccessKeyId=AKIAIOSFODNN7EXAMPLE&Expires=1234567890&Signature=example

headers: object

[name: string]: unknown

401: object

Unauthorized

optional content?: undefined

headers: object

[name: string]: unknown

404: object

Referral not found

optional content?: undefined

headers: object

[name: string]: unknown

optional put?: undefined

optional trace?: undefined


/v1/referrals/{id}/process_ein_document: object

Defined in: src/onboarding/types.gen.ts:70

optional delete?: undefined

optional get?: undefined

optional head?: undefined

optional options?: undefined

parameters: object

optional cookie?: undefined

optional header?: undefined

optional path?: undefined

optional query?: undefined

optional patch?: undefined

post: object

Process a delayed EIN document after upload

Processes a delayed EIN document after it has been uploaded.

This endpoint should be called after successfully uploading an IRS EIN Confirmation document (CP-575, CP-575 fax sheet, or 147C) using the
standard document upload flow (`/v1/referrals/{id}/document_upload` with `type: IRS_EIN_CONFIRMATION`).
The `document_id` should be the `id` returned from the document upload request.

parameters: object

optional cookie?: undefined

optional header?: undefined

path: object

id: string

optional query?: undefined

requestBody: object

content: object

application/json: object

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

document_id: string

The document ID returned from the initial document creation request

responses: object

200: object

Document processed successfully

optional content?: undefined

headers: object

[name: string]: unknown

400: object

Document not uploaded or invalid

optional content?: undefined

headers: object

[name: string]: unknown

401: object

Unauthorized

optional content?: undefined

headers: object

[name: string]: unknown

404: object

Referral not found

optional content?: undefined

headers: object

[name: string]: unknown

optional put?: undefined

optional trace?: undefined