younifyd
Menu

Get promotions codes belonging to a specific promotion

Get promotions codes belonging to a specific promotion

GET/promotions/{promotionId}/codes

Use it in a workflow

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

Request

Path parameters

promotionIdstringrequired

Promotion id

Query parameters

limitinteger

Maximum number of entities in the result. When fetching entities with children, the limit always applies to the amount of parent entities (max. 1000).

Default 100

cursorstring

Valid cursor used for pagination.

Response

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

entitiesarray<object>
codestring
enabledboolean
cursorobject
nextstring

The cursor pointing to the next page. If null there is no next page available.

json
{
  "entities": [
    {
      "code": "BF24",
      "enabled": true
    }
  ],
  "cursor": {
    "next": "MQ=="
  }
}

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

Get promotions codes belonging to a specific promotion — SCAYLE Admin — Documentation