curl --request POST \
--url https://api-next.ofauth.com/v2/access/promotions/trial-links \
--header 'Content-Type: application/json' \
--header 'apiKey: <api-key>' \
--header 'x-connection-id: <api-key>' \
--data '
{
"trialLinkName": "<string>",
"subscribeDays": 183,
"subscribeCounts": 2,
"expiredAt": "<string>"
}
'{
"id": 123,
"trialLinkName": "<string>",
"url": "<string>",
"subscribeDays": 123,
"subscribeCounts": 123,
"claimCounts": 123,
"clicksCounts": 123,
"expiredAt": "<string>",
"createdAt": "<string>",
"isFinished": true,
"user": null,
"sharedWith": "<string>"
}Create a new trial link
Permission Required: promotions:write
curl --request POST \
--url https://api-next.ofauth.com/v2/access/promotions/trial-links \
--header 'Content-Type: application/json' \
--header 'apiKey: <api-key>' \
--header 'x-connection-id: <api-key>' \
--data '
{
"trialLinkName": "<string>",
"subscribeDays": 183,
"subscribeCounts": 2,
"expiredAt": "<string>"
}
'{
"id": 123,
"trialLinkName": "<string>",
"url": "<string>",
"subscribeDays": 123,
"subscribeCounts": 123,
"claimCounts": 123,
"clicksCounts": 123,
"expiredAt": "<string>",
"createdAt": "<string>",
"isFinished": true,
"user": null,
"sharedWith": "<string>"
}Requires a connection via the x-connection-id header.
Name for the trial link
1 - 100Number of days for trial subscription
1 <= x <= 365Maximum number of times trial can be claimed
x >= 1When the trial link expires
Successful response
Was this page helpful?