younifyd
Menu

Create promotion codes

Create promotion codes

POST/promotions/{promotionId}/codes

Use it in a workflow

  1. Add a step and choose the SCAYLE Admin connector.
  2. Pick the Create promotion codes action (under PromotionCodes).
  3. Fill in the fields below, then reference the result from later steps as {{createPromotionCodes.response.data}}.

Request

Path parameters

promotionIdstringrequired

Promotion id

Request body

Enter the body as JSON in the step's Body field.

promotionCodesarray<string>required

List of promotion codes

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

Response

Returns 201 with an object. Read it in later steps with {{createPromotionCodes.response.data.<field>}}.

promotionCodesarray<string>

List of promotion codes

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

Need more? See the SCAYLE Admin guide for connection setup and behaviour shared by every action.

Create promotion codes — SCAYLE Admin — Documentation