Menu
Create A Promotion
Create a Promotion
POST
/v2/promotionsUse it in a workflow
- Add a step and choose the Elastic Path connector.
- Pick the Create A Promotion action (under Promotions).
- Fill in the fields below, then reference the result from later steps as
{{createAPromotion.response.data}}.
Request
Headers
Request body
Enter the body as JSON in the step's Body field.
{
"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.
Was this page helpful?