Create a checkout link for a creator
curl --request POST \
--url https://api.fanvue.com/creators/{creatorUserUuid}/checkout-links \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-Fanvue-API-Version: <x-fanvue-api-version>' \
--data '
{
"source": {
"kind": "existing_price",
"productPriceUuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}
'import requests
url = "https://api.fanvue.com/creators/{creatorUserUuid}/checkout-links"
payload = { "source": {
"kind": "existing_price",
"productPriceUuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
} }
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({
source: {
kind: 'existing_price',
productPriceUuid: '3c90c3cc-0d44-4b50-8888-8dd25736052a'
}
})
};
fetch('https://api.fanvue.com/creators/{creatorUserUuid}/checkout-links', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"uuid": "b3c4d5e6-7f8a-4b9c-8d0e-1f2a3b4c5d6e",
"name": "Coaching call",
"description": "Instagram bio link",
"url": "https://www.fanvue.com/checkout/fvcl_4WqZz1kXo9DdPp2sT7yRfM",
"price": 1999,
"currency": "USD",
"isRecurring": false,
"cycleLength": null,
"cycleUnit": null,
"productUuid": "c4d5e6f7-8a9b-4c0d-9e1f-2a3b4c5d6e7f",
"productPriceUuid": "d5e6f7a8-9b0c-4d1e-af2a-3b4c5d6e7f8a",
"taxBehavior": "exclusive",
"displayCurrency": "localised",
"status": "active",
"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 checkout links
Create a checkout link for a creator
Create a shareable checkout link on behalf of the specified creator, selling either an existing product price (existing_price), a new price on an existing product (existing_product), or a brand-new product (new_product).
All amounts are integer minor units of the currency (e.g. cents: 1999 = $19.99); the Fanvue dashboard displays the same prices in major units. Requires checkout links to be enabled for the creator.
POST
/
creators
/
{creatorUserUuid}
/
checkout-links
Create a checkout link for a creator
curl --request POST \
--url https://api.fanvue.com/creators/{creatorUserUuid}/checkout-links \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-Fanvue-API-Version: <x-fanvue-api-version>' \
--data '
{
"source": {
"kind": "existing_price",
"productPriceUuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}
'import requests
url = "https://api.fanvue.com/creators/{creatorUserUuid}/checkout-links"
payload = { "source": {
"kind": "existing_price",
"productPriceUuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
} }
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({
source: {
kind: 'existing_price',
productPriceUuid: '3c90c3cc-0d44-4b50-8888-8dd25736052a'
}
})
};
fetch('https://api.fanvue.com/creators/{creatorUserUuid}/checkout-links', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"uuid": "b3c4d5e6-7f8a-4b9c-8d0e-1f2a3b4c5d6e",
"name": "Coaching call",
"description": "Instagram bio link",
"url": "https://www.fanvue.com/checkout/fvcl_4WqZz1kXo9DdPp2sT7yRfM",
"price": 1999,
"currency": "USD",
"isRecurring": false,
"cycleLength": null,
"cycleUnit": null,
"productUuid": "c4d5e6f7-8a9b-4c0d-9e1f-2a3b4c5d6e7f",
"productPriceUuid": "d5e6f7a8-9b0c-4d1e-af2a-3b4c5d6e7f8a",
"taxBehavior": "exclusive",
"displayCurrency": "localised",
"status": "active",
"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
Checkout link created successfully
Was this page helpful?