younifyd
Menu

Create Promotion Codes

Create Promotion Codes

POST/v2/promotions/{promotionID}/codes

Use it in a workflow

  1. Add a step and choose the Elastic Path connector.
  2. Pick the Create Promotion Codes action (under Promotions).
  3. Fill in the fields below, then reference the result from later steps as {{createPromotionCodes.response.data}}.

Request

Path parameters

promotionIDstringrequired

The unique identifier of the promotion.

Headers

Authorizationstring (Bearer)required

The Bearer token required to get access to the API.

Response

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

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

Create Promotion Codes — Elastic Path — Documentation