docs
  1. Promotions
  2. Promotion Codes
  3. Create Promotion Codes

Create promotion codes

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

PromotionCodes

​
PromotionCodes Operations

Create promotion codes

​

This endpoint can be used to create promotion codes for an existing promotion.

Path Parameters

  • Promotion id

Body·

required
application/json
  • List of promotion codes

Responses

  • application/json
  • application/json
  • application/json
  • application/json
  • application/json
Request Example for post/promotions/{promotionId}/codes
let promotionCodes = {
  "promotionCodes": ["BF24", "XMAS24"],
};

let response = await client.apis.PromotionCodes.createPromotionCodes({promotionId: "645e0c241a93369ff53f26e0"}, {requestBody: promotionCodes});
let createdPromotionCodes = response.body;

{
  "promotionCodes": [
    "BF24",
    "XMAS24"
  ]
}

Models

​
​

Last updated: December 02, 2026