Onboard a business with a link
POST /accountHolders/{accountHolderId}/onboardingLink returns a single-use link into hosted onboarding for one business account holder and one card program. Your user opens it from your application, completes the business’s application and submits it. They need no account and no sign-in for hosted onboarding: the link alone opens it. You read the outcome through the API.
Onboard a business
Create the account holder
Create the business with POST /accountHolders. The key needs accountHolders:write; do not send Account-Holder.
The account holder has onboarding set to HOSTED, the default. Business details on the account holder appear already filled in, so the person checks them instead of typing them. annualRevenue.value is in whole cents: 125000000 is $1,250,000.
Choose a card program
List the card programs the account holder can apply for with GET /cardProgramOptions. The key needs cards:read, and the request sends Account-Holder with the account holder ID.
Send the option’s id as cardProgramOptionId when you create the link. It is required even when the list has one option.
Create a link
When your user is ready to apply, create a link from your backend with the card program option you chose. The key needs accountHolders:verify. A platform key sends Account-Holder with the account holder ID.
Both URLs must use https on port 443, with no user name or password.
Redirect the person
Redirect your user to url straight away. They do not sign in again: url carries a single-use credential, and anyone who opens it can onboard the account holder.
- Never email or text it.
- Do not store it or log it.
- Use a new
Idempotency-Keyfor each link. A replay of the same key returns the same link, withurl, for 24 hours.
A handler that creates a link and redirects to it can serve both your Apply button and refreshUrl:
Read the outcome
The person goes to returnUrl once the application is submitted, whether it is in review, approved or declined, and also when they save to finish later. returnUrl carries no status: read GET /accountHolders/{accountHolderId}/verification from your backend to tell them apart, or wait for the events. A person who saved needs a new link to continue.
The link
- Open it within 30 minutes, by
expiresAt. - Opening the page does not use the link up. Pressing Start does.
- Creating a link cancels any unused earlier link for the account holder.
- A link that expired, was used or was replaced sends the person to
refreshUrl. WithoutrefreshUrl, the person is asked to return to your application for a new link.
What the person does
- Opens the link and presses Start.
- Completes the application in hosted onboarding. For an issuer that hosts its own onboarding, the person completes it on the issuer’s pages instead.
- Saves their progress to finish later, if needed. The person goes to
returnUrl, or without it sees that their progress is saved and can close the window. Continuing needs a new link from your application. - Submits the application. The person goes to
returnUrl, or without it stays on a page that shows the application’s status.
If the issuer later asks for documents, collect them with the verification documents component.
Events
Read GET /accountHolders/{accountHolderId}/verification for each application’s status. See Webhooks and events to receive events.
Hosted and API onboarding
onboarding on a business account holder decides how its application reaches the issuers.
accountHolders:onboardis an add-on. Keys do not hold it by default, and it must be enabled for your platform before a key can be given it. Contact support to request it.POST /accountHolders/{accountHolderId}/submitandPOST /accountHolders/{accountHolderId}/resubmitrefuse aHOSTEDbusiness with409 INVALID_STATE.- Set
onboardingonPOST /accountHolders, or change it withPOST /accountHolders/{accountHolderId}. Setting it toAPIneedsaccountHolders:onboard. - A person account holder has no
onboarding. It applies withPOST /accountHolders/{accountHolderId}/submitand cannot use a link.