Use the /inviteWebUser
endpoint to create a user and send an email to invite them to register.
After you submit the request, the user will receive an email from Adyen, containing a one-time use link to a page where they create their own password to complete the registration process. The link is valid within 24 hours. If the link has already expired and the user has not yet completed the registration, inform them to contact their Admin and ask to send a new invitation email.
The endpoint requires at least one merchantCode
and one role
. After the user completes the registration, their account will be associated with the merchant codes provided in the request.
Request parameters
To invite a new web user, make a POST /inviteWebUser
request specifying the following parameters:
Name | Type | Description | ||
---|---|---|---|---|
email |
String |
|
The email address associated with the user account. |
|
merchantCodes |
Array |
|
An array of merchant code strings. Format:
|
|
accountGroupCodes |
Array |
|
An array of account group names. |
|
timeZoneCode |
String |
|
The time zone associated to the user account profile. If you do not specify any value, the active user's time zone settings are used instead. |
|
userName |
String |
|
A user name string holds the user account display name.
|
|
name |
Object |
|
A container object for personal data. This object contains:
|
|
|-firstName |
String |
|
The first name/given name of the user.
|
|
|-lastName |
String |
|
The last name/family name of the user.
|
|
roles |
Array |
|
A container object for types of role for the account user.
|
|
RoleType |
Enum |
|
It defines the type of role assigned to the user account.
|
Response parameters
The response contains the user name and a pspReference
.
If any issues occur during the process, the call returns one or more warning or error messages. The user is not created and no username is returned in the response.
Name | Type | Returned by default | Description |
---|---|---|---|
userName |
String | The user name assigned to the newly created account. | |
pspReference |
String | Unique identifier for the request. | |
warnings |
Array | String array containing one or more warning messages. Returned when the request is not correctly processed. |
|
errors |
Array | String array containing one or more warning messages. Returned when the request is not correctly processed. |