younifyd
Menu

Delete Rule Promotion Codes

Delete Rule Promotion Codes

DELETE/v2/rule-promotions/{promotionID}/codes

Use it in a workflow

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

Request

Path parameters

promotionIDstringrequired

The unique identifier of the rule promotion.

Headers

Authorizationstring (Bearer)required

The Bearer token required to get access to the API.

Request body

Enter the body as JSON in the step's Body field.

dataobject
typestring
codesarray<object>6 fields

Specifies the code details in an array of objects.

json
{
  "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.

Delete Rule Promotion Codes — Elastic Path — Documentation