Skip to navigation

Create an onboarding link

Creates a link that takes a business’s representative through hosted onboarding for one card program. Send the person to url from your application once they are signed in to it; never email or text the link.

The link must be opened within 30 minutes and works once. It is used up only when the person starts onboarding, so a link preview or an email scanner never uses it up. Creating a link ends any earlier unused link for the account holder. A person who needs more time saves their progress and continues from a new link.

Once the application is submitted, the person goes to returnUrl, or stays on a page that shows the application’s status. A link that expired, was used or was replaced sends the person to refreshUrl, where your application creates a new link. Neither URL carries state: read GET /accountHolders/{accountHolderId}/verification or wait for accountHolder.verification.updated.

Only a business onboards through a link: a person is refused with INVALID_STATE, as is a card program whose application was already submitted.

Authentication

AuthorizationBearer

Access token from POST /access-token. Valid for at most 30 minutes.

Path parameters

accountHolderIdstringRequiredformat: "^[A-Za-z0-9_-]+$"1-128 characters
The account holder's ID.

Headers

Account-HolderstringOptionalformat: "^[A-Za-z0-9_-]+$"1-128 characters

The account holder a platform API key acts on. Platform keys must send it on account holder operations. A company API key acts on its own account holder; it may omit the header or send its own account holder ID.

Idempotency-KeystringRequiredformat: "^(?:[!#-~][!-~]{0,254}|"[!#-\[\]-~]{1,255}")$"1-257 characters

Your unique key for this operation: 1 to 255 visible ASCII characters, ideally a new UUID v4 for each operation. A value in double quotes is accepted and the quotes are removed. Retrying with the same key and the same request returns the first response with Idempotent-Replayed: true; the same key with a different request is refused with IDEMPOTENCY_KEY_REUSED. A key can be used again 30 days after its operation completes.

X-Request-IdstringOptionalformat: "^[A-Za-z0-9._:-]+$"1-128 characters

Your own correlation ID for this request. It is recorded with the request. The X-Request-Id response header is always generated by the server.

Request

This endpoint expects an object.
cardProgramOptionIdstringRequiredformat: "uuid"

A card program option from GET /cardProgramOptions.

returnUrlstringOptionalformat: "uri"<=2048 characters
An https page in your application for the person once the application is submitted, or when they choose to save and finish later. It carries no status, so read the account holder to tell the two apart. Without it, the person stays on a page that shows the application's status, or that says their progress is saved.
refreshUrlstringOptionalformat: "uri"<=2048 characters
An https page in your application that creates a new link, for a person whose link expired, was used or was replaced. Without it, the person is asked to return to your application for a new link.

Response headers

X-Request-Idstringformat: "uuid"
Unique ID of this request. Quote it when you contact support.
RateLimitstringOptional

Remaining budget for each rate limit policy, for example "burst"; r=57; t=6 (requests remaining and seconds until the window resets).

RateLimit-PolicystringOptional

The rate limit policies applied to this request, for example "burst"; q=60; w=10 (requests allowed per window of seconds).

Idempotent-ReplayedenumOptional

Sent as true when this response repeats the first response to the same Idempotency-Key. A replay keeps the first response’s status and body, including the requestId of a problem; X-Request-Id is new.

Allowed values:

Response

The link was created.
object"onboardingLink"Read-only

Always onboardingLink.

accountHolderIdstringRead-only
The account holder the link onboards.
cardProgramOptionIdstringRead-onlyformat: "uuid"
The card program the link applies for.
livemodebooleanRead-only

true on a live platform in production, false on a Sandbox platform and outside production.

createdAtdatetimeRead-only
When the link was created.
expiresAtdatetimeRead-only
When the link stops working if it has not been opened.
urlstringOptionalRead-onlyformat: "uri"

The link. Anyone who opens it can onboard the account holder, so keep it out of logs and send it only to the signed-in person. This response and its replays carry it for 24 hours.

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
409
Conflict Error
413
Content Too Large Error
415
Unsupported Media Type Error
422
Unprocessable Entity Error
429
Too Many Requests Error
500
Internal Server Error
503
Service Unavailable Error