Download OpenAPI specification:Download
The onboarding API allows you to refer your customers and personal contacts to Brex.
The onboarding API allows you to submit customer referrals to Brex and receive a customized Brex application URL. You can optionally submit additional information to help prefill their application with data you may have about the customer. You also can get visibility into the application approval status.
Returns referrals created. Note: This doesn't include referrals that have expired.
listReferrals 200 response
Invalid cursor
Unauthorized
{- "next_cursor": "string",
- "items": [
- {
- "id": "string",
- "referral_signup_url": "string",
- "expires_at": "2019-08-24T14:15:22Z",
- "customer_email": "user@example.com",
- "status": "UNCLAIMED",
- "products": [
- {
- "cash": {
- "accounts": [
- {
- "id": null,
- "instructions": null,
- "created_at": null
}
], - "application": {
- "status": "NO_ACCOUNT"
}
}
}
]
}
]
}
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.
createReferralRequest 200 response
Unauthorized
{- "referral_code": "string",
- "applicant": {
- "last_name": "string",
- "first_name": "string",
- "email": "user@example.com"
}, - "business": {
- "legal_name": "string",
- "incorporation_type": "C_CORP",
- "employer_identification_number": "stringstr",
- "website_url": "string",
- "activity_description": "string",
- "address": {
- "line1": "string",
- "line2": "string",
- "city": "string",
- "state": "string",
- "country": "string",
- "postal_code": "string",
- "phone_number": "string"
}, - "beneficial_owners": [
- {
- "legal_name": "string",
- "company_relationship": "FOUNDER",
- "date_of_birth": "2019-08-24",
- "identity_document": {
- "country": "string",
- "type": "SSN",
- "number": "string"
}, - "address": {
- "line1": "string",
- "line2": "string",
- "city": "string",
- "state": "string",
- "country": "string",
- "postal_code": "string",
- "phone_number": "string"
}, - "prong": "OWNERSHIP"
}
], - "alternate_address": {
- "line1": "string",
- "line2": "string",
- "city": "string",
- "state": "string",
- "country": "string",
- "postal_code": "string",
- "phone_number": "string"
}
}, - "contact_preference": "NO_OUTBOUND"
}
{- "id": "string",
- "referral_signup_url": "string",
- "expires_at": "2019-08-24T14:15:22Z",
- "customer_email": "user@example.com",
- "status": "UNCLAIMED",
- "products": [
- {
- "cash": {
- "accounts": [
- {
- "id": "string",
- "instructions": {
- "domestic": {
- "account_type": null,
- "bank_account_number": null,
- "bank_routing_number": null,
- "beneficiary_name": null,
- "beneficiary_address": null,
- "bank_name": null,
- "bank_address": null
}, - "international": {
- "account_type": null,
- "swift_account_number": null,
- "swift_bank_number": null,
- "beneficiary_name": null,
- "beneficiary_address": null,
- "bank_name": null,
- "bank_address": null,
- "special_instructions": null
}
}, - "created_at": "2019-08-24T14:15:22Z"
}
], - "application": {
- "status": "NO_ACCOUNT"
}
}
}
]
}
Returns a referral object by ID if it exists.
getReferral 200 response
Unauthorized
Referral not found
{- "id": "string",
- "referral_signup_url": "string",
- "expires_at": "2019-08-24T14:15:22Z",
- "customer_email": "user@example.com",
- "status": "UNCLAIMED",
- "products": [
- {
- "cash": {
- "accounts": [
- {
- "id": "string",
- "instructions": {
- "domestic": {
- "account_type": null,
- "bank_account_number": null,
- "bank_routing_number": null,
- "beneficiary_name": null,
- "beneficiary_address": null,
- "bank_name": null,
- "bank_address": null
}, - "international": {
- "account_type": null,
- "swift_account_number": null,
- "swift_bank_number": null,
- "beneficiary_name": null,
- "beneficiary_address": null,
- "bank_name": null,
- "bank_address": null,
- "special_instructions": null
}
}, - "created_at": "2019-08-24T14:15:22Z"
}
], - "application": {
- "status": "NO_ACCOUNT"
}
}
}
]
}
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 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.
createDocument 200 response
Unauthorized
Referral not found
{- "type": "ARTICLES_OF_INCORPORATION"
}
{- "uri": "string",
- "id": "string"
}