curl --request PUT \
--url https://api.royalti.io/product/bulk/defaultsplit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"products": [
"product-id-1",
"product-id-2"
]
}
'{
"message": "Bulk product default splits processed.",
"processed": 5,
"errors": [
"product-id-3 - Artist default split not set!"
]
}/product/bulk/defaultsplit
curl --request PUT \
--url https://api.royalti.io/product/bulk/defaultsplit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"products": [
"product-id-1",
"product-id-2"
]
}
'{
"message": "Bulk product default splits processed.",
"processed": 5,
"errors": [
"product-id-3 - Artist default split not set!"
]
}/product/bulk/defaultsplit endpoint allows setting default splits for multiple products simultaneously.
Method:PATCH
Request Payload:
| Parameter | Type | Description |
|---|---|---|
| productIds | array | An array of product IDs. |
| defaultSplit | array | Default split configuration. |
const response = await fetch('https://api.royalti.io/product/bulk/defaultsplit', {
method: 'PUT',
headers: {
'Authorization': `Bearer ${token}`,
'Content-Type': 'application/json'
},
body: JSON.stringify({
"products": [
{}
]
})
});
const data = await response.json();
console.log(data);
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"
Array of product IDs to update with default splits