younifyd
Menu

Create A Promotion

Create a Promotion

POST/v2/promotions

Use it in a workflow

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

Request

Headers

Authorizationstring (Bearer)required

The Bearer token required to get access to the API.

Request body

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

dataobjectrequired
promotion_typestringrequired

One offixed_discountpercent_discountitem_fixed_discountitem_percent_discountx_for_yx_for_amountbundle_fixed_discountbundle_gift

json
{
  "data": {
    "promotion_type": "fixed_discount"
  }
}

Response

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

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

Create A Promotion — Elastic Path — Documentation