younifyd
Menu

Create coupons/deleteByCodes

Create coupons/deleteByCodes

POST/V1/coupons/deleteByCodes

Use it in a workflow

  1. Add a step and choose the Adobe Commerce connector.
  2. Pick the Create coupons/deleteByCodes action (under Promotions).
  3. Fill in the fields below, then reference the result from later steps as {{createCouponsDeletebycodes.response.data}}.

Request

Request body

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

codesarray<string>required
ignoreInvalidCouponsboolean
json
{
  "codes": [
    "string"
  ],
  "ignoreInvalidCoupons": false
}

Response

Returns 200 with an object. Read it in later steps with {{createCouponsDeletebycodes.response.data.<field>}}.

failed_itemsarray<string>

List of failed items.

missing_itemsarray<string>

List of missing items.

json
{
  "failed_items": [
    "string"
  ],
  "missing_items": [
    "string"
  ]
}

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

Create coupons/deleteByCodes — Adobe Commerce — Documentation