Menu
Add new criterion to the voucher
Add new criterion to the voucher
POST
/shops/{shopKey}/countries/{countryCode}/vouchers/{voucherId}/criteriaUse it in a workflow
- Add a step and choose the SCAYLE Admin connector.
- Pick the Add new criterion to the voucher action (under Vouchers).
- Fill in the fields below, then reference the result from later steps as
{{addNewCriterionToTheVoucher.response.data}}.
Request
Path parameters
Request body
Enter the body as JSON in the step's Body field.
{
"key": "shopCategoryId",
"type": "include",
"value": [
null
],
"id": 0
}
Response
Returns 201 with an object. Read it in later steps with {{addNewCriterionToTheVoucher.response.data.<field>}}.
{
"key": "shopCategoryId",
"type": "include",
"value": [
null
],
"id": 0
}
Need more? See the SCAYLE Admin guide for connection setup and behaviour shared by every action.
Was this page helpful?