Menu
List the promotions
List the promotions
GET
/v1/promotionsUse it in a workflow
- Add a step and choose the SCAYLE Storefront connector.
- Pick the List the promotions action (under promotions).
- Fill in the fields below, then reference the result from later steps as
{{listThePromotions.response.data}}.
Request
Query parameters
Headers
Response
Returns 200 with an object. Read it in later steps with {{listThePromotions.response.data.<field>}}.
{
"pagination": {
"current": 0,
"total": 0,
"first": 0,
"last": 0,
"next": 0,
"prev": 0,
"page": 0,
"perPage": 0
},
"entities": [
{
"id": "string",
"name": "string",
"displayName": "string",
"isActive": false,
"priority": 0,
"schedule": {
"from": "2023-01-26T09:30:15Z",
"to": "2023-01-26T09:30:15Z"
},
"effect": {},
"conditions": [
{
"key": "string",
"level": "global",
"condition": "string"
}
],
"tiers": [
{
"id": 0,
"name": "string",
"mov": 0,
"effect": {
"additionalData": {}
}
}
],
"customData": {
"headline": "string",
"subline": "string",
"link": "string",
"hideCountDown": false,
"highlightProductCards": false,
"condition": "string",
"color": {
"background": "string",
"text": "string"
},
"product": {
"badgeLabel": "string",
"attributeId": 0
}
}
}
]
}
Need more? See the SCAYLE Storefront guide for connection setup and behaviour shared by every action.
Was this page helpful?