Import rates onto list items
curl --request POST \
--url https://beta.creatorcore.co/api/v2/lists/{id}/import-rates \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-CreatorCore-Organization-Id: <api-key>' \
--data '
{
"deliverableTypeId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'const options = {
method: 'POST',
headers: {
Authorization: 'Bearer <token>',
'X-CreatorCore-Organization-Id': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({deliverableTypeId: '3c90c3cc-0d44-4b50-8888-8dd25736052a'})
};
fetch('https://beta.creatorcore.co/api/v2/lists/{id}/import-rates', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://beta.creatorcore.co/api/v2/lists/{id}/import-rates"
payload = { "deliverableTypeId": "3c90c3cc-0d44-4b50-8888-8dd25736052a" }
headers = {
"Authorization": "Bearer <token>",
"X-CreatorCore-Organization-Id": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"success": true,
"updated": 123,
"missing": 123
}Lists
Import rates onto list items
Replaces every rate on the list with each creator’s rate-card rate for the given deliverable type, in the rate card’s currency (falling back to the creator’s preferred currency, then the org default). Items whose creator has no rate for that type have their rate cleared. Returns how many items received a rate (updated) and how many were cleared (missing).
POST
/
api
/
v2
/
lists
/
{id}
/
import-rates
Import rates onto list items
curl --request POST \
--url https://beta.creatorcore.co/api/v2/lists/{id}/import-rates \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-CreatorCore-Organization-Id: <api-key>' \
--data '
{
"deliverableTypeId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'const options = {
method: 'POST',
headers: {
Authorization: 'Bearer <token>',
'X-CreatorCore-Organization-Id': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({deliverableTypeId: '3c90c3cc-0d44-4b50-8888-8dd25736052a'})
};
fetch('https://beta.creatorcore.co/api/v2/lists/{id}/import-rates', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://beta.creatorcore.co/api/v2/lists/{id}/import-rates"
payload = { "deliverableTypeId": "3c90c3cc-0d44-4b50-8888-8dd25736052a" }
headers = {
"Authorization": "Bearer <token>",
"X-CreatorCore-Organization-Id": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"success": true,
"updated": 123,
"missing": 123
}Authorizations
bearerOrgApiKey & orgIdHeadercookieAuth
Was this page helpful?