curl --request GET \
--url https://api.royalti.io/checklist/productsplits \
--header 'Authorization: Bearer <token>'{
"all": [
{
"id": "p1b2c3d4-e5f6-7890-1234-567890abcdef"
},
{
"id": "p1b2c3d4-e5f6-7890-1234-567890abcdef"
}
],
"defaultset": [
{
"id": "p1b2c3d4-e5f6-7890-1234-567890abcdef",
"upc": "123456789012",
"title": "Greatest Hits Album",
"displayArtist": "Artist Name",
"split": 100
}
]
}/checklist/productsplits
curl --request GET \
--url https://api.royalti.io/checklist/productsplits \
--header 'Authorization: Bearer <token>'{
"all": [
{
"id": "p1b2c3d4-e5f6-7890-1234-567890abcdef"
},
{
"id": "p1b2c3d4-e5f6-7890-1234-567890abcdef"
}
],
"defaultset": [
{
"id": "p1b2c3d4-e5f6-7890-1234-567890abcdef",
"upc": "123456789012",
"title": "Greatest Hits Album",
"displayArtist": "Artist Name",
"split": 100
}
]
}all: List of all product IDsdefaultset: Products with default splits configuredx-tenant-id: Required. The tenant IDAuthorization: Required. Bearer token for authenticationconst response = await fetch('https://api.royalti.io/checklist/productsplits', {
method: 'GET',
headers: {
'Authorization': `Bearer ${token}`,
},
});
const data = await response.json();
console.log(data);