Create a promotion for a creator
curl --request POST \
--url https://api.fanvue.com/creators/{creatorUserUuid}/promotions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-Fanvue-API-Version: <x-fanvue-api-version>' \
--data '{}'import requests
url = "https://api.fanvue.com/creators/{creatorUserUuid}/promotions"
payload = {}
headers = {
"X-Fanvue-API-Version": "<x-fanvue-api-version>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'X-Fanvue-API-Version': '<x-fanvue-api-version>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({})
};
fetch('https://api.fanvue.com/creators/{creatorUserUuid}/promotions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"uuid": "d4e5f6a7-8b9c-4d1e-a2b3-c4d5e6f7a8b9",
"type": "discount",
"discountPercent": 20,
"freeTrialDays": null,
"availableToGroup": "new_subscribers",
"endsAt": "2024-02-15T00:00:00.000Z",
"maxUsages": 100,
"usedCount": 12,
"message": "20% off your first month!",
"createdAt": "2024-01-15T00:00:00.000Z"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"message": "<string>"
}{
"error": "<string>",
"message": "<string>",
"nextVersion": "<string>"
}{
"error": "Too many requests",
"rateLimit": {
"scope": "app",
"layer": "<string>",
"limit": 123,
"windowSeconds": 123,
"retryAfterSeconds": 123,
"docs": "<string>"
}
}Creator promotions
Create a promotion for a creator
Create a promotional subscription offer on behalf of the specified creator: either a first-month discount (discountPercent) or a free trial, never both. For a free trial, set freeTrialDays (1-30), or set freeTrial: true without freeTrialDays for an unlimited (free-forever) trial.
Creating a promotion replaces any existing promotion targeting the same audience group, and eligible fans are notified unless notifyFans is false.
POST
/
creators
/
{creatorUserUuid}
/
promotions
Create a promotion for a creator
curl --request POST \
--url https://api.fanvue.com/creators/{creatorUserUuid}/promotions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-Fanvue-API-Version: <x-fanvue-api-version>' \
--data '{}'import requests
url = "https://api.fanvue.com/creators/{creatorUserUuid}/promotions"
payload = {}
headers = {
"X-Fanvue-API-Version": "<x-fanvue-api-version>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'X-Fanvue-API-Version': '<x-fanvue-api-version>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({})
};
fetch('https://api.fanvue.com/creators/{creatorUserUuid}/promotions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"uuid": "d4e5f6a7-8b9c-4d1e-a2b3-c4d5e6f7a8b9",
"type": "discount",
"discountPercent": 20,
"freeTrialDays": null,
"availableToGroup": "new_subscribers",
"endsAt": "2024-02-15T00:00:00.000Z",
"maxUsages": 100,
"usedCount": 12,
"message": "20% off your first month!",
"createdAt": "2024-01-15T00:00:00.000Z"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"message": "<string>"
}{
"error": "<string>",
"message": "<string>",
"nextVersion": "<string>"
}{
"error": "Too many requests",
"rateLimit": {
"scope": "app",
"layer": "<string>",
"limit": 123,
"windowSeconds": 123,
"retryAfterSeconds": 123,
"docs": "<string>"
}
}Required scope
write:creator— Modify creator profiles, settings, and creator-specific data.
Authorizations
Headers
Body
application/json
Response
Promotion created successfully
Was this page helpful?