younifyd
Menu

Delete A Promotion Via Promotion Code

Delete a Promotion via Promotion Code

DELETE/v2/carts/{cartID}/discounts/{promoCode}

Use it in a workflow

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

Request

Path parameters

cartIDstringrequired

Specifies the unique identifier of a cart created by you.

promoCodestringrequired

Specifies the promotion code to be deleted.

Response

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

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

Delete A Promotion Via Promotion Code — Elastic Path — Documentation