Create and send an invitation to join a merchant

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Path parameters

organizationIdstringRequired
Organization ID
merchantIdstringRequired
Merchant ID to invite the user to

Request

This endpoint expects an object.
emailstringRequired

Email address or API username (api_<uuid> format) of the user to invite

roleslist of stringsRequired
Array of role IDs or names to assign to the user for the merchant. Must contain at least 1 role.

Response

Invitation created and sent successfully.
idstring
Invitation ID
emailstring
Email of the invited user
roleslist of strings
Roles assigned in the invitation
statusenum
Current status of the invitation
Allowed values:
expiresAtdatetime
Expiration date of the invitation token
createdAtdatetime
Creation date of the invitation
invitedByUserIdstring
ID of the user who sent the invitation
merchantIdstring
ID of the merchant for this invitation
userExistsboolean
Indicates whether the invited user already exists in the system
acceptedAtdatetime
Date when the invitation was accepted
acceptedByUserIdstring
ID of the user who accepted the invitation
rolesAssignedImmediatelyboolean
Indicates whether roles were assigned immediately without requiring invitation redemption
messagestring

Message describing the invitation result. For immediate assignments: โ€œRoles assigned immediatelyโ€ฆโ€. For traditional flow: โ€œInvitation sent toโ€ฆโ€

Errors

400
Create Invitation Request Bad Request Error
401
Create Invitation Request Unauthorized Error
403
Create Invitation Request Forbidden Error
409
Create Invitation Request Conflict Error
422
Create Invitation Request Unprocessable Entity Error
500
Create Invitation Request Internal Server Error