POST
/api/Invitations
const url = 'https://example.com/api/Invitations';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"merchantId":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","firstName":"example","lastName":"example","email":"hello@example.com","phone":"example","expiresInDays":1}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/Invitations \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "merchantId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "firstName": "example", "lastName": "example", "email": "hello@example.com", "phone": "example", "expiresInDays": 1 }'Mints a new self-serve onboarding link. The plaintext token is returned exactly
once — store it (or the resulting URL) before navigating away; only its SHA-256 hash
is persisted. At least one of email or phone must be supplied so there’s
a channel to deliver the link through.
Authorizations
Section titled “Authorizations ”Request Body
Section titled “Request Body ”object
merchantId
required
string format: uuid
firstName
required
string
lastName
required
string
email
string format: email
phone
string
expiresInDays
integer format: int32
Example generated
{ "merchantId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "firstName": "example", "lastName": "example", "email": "hello@example.com", "phone": "example", "expiresInDays": 1}object
merchantId
required
string format: uuid
firstName
required
string
lastName
required
string
email
string format: email
phone
string
expiresInDays
integer format: int32
Example generated
{ "merchantId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "firstName": "example", "lastName": "example", "email": "hello@example.com", "phone": "example", "expiresInDays": 1}object
merchantId
required
string format: uuid
firstName
required
string
lastName
required
string
email
string format: email
phone
string
expiresInDays
integer format: int32
Example generated
{ "merchantId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "firstName": "example", "lastName": "example", "email": "hello@example.com", "phone": "example", "expiresInDays": 1}Responses
Section titled “ Responses ”Invitation created.
Media type application/json
object
outcome
string
invitationId
string format: uuid
token
string
expiresAt
string format: date-time
email
string
phone
string
Example
{ "outcome": "Ok"}Neither email nor phone was supplied, or validation failed.
Media type application/json
object
type
string
title
string
status
integer format: int32
detail
string
instance
string
key
additional properties
Example generated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}Merchant not found.
Media type application/json
object
type
string
title
string
status
integer format: int32
detail
string
instance
string
key
additional properties
Example generated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}