younifyd
Menu

Get Promotion Codes

Get Promotion Codes

GET/v2/promotions/{promotionID}/codes

Use it in a workflow

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

Request

Path parameters

promotionIDstringrequired

The unique identifier of the promotion.

Query parameters

filterstring

This parameter accepts a filtering expression that uses specific operators and attributes. Promotion codes are case-insensitive. The following operators and attributes are available when filtering on this endpoint. See [Supported Filtering Characters](/guides/Getting-Started/filtering#supported-characters). | Attribute | Type | Operator | Example | |:--------- |:---------|:------------|:---------------| | `code` | `string`, `number` | `eq`, `gt` | `eq(code,summer2024)`, `gt(code,2024)` |

Headers

Authorizationstring (Bearer)required

The Bearer token required to get access to the API.

Response

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

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

Get Promotion Codes — Elastic Path — Documentation