Create Cadent demo modular source
curl --request POST \
--url https://api.interchange.io/api/v2/storefront/inventory-sources/modular/cadent-demo \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"sourceId": "<string>",
"name": "<string>",
"reset": true,
"seedAvails": true,
"cadentEndpointUrl": "<string>"
}
'{
"inventorySourceId": "<string>",
"sourceId": "<string>",
"projection": {
"inventorySource": {
"id": "<string>",
"storefrontId": "<string>",
"sourceId": "<string>",
"name": "<string>",
"executionType": "MODULAR_SOURCE",
"status": "<string>",
"healthStatus": "<string>",
"lastError": "<string>",
"lastCheckedAt": "2023-11-07T05:31:56Z"
},
"modules": [
{
"moduleRowId": "<string>",
"inventorySourceId": "<string>",
"moduleInstanceId": "<string>",
"name": "<string>",
"provider": "<string>",
"contractId": "<string>",
"contractVersion": "<string>",
"contract": {
"contractId": "<string>",
"version": "<string>",
"moduleType": "<string>",
"displayName": "<string>",
"description": "<string>",
"constraints": [
"<string>"
],
"provider": "<string>"
},
"configuredFieldKeys": [
"<string>"
],
"missingSetupFieldsBySource": [
{
"fields": [
{
"key": "<string>",
"label": "<string>",
"description": "<string>",
"required": true,
"requiredFor": [],
"mapsTo": "<string>",
"enumValues": [
"<string>"
]
}
]
}
],
"lifecycle": [
{
"description": "<string>",
"outputKeys": [
"<string>"
],
"requiredFieldsBySource": [
{
"fields": [
{
"key": "<string>",
"label": "<string>",
"description": "<string>",
"required": true,
"requiredFor": [],
"mapsTo": "<string>",
"enumValues": [
"<string>"
]
}
]
}
],
"missingSetupFieldsBySource": [
{
"fields": [
{
"key": "<string>",
"label": "<string>",
"description": "<string>",
"required": true,
"requiredFor": [],
"mapsTo": "<string>",
"enumValues": [
"<string>"
]
}
]
}
],
"moduleConfigReady": true,
"workItemKind": "<string>",
"taskContract": {
"taskId": "<string>",
"requiredInputKeys": [
"<string>"
],
"requiredResultKeys": [
"<string>"
],
"outputKeys": [
"<string>"
],
"retryable": true,
"blocksStage": true,
"workItemKind": "<string>",
"fallbackWorkItemKind": "<string>",
"operatorAction": "<string>",
"idempotencyKeyFields": [
"<string>"
]
}
}
],
"openWorkItemCount": 4503599627370495,
"openWorkItemCountsByKind": {},
"lastError": "<string>",
"lastCheckedAt": "2023-11-07T05:31:56Z",
"issues": [
"<string>"
]
}
],
"lifecycleSummary": [
{
"supported": true,
"modes": [],
"moduleInstanceIds": [
"<string>"
],
"moduleNames": [
"<string>"
],
"setupConfigured": true,
"runtimeInputsRequired": true,
"hitlRequired": true,
"openWorkItemCount": 4503599627370495,
"requiredRuntimeFieldSources": [],
"missingSetupFieldsBySource": [
{
"fields": [
{
"key": "<string>",
"label": "<string>",
"description": "<string>",
"required": true,
"requiredFor": [],
"mapsTo": "<string>",
"enumValues": [
"<string>"
]
}
]
}
],
"issues": [
"<string>"
]
}
],
"openWorkItemCount": 4503599627370495,
"activeAvailCount": 4503599627370495
},
"products": [
{
"productId": "<string>",
"availId": "<string>",
"collectionId": "<string>",
"collectionName": "<string>",
"name": "<string>",
"description": "<string>",
"channel": "<string>",
"startTime": "2023-11-07T05:31:56Z",
"endTime": "2023-11-07T05:31:56Z",
"impressionsCapacity": 4503599627370495,
"heldImpressions": 4503599627370495,
"bookedImpressions": 4503599627370495,
"availableImpressions": 4503599627370495,
"cpm": 123,
"currency": "<string>",
"targeting": {},
"sourceMetadata": {},
"cadent": {
"campaignDeliveryType": "<string>",
"lineDeliveryType": "<string>",
"adType": "<string>",
"adClass": "<string>",
"targets": [
{
"targetType": "<string>",
"values": [
"<string>"
]
}
]
}
}
]
}Storefront
Create Cadent demo modular source
Create or reset a demo modular inventory source backed by static avails, a booking ledger, and Cadent execution. Intended for operator-driven live demos.
POST
/
inventory-sources
/
modular
/
cadent-demo
Create Cadent demo modular source
curl --request POST \
--url https://api.interchange.io/api/v2/storefront/inventory-sources/modular/cadent-demo \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"sourceId": "<string>",
"name": "<string>",
"reset": true,
"seedAvails": true,
"cadentEndpointUrl": "<string>"
}
'{
"inventorySourceId": "<string>",
"sourceId": "<string>",
"projection": {
"inventorySource": {
"id": "<string>",
"storefrontId": "<string>",
"sourceId": "<string>",
"name": "<string>",
"executionType": "MODULAR_SOURCE",
"status": "<string>",
"healthStatus": "<string>",
"lastError": "<string>",
"lastCheckedAt": "2023-11-07T05:31:56Z"
},
"modules": [
{
"moduleRowId": "<string>",
"inventorySourceId": "<string>",
"moduleInstanceId": "<string>",
"name": "<string>",
"provider": "<string>",
"contractId": "<string>",
"contractVersion": "<string>",
"contract": {
"contractId": "<string>",
"version": "<string>",
"moduleType": "<string>",
"displayName": "<string>",
"description": "<string>",
"constraints": [
"<string>"
],
"provider": "<string>"
},
"configuredFieldKeys": [
"<string>"
],
"missingSetupFieldsBySource": [
{
"fields": [
{
"key": "<string>",
"label": "<string>",
"description": "<string>",
"required": true,
"requiredFor": [],
"mapsTo": "<string>",
"enumValues": [
"<string>"
]
}
]
}
],
"lifecycle": [
{
"description": "<string>",
"outputKeys": [
"<string>"
],
"requiredFieldsBySource": [
{
"fields": [
{
"key": "<string>",
"label": "<string>",
"description": "<string>",
"required": true,
"requiredFor": [],
"mapsTo": "<string>",
"enumValues": [
"<string>"
]
}
]
}
],
"missingSetupFieldsBySource": [
{
"fields": [
{
"key": "<string>",
"label": "<string>",
"description": "<string>",
"required": true,
"requiredFor": [],
"mapsTo": "<string>",
"enumValues": [
"<string>"
]
}
]
}
],
"moduleConfigReady": true,
"workItemKind": "<string>",
"taskContract": {
"taskId": "<string>",
"requiredInputKeys": [
"<string>"
],
"requiredResultKeys": [
"<string>"
],
"outputKeys": [
"<string>"
],
"retryable": true,
"blocksStage": true,
"workItemKind": "<string>",
"fallbackWorkItemKind": "<string>",
"operatorAction": "<string>",
"idempotencyKeyFields": [
"<string>"
]
}
}
],
"openWorkItemCount": 4503599627370495,
"openWorkItemCountsByKind": {},
"lastError": "<string>",
"lastCheckedAt": "2023-11-07T05:31:56Z",
"issues": [
"<string>"
]
}
],
"lifecycleSummary": [
{
"supported": true,
"modes": [],
"moduleInstanceIds": [
"<string>"
],
"moduleNames": [
"<string>"
],
"setupConfigured": true,
"runtimeInputsRequired": true,
"hitlRequired": true,
"openWorkItemCount": 4503599627370495,
"requiredRuntimeFieldSources": [],
"missingSetupFieldsBySource": [
{
"fields": [
{
"key": "<string>",
"label": "<string>",
"description": "<string>",
"required": true,
"requiredFor": [],
"mapsTo": "<string>",
"enumValues": [
"<string>"
]
}
]
}
],
"issues": [
"<string>"
]
}
],
"openWorkItemCount": 4503599627370495,
"activeAvailCount": 4503599627370495
},
"products": [
{
"productId": "<string>",
"availId": "<string>",
"collectionId": "<string>",
"collectionName": "<string>",
"name": "<string>",
"description": "<string>",
"channel": "<string>",
"startTime": "2023-11-07T05:31:56Z",
"endTime": "2023-11-07T05:31:56Z",
"impressionsCapacity": 4503599627370495,
"heldImpressions": 4503599627370495,
"bookedImpressions": 4503599627370495,
"availableImpressions": 4503599627370495,
"cpm": 123,
"currency": "<string>",
"targeting": {},
"sourceMetadata": {},
"cadent": {
"campaignDeliveryType": "<string>",
"lineDeliveryType": "<string>",
"adType": "<string>",
"adClass": "<string>",
"targets": [
{
"targetType": "<string>",
"values": [
"<string>"
]
}
]
}
}
]
}Authorizations
API key or access token
Body
application/json
⌘I