idinteger
Unique identifier for the resource. read-only
codestring
Coupon code. mandatory
amountstring
The amount of discount. Should always be numeric, even if setting a percentage.
date_createdstring (date-time)
The date the coupon was created, in the site's timezone. read-only
date_created_gmtstring (date-time)
The date the coupon was created, as GMT. read-only
date_modifiedstring (date-time)
The date the coupon was last modified, in the site's timezone. read-only
date_modified_gmtstring (date-time)
The date the coupon was last modified, as GMT. read-only
discount_typestring
Determines the type of discount that will be applied.
One ofpercentfixed_cartfixed_productDefault "fixed_cart"
descriptionstring
Coupon description.
date_expiresstring (date-time)
The date the coupon expires, in the site's timezone.
date_expires_gmtstring (date-time)
The date the coupon expires, as GMT.
usage_countinteger
Number of times the coupon has been used already. read-only
individual_useboolean
If true, the coupon can only be used individually. Other applied coupons will be removed from the cart.
Default false
product_idsarray<integer>
List of product IDs the coupon can be used on.
excluded_product_idsarray<integer>
List of product IDs the coupon cannot be used on.
usage_limitinteger
How many times the coupon can be used in total.
usage_limit_per_userinteger
How many times the coupon can be used per customer.
limit_usage_to_x_itemsinteger
Max number of items in the cart the coupon can be applied to.
free_shippingboolean
If true and if the free shipping method requires a coupon, this coupon will enable free shipping.
Default false
product_categoriesarray<integer>
List of category IDs the coupon applies to.
excluded_product_categoriesarray<integer>
List of category IDs the coupon does not apply to.
exclude_sale_itemsboolean
If true, this coupon will not be applied to items that have sale prices.
Default false
minimum_amountstring
Minimum order amount that needs to be in the cart before coupon applies.
maximum_amountstring
Maximum order amount allowed when using the coupon.
email_restrictionsarray<string>
List of email addresses that can use this coupon.
meta_dataarray<object>5 fieldsMeta data.
idinteger
Unique identifier for the resource. read-only
codestring
Coupon code. mandatory
amountstring
The amount of discount. Should always be numeric, even if setting a percentage.
date_createdstring (date-time)
The date the coupon was created, in the site's timezone. read-only
date_created_gmtstring (date-time)
The date the coupon was created, as GMT. read-only
date_modifiedstring (date-time)
The date the coupon was last modified, in the site's timezone. read-only
date_modified_gmtstring (date-time)
The date the coupon was last modified, as GMT. read-only
discount_typestring
Determines the type of discount that will be applied.
One ofpercentfixed_cartfixed_productDefault "fixed_cart"
descriptionstring
Coupon description.
date_expiresstring (date-time)
The date the coupon expires, in the site's timezone.
date_expires_gmtstring (date-time)
The date the coupon expires, as GMT.
usage_countinteger
Number of times the coupon has been used already. read-only
individual_useboolean
If true, the coupon can only be used individually. Other applied coupons will be removed from the cart.
Default false
product_idsarray<integer>
List of product IDs the coupon can be used on.
excluded_product_idsarray<integer>
List of product IDs the coupon cannot be used on.
usage_limitinteger
How many times the coupon can be used in total.
usage_limit_per_userinteger
How many times the coupon can be used per customer.
limit_usage_to_x_itemsinteger
Max number of items in the cart the coupon can be applied to.
free_shippingboolean
If true and if the free shipping method requires a coupon, this coupon will enable free shipping.
Default false
product_categoriesarray<integer>
List of category IDs the coupon applies to.
excluded_product_categoriesarray<integer>
List of category IDs the coupon does not apply to.
exclude_sale_itemsboolean
If true, this coupon will not be applied to items that have sale prices.
Default false
minimum_amountstring
Minimum order amount that needs to be in the cart before coupon applies.
maximum_amountstring
Maximum order amount allowed when using the coupon.
email_restrictionsarray<string>
List of email addresses that can use this coupon.
meta_dataarray<object>5 fieldsMeta data.
idinteger
Unique identifier for the resource. read-only
codestring
Coupon code. mandatory
amountstring
The amount of discount. Should always be numeric, even if setting a percentage.
date_createdstring (date-time)
The date the coupon was created, in the site's timezone. read-only
date_created_gmtstring (date-time)
The date the coupon was created, as GMT. read-only
date_modifiedstring (date-time)
The date the coupon was last modified, in the site's timezone. read-only
date_modified_gmtstring (date-time)
The date the coupon was last modified, as GMT. read-only
discount_typestring
Determines the type of discount that will be applied.
One ofpercentfixed_cartfixed_productDefault "fixed_cart"
descriptionstring
Coupon description.
date_expiresstring (date-time)
The date the coupon expires, in the site's timezone.
date_expires_gmtstring (date-time)
The date the coupon expires, as GMT.
usage_countinteger
Number of times the coupon has been used already. read-only
individual_useboolean
If true, the coupon can only be used individually. Other applied coupons will be removed from the cart.
Default false
product_idsarray<integer>
List of product IDs the coupon can be used on.
excluded_product_idsarray<integer>
List of product IDs the coupon cannot be used on.
usage_limitinteger
How many times the coupon can be used in total.
usage_limit_per_userinteger
How many times the coupon can be used per customer.
limit_usage_to_x_itemsinteger
Max number of items in the cart the coupon can be applied to.
free_shippingboolean
If true and if the free shipping method requires a coupon, this coupon will enable free shipping.
Default false
product_categoriesarray<integer>
List of category IDs the coupon applies to.
excluded_product_categoriesarray<integer>
List of category IDs the coupon does not apply to.
exclude_sale_itemsboolean
If true, this coupon will not be applied to items that have sale prices.
Default false
minimum_amountstring
Minimum order amount that needs to be in the cart before coupon applies.
maximum_amountstring
Maximum order amount allowed when using the coupon.
email_restrictionsarray<string>
List of email addresses that can use this coupon.
meta_dataarray<object>5 fieldsMeta data.