curl --request POST \
--url https://api.royalti.io/ddex/ern/generate-batch \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"productIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"providerId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"options": {
"messageControlType": "LiveMessage",
"includeDeals": true,
"includeMEADHooks": true,
"autoDeliver": false,
"priority": "normal",
"batchSize": 10,
"concurrency": 3,
"customSettings": {}
}
}
'{
"workflowId": "<string>",
"status": "<string>",
"productCount": 123,
"batchSize": 123,
"estimatedCompletion": "2023-11-07T05:31:56Z"
}Starts a batch ERN generation flow for multiple products with a provider.
curl --request POST \
--url https://api.royalti.io/ddex/ern/generate-batch \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"productIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"providerId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"options": {
"messageControlType": "LiveMessage",
"includeDeals": true,
"includeMEADHooks": true,
"autoDeliver": false,
"priority": "normal",
"batchSize": 10,
"concurrency": 3,
"customSettings": {}
}
}
'{
"workflowId": "<string>",
"status": "<string>",
"productCount": 123,
"batchSize": 123,
"estimatedCompletion": "2023-11-07T05:31:56Z"
}const response = await fetch('https://api.royalti.io/ddex/ern/generate-batch', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({
"productIds": [
{}
],
"providerId": "sample-providerId",
"options": {
"messageControlType": "sample-messageControlType",
"includeDeals": true,
"includeMEADHooks": true,
"autoDeliver": true,
"priority": "sample-priority",
"batchSize": 1,
"concurrency": 1,
"customSettings": {}
}
})
});
const data = await response.json();
console.log(data);
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"