Add promo code
Add a new promo code to a store.
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.
Request
Information about an Ecommerce Store's specific Promo Code.
code
The discount code. Restricted to UTF-8 characters with max length 50.
id
A unique identifier for the promo code. Restricted to UTF-8 characters with max length 50.
redemption_url
The url that should be used in the promotion campaign restricted to UTF-8 characters with max length 2000.
created_at_foreign
The date and time the promotion was created in ISO 8601 format.
enabled
Whether the promo code is currently enabled.
updated_at_foreign
The date and time the promotion was updated in ISO 8601 format.
usage_count
Number of times promo code has been used.
Response
_links
A list of link types and descriptions for the API schema documents.
code
The discount code. Restricted to UTF-8 characters with max length 50.
created_at_foreign
The date and time the promotion was created in ISO 8601 format.
enabled
Whether the promo code is currently enabled.
id
A unique identifier for the promo Code.
redemption_url
The url that should be used in the promotion campaign restricted to UTF-8 characters with max length 2000.
updated_at_foreign
The date and time the promotion was updated in ISO 8601 format.
usage_count
Number of times promo code has been used.