Skip to content

Create a referral-link

POST
/referral-links
object
data
object
code
required
string
reward_type
string
Allowed values: credit discount trial_extension
reward_value
number
reward_currency
string
uses_count
integer
max_uses
integer
active
boolean
expires_at
string format: date-time
creator_org
One of:

DocumentId reference to api::organisation.organisation

string

Created

object
data
object
code
required
string
reward_type
string
Allowed values: credit discount trial_extension
reward_value
number
reward_currency
string
uses_count
integer
max_uses
integer
active
boolean
expires_at
string format: date-time
creator_org
One of:

DocumentId reference to api::organisation.organisation

string
documentId
string
id
integer
createdAt
string format: date-time
updatedAt
string format: date-time
publishedAt
string format: date-time
nullable

Validation error

Missing or invalid authentication

Not authorized (tenant scope or capability)