DELETE
/
api-offers
/
promo
/
{promoId}

Authorizations

Authorization
string
headerrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

x-site-context
string
required

The x-site-context header is a JSON object that contains information about the source you wish to pull from. The mandatory account is the 24 character identifier found in Copilot. The channel (Sales channel ID), stage (environment name), and date attributes can be used to further narrow the scope of your data source.

Path Parameters

promoId
number
required

ID of the promotion to be deleted

Response

200 - application/json
_id
string

A 24-character system-generated promotion ID.

promoId
number

A unique identifier of the promotion, for external use.

promoCodes
string[]

A list of coupon codes that are applicable only for coupons. For coupons, the response includes promo codes associated with the coupon. For promotions, the response includes an empty array.

state
enum<string>

Promotion status. <br /> ACTIVE indicates that the promotion is applied to SKUs or items for which it is set as Active. Active promotions cannot be disabled.<br />SCHEDULED indicates that the promotion is scheduled to be applied to SKUs or items based on the defined start date.<br />DISABLED indicates that the promotion is set as disabled and is not in use. Only Disabled promotions can be enabled.<br />EXPIRED indicates that the promotion is stopped by setting the expiration date. That is, the start date and end date as the current date. Only those promotions that are not expired can be enabled.

Available options:
ACTIVE,
SCHEDULED,
DISABLED,
EXPIRED
isImplicit
boolean

A flag indicating whether an offer is applied automatically. Set it to true for promotions, which should be applied automatically and false for coupons, which must be applied explicitly.

title
string

Title of the promotion

buyOperator
enum<string>
default: OR

It is used to define operator between different Buy conditions (different conditions as mentioned in the condition object)

Available options:
AND,
OR
promo
object[]
startDate
string

Start date of the promotion

endDate
string

End date of the promotion

isExclusive
boolean

A flag indicating whether a coupon can be stacked with an existing promotion. Set it to true to prevent the coupon from being applied to items that have promotions and false to allow coupon to be applied with existing promotions.

type
enum<string>

Promotion type.<br /> Product: SKU promotion. Promotion or discount on SKUs based on the value mentioned in discount object<br />CART: Cart promotion. Promotion or discount on cart amount based on the ORDER_VALUE that is set in condition object<br />QUANTITY: Quantity promotion provides discounts based on the quantity requirement set in the promotion<br />BOGO: Buy One Get One promotion provides discounts based on the Buy conditions and Get discounts<br />SHIPPING: Shipping promotion provides discounts on the shipping cost<br />BUYGET: BuyGet promotion specifies the Buy conditions and Get discounts<br />SPEND_GET: SpendGet promotion can specify the requirement of cart order value and the corresponding Get discounts

Available options:
PRODUCT,
CART,
QUANTITY,
BOGO,
SHIPPING,
BUYGET,
SPEND_GET
stackingType
enum<string>

Defines the rules for how a promotion can be combined with other promotions. This field determines whether a specific promotion can be applied in conjunction with other active promotions during a transaction or if it must be used exclusively. Possible values: - STACKABLE: This promotion can be combined with other stackable promotions, allowing multiple discounts to be applied together. The order in which stackable promotions are applied is determined by the level field, with promotions having a higher priority (lower numeric value) being applied before those with a lower priority.

  • EXCLUSIVE: This promotion cannot be combined with any other promotions. The level field is used to determine which exclusive promotion will be evaluated and applied first. Once an exclusive promotion is applied, no other promotions can be used in the same transaction.
  • TYPE_EXCLUSIVE: This promotion cannot be combined with other promotions of the same type. The level field is used to determine which promotion within the same type will be evaluated and applied first.
  • UNIVERSAL: This promotion can be combined with any other promotions without restrictions. Universal promotions will be evaluated last. We don't need to define level for this type.
Available options:
STACKABLE,
EXCLUSIVE,
TYPE_EXCLUSIVE,
UNIVERSAL
level
integer

The promotion execution order. Promotion types are assigned default execution orders. Initial evaluation begins with level 1 promotions. The result of level 1 is used as the base price for level 2. Similarly, the result of level 2 becomes the base price for level 3, and so on.

termsAndConditions
object[]
promotionMessages
object[]
proximityMessages
object[]
shipmentMethodIds
string[]

Required for Shipping type promo to provide eligible shipment Methods

eligiblePriceList
number[]

IDs of the price lists to which this promotion is applied

limits
object[]

Array of limits for the promotion to be applied

note
string

Promotion note or description

createdAt
string

Creation date of the record

updatedAt
string

Last updated date of the record

deleted
boolean

true: promotion is deleted<br /> false: promotion is not deleted