Menu
Get Rule Promotion Codes
Get Rule Promotion Codes
GET
/v2/rule-promotions/{promotionID}/codesUse it in a workflow
- Add a step and choose the Elastic Path connector.
- Pick the Get Rule Promotion Codes action (under Promotions Builder).
- Fill in the fields below, then reference the result from later steps as
{{getRulePromotionCodes.response.data}}.
Request
Path parameters
Query parameters
Headers
Response
Returns 200 with an object. Read it in later steps with {{getRulePromotionCodes.response.data.<field>}}.
{
"data": [
{
"type": "string",
"id": "00000000-0000-0000-0000-000000000000",
"code": "string",
"uses": 0,
"user": "string",
"consume_unit": "per_application",
"max_uses": 0,
"max_uses_per_shopper": {
"max_uses": 0,
"includes_guests": false
},
"is_for_new_shopper": false,
"created_by": "string",
"meta": {
"timestamps": {
"created_at": "2025-01-01T00:00:00Z"
}
}
}
],
"links": {
"current": "string",
"first": "string",
"last": "string",
"next": "string",
"prev": "string"
},
"meta": {
"page": {
"current": 0,
"limit": 0,
"offset": 0,
"total": 0
},
"results": {
"total": 0,
"total_method": "string"
}
}
}
Need more? See the Elastic Path guide for connection setup and behaviour shared by every action.
Was this page helpful?