docs
  1. Resources
  2. Vouchers
  3. Get A Voucher

Get a voucher

v1.204.1
OpenAPI 3.0.3

This is the specification of the SCAYLE Admin API.

For more information about how to interact with the Admin API, you can read the respective developer guide. The developer guide includes code samples for our PHP SDK, for our Java SDK and for JavaScript and curl.

Authentication is done via X-Access-Token HTTP Header as described here.

Base url should be prefixed with /api/admin/v1.

If a client side timeout is deemed necessary, it is recommended to set it at a minimum of 380 seconds.

Server:https://{tenant-space}.admin.api.scayle.cloud/v1
Client Libraries

Vouchers

​

Get a voucher

​

This endpoint can be used to get a single voucher by voucher ID. See more details in the Developer Guide.

Path Parameters

  • The shop key.

  • The shop country code; use shop country ID instead of country code when a country is ambiguous within a shop.

  • The voucher ID.

Responses

  • application/json
  • application/json
  • application/json
Request Example for get/shops/{shopKey}/countries/{countryCode}/vouchers/{voucherId}
response = await adminApi.apis.Vouchers.getVoucher({shopKey: 'ms', countryCode: 'DE', voucherId: 1});
let voucher = response.body;

console.log(voucher.name);

{
  "id": 1234567980,
  "code": "testcode",
  "constraints": {
    "date": {
      "max": "2021-12-23T11:30:58+00:00",
      "min": "2021-01-23T11:30:58+00:00"
    },
    "isValidOnCampaigns": true,
    "maxApplications": {
      "count": 1,
      "restriction": "customer"
    },
    "orderValue": {
      "max": 200000,
      "min": 7500
    }
  },
  "criteria": [
    {
      "id": 1,
      "key": "customerId",
      "type": "include",
      "value": [
        1
      ]
    }
  ],
  "name": "Testvoucher",
  "status": "active",
  "summary": "Voucher utilised for automated for testing",
  "type": "relative",
  "value": 0.1,
  "isApplicableToPromotions": true
}

Models

​
​
​
​
​
​
​

Last updated: December 02, 2026