Menu
Get a voucher
Get a voucher
GET
/shops/{shopKey}/countries/{countryCode}/vouchers/{voucherId}Use it in a workflow
- Add a step and choose the SCAYLE Admin connector.
- Pick the Get a voucher action (under Vouchers).
- Fill in the fields below, then reference the result from later steps as
{{getAVoucher.response.data}}.
Request
Path parameters
Response
Returns 200 with an object. Read it in later steps with {{getAVoucher.response.data.<field>}}.
{
"name": "string",
"type": "absolute",
"value": 0.1,
"id": 0,
"code": "string",
"constraints": {
"date": {
"max": "2021-12-23T11%3A30%3A58%2B00%3A00",
"min": "2021-01-23T11%3A30%3A58%2B00%3A00"
},
"isValidOnCampaigns": false,
"maxApplications": {
"count": 0,
"restriction": "customer"
},
"orderValue": {
"max": 0,
"min": 0
}
},
"criteria": [
{
"key": "shopCategoryId",
"type": "include",
"value": [
null
],
"id": 0
}
],
"isApplicableToPromotions": false,
"status": "active",
"summary": "string"
}
Need more? See the SCAYLE Admin guide for connection setup and behaviour shared by every action.
Was this page helpful?