Skip to navigation

Update promo rule

Update a promo rule.

Authentication

AuthorizationBearer

Authorization using a Mailchimp API key (a.k.a. Bearer token)

OR
AuthorizationBearer
Authorization using OAuth

Path parameters

store_idstringRequired
The store id.
promo_rule_idstringRequired
The id for the promo rule of a store.

Request

Information about an Ecommerce Store's specific Promo Rule.
amountdouble or stringOptional
created_at_foreignstringOptional
The date and time the promotion was created in ISO 8601 format.
descriptionstringOptional

The description of a promotion restricted to UTF-8 characters with max length 255.

enabledbooleanOptional
Whether the promo rule is currently enabled.
ends_atdatetime or date or string or enumOptional
idstringOptionalformat: "\S"1-50 characters

A unique identifier for the promo rule. If Ecommerce platform does not support promo rule, use promo code id as promo rule id. Restricted to UTF-8 characters with max length 50.

starts_atdatetime or date or string or enumOptional
targetenumOptional
The target that the discount applies to.
Allowed values:
titlestringOptional

The title that will show up in promotion campaign. Restricted to UTF-8 characters with max length of 100 bytes.

typeenumOptional
Type of discount. For free shipping set type to fixed.
Allowed values:
updated_at_foreignstringOptional
The date and time the promotion was updated in ISO 8601 format.

Response

This endpoint returns an object.
amountfloatOptional
The amount of the promo code discount. If 'type' is 'fixed', the amount is treated as a monetary value. If 'type' is 'percentage', amount must be a decimal value between 0.0 and 1.0, inclusive.
created_at_foreigndatetimeOptional
The date and time the promotion was created in ISO 8601 format.
descriptionstringOptional

The description of a promotion restricted to UTF-8 characters with max length 255.

enabledbooleanOptional
Whether the promo rule is currently enabled.
ends_atstringOptionalformat: "Promo date-time"

The date and time when the promotion ends. Must be after starts_at and in ISO 8601 format.

idstringOptionalRead-only

A unique identifier for the promo rule. If Ecommerce platform does not support promo rule, use promo code id as promo rule id. Restricted to UTF-8 characters with max length 50.

starts_atdatetimeOptional
The date and time when the promotion is in effect in ISO 8601 format.
targetenumOptional
The target that the discount applies to.
Allowed values:
titlestringOptional

The title that will show up in promotion campaign. Restricted to UTF-8 characters with max length of 100 bytes.

typeenumOptional
Type of discount. For free shipping set type to fixed.
Allowed values:
updated_at_foreigndatetimeOptional
The date and time the promotion was updated in ISO 8601 format.