Menu
Create an item set for promotions
Create an item set for promotions
POST
/promotions/item-setsUse it in a workflow
- Add a step and choose the SCAYLE Admin connector.
- Pick the Create an item set for promotions action (under PromotionItemSets).
- Fill in the fields below, then reference the result from later steps as
{{createAnItemSetForPromotions.response.data}}.
Request
Request body
Enter the body as JSON in the step's Body field.
{
"name": "T-Shirts",
"eligibleItemsQuantity": 1,
"id": "64cbc70225ae598c0d0d0334",
"variantIds": [
1,
2,
3
],
"condition": "payload.items.exists(i, 11003 in i.variant.id)"
}
Response
Returns 201 with an object. Read it in later steps with {{createAnItemSetForPromotions.response.data.<field>}}.
{
"name": "T-Shirts",
"eligibleItemsQuantity": 1,
"id": "64cbc70225ae598c0d0d0334",
"variantIds": [
1,
2,
3
],
"condition": "payload.items.exists(i, 11003 in i.variant.id)"
}
Need more? See the SCAYLE Admin guide for connection setup and behaviour shared by every action.
Was this page helpful?