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