Skip to main content
POST
/
ddex
/
ern
/
generate-batch
Generate ERN in batch
curl --request POST \
  --url https://server26-dot-royalti-project.uc.r.appspot.com/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"
}

Code Examples

const response = await fetch('https://server26-dot-royalti-project.uc.r.appspot.com/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);

Authorizations

Authorization
string
header
required

JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"

Body

application/json
productIds
string<uuid>[]
required
providerId
string<uuid>
required
options
object

Response

Accepted - Batch ERN generation flow started

workflowId
string
status
string
productCount
integer
batchSize
integer
estimatedCompletion
string<date-time>