Log a campaign pay-in
curl --request POST \
--url https://beta.creatorcore.co/api/v2/campaigns/{cid}/financials/pay-ins \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-CreatorCore-Organization-Id: <api-key>' \
--data '
{
"invoiceNumber": "<string>",
"amountMinor": 123,
"paymentDate": "<string>"
}
'const options = {
method: 'POST',
headers: {
Authorization: 'Bearer <token>',
'X-CreatorCore-Organization-Id': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({invoiceNumber: '<string>', amountMinor: 123, paymentDate: '<string>'})
};
fetch('https://beta.creatorcore.co/api/v2/campaigns/{cid}/financials/pay-ins', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://beta.creatorcore.co/api/v2/campaigns/{cid}/financials/pay-ins"
payload = {
"invoiceNumber": "<string>",
"amountMinor": 123,
"paymentDate": "<string>"
}
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,
"payIn": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"invoiceNumber": "<string>",
"amountMinor": 123,
"currency": "<string>",
"status": "requested",
"paymentDate": "<string>",
"note": "<string>",
"createdAt": "<string>"
}
}Campaign financials
Log a campaign pay-in
Records a payment from the agency’s client toward the campaign, in the campaign currency. Agency organizations only (403 feature_disabled for brands).
POST
/
api
/
v2
/
campaigns
/
{cid}
/
financials
/
pay-ins
Log a campaign pay-in
curl --request POST \
--url https://beta.creatorcore.co/api/v2/campaigns/{cid}/financials/pay-ins \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-CreatorCore-Organization-Id: <api-key>' \
--data '
{
"invoiceNumber": "<string>",
"amountMinor": 123,
"paymentDate": "<string>"
}
'const options = {
method: 'POST',
headers: {
Authorization: 'Bearer <token>',
'X-CreatorCore-Organization-Id': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({invoiceNumber: '<string>', amountMinor: 123, paymentDate: '<string>'})
};
fetch('https://beta.creatorcore.co/api/v2/campaigns/{cid}/financials/pay-ins', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://beta.creatorcore.co/api/v2/campaigns/{cid}/financials/pay-ins"
payload = {
"invoiceNumber": "<string>",
"amountMinor": 123,
"paymentDate": "<string>"
}
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,
"payIn": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"invoiceNumber": "<string>",
"amountMinor": 123,
"currency": "<string>",
"status": "requested",
"paymentDate": "<string>",
"note": "<string>",
"createdAt": "<string>"
}
}Authorizations
Body
application/json
Was this page helpful?