Menu
Delete Rule Promotion Codes
Delete Rule Promotion Codes
DELETE
/v2/rule-promotions/{promotionID}/codesUse it in a workflow
- Add a step and choose the Elastic Path connector.
- Pick the Delete Rule Promotion Codes action (under Promotions Builder).
- Fill in the fields below, then reference the result from later steps as
{{deleteRulePromotionCodes.response.data}}.
Request
Path parameters
Headers
Request body
Enter the body as JSON in the step's Body field.
{
"data": {
"type": "string",
"codes": [
{
"code": "string",
"uses": 0,
"user": "string",
"consume_unit": "per_application",
"max_uses_per_shopper": {
"max_uses": 0,
"includes_guests": false
},
"is_for_new_shopper": false
}
]
}
}
Response
Returns 204 with a any. Read it in later steps with {{deleteRulePromotionCodes.response.data.<field>}}.
Need more? See the Elastic Path guide for connection setup and behaviour shared by every action.
Was this page helpful?