younifyd
Menu

Delete A Promotion Code

Delete a Promotion Code

DELETE/v2/promotions/{promotionID}/codes/{code}

Use it in a workflow

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

Request

Path parameters

promotionIDstringrequired

Specifies the unique identifier of the promotion associated with the codes.

codestringrequired

Specifies the code that you want to delete.

Headers

Authorizationstring (Bearer)required

The Bearer token required to get access to the API.

Response

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

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

Delete A Promotion Code — Elastic Path — Documentation