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);