Get promo rule
Get information about a specific promo rule.
Authentication
AuthorizationBearer
Authorization using a Mailchimp API key (a.k.a. Bearer token)
OR
AuthorizationBearer
Authorization using OAuth
Path parameters
store_id
The store id.
promo_rule_id
The id for the promo rule of a store.
Query parameters
fields
A comma-separated list of fields to return. Reference parameters of sub-objects with dot notation.
exclude_fields
A comma-separated list of fields to exclude. Reference parameters of sub-objects with dot notation.
Response
This endpoint returns an object.
_links
A list of link types and descriptions for the API schema documents.
amount
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_foreign
The date and time the promotion was created in ISO 8601 format.
description
The description of a promotion restricted to UTF-8 characters with max length 255.
enabled
Whether the promo rule is currently enabled.
ends_at
The date and time when the promotion ends. Must be after starts_at and in ISO 8601 format.
id
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_at
The date and time when the promotion is in effect in ISO 8601 format.
target
The target that the discount applies to.
Allowed values:
title
The title that will show up in promotion campaign. Restricted to UTF-8 characters with max length of 100 bytes.
type
Type of discount. For free shipping set type to fixed.
Allowed values:
updated_at_foreign
The date and time the promotion was updated in ISO 8601 format.