POST

Authorizations

Authorization
string
header
required

The user's access_token from authentication. The program and environment come from the token.

Body

application/json

What a signed-in customer sends. role is required. Which of the user's details are required depends on the role and on your program; if one is missing, the 400 names it.

email
string<email>
required

The user's email address. Must not already be in use in the program.

role
enum<string>
required

What the user becomes. PREPAID_CARD_CUSTOMER, CARD_ONLY and CHILD invite a sub-user and need accountId. CORPORATE_MANAGER invites a manager of your company. Your program must have the role. Write it exactly, in capitals with underscores.

Available options:
PREPAID_CARD_CUSTOMER,
CARD_ONLY,
CHILD,
CORPORATE_MANAGER
Example:

"CHILD"

firstName
string

The user's first name.

lastName
string

The user's last name.

dob
string

Date of birth, YYYY-MM-DD.

nationality
string

Two-letter country code, for example GB.

phone
string

7 to 15 digits, with an optional + in front.

address
object

The user's address. country is a three-letter code. On some programs it is copied from your own details and can be left out.

accountId
string<uuid>

The account a sub-user is funded from. Required for a sub-user. Must be one of your own accounts, ACTIVE, and not itself funded from a parent. Do not send it for CORPORATE_MANAGER.

confirmation
Passkey · object

Step-up: a passkey or a TOTP code. Leave it out only if your program signs in through SSO.

Response

The invitation was created.

success
boolean
Example:

true

message
string
Example:

"Customer invitation processed successfully"

data
object