Creates a Coupon.
Required Fields
namecodetypeamountapplies_toRead Only Fields
idnum_usesNotes
The coupon type can be one of the following:
per_item_discountper_total_discountshipping_discountfree_shippingpercentage_discountLegacy coupon codes only work with the store’s default currency. Applying a coupon with any other currency other than the store’s default will result in the error: “Coupons only apply to default currency.”
The discount to apply to an order, as either an amount or a percentage. This field’s usage is determined by the coupon type. For example, a type of + percentage_discount would determine a percentage here.
Specifies when a coupon expires. Coupons need not have an expiry date – you can also control expiry via + max_uses or max_uses_per_customer. If you do use this date field, the value must be in RFC 2822 format.
If the coupon is enabled, this field’s value is true; otherwise, false.
This is a list of shipping-method names. A shipping method must be enabled on the store to use it with a coupon. To check which shipping methods are enabled, please use the List Shipping Methods endpoint.
The discount to apply to an order, as either an amount or a percentage. This field’s usage is determined by the coupon type. For example, a type of + percentage_discount would determine a percentage here.
The coupon’s ID. This is a read-only field; do not set or modify its value in a POST or PUT request.
If the coupon is enabled, this field’s value is true; otherwise, false.
Specifies when a coupon expires. Coupons need not have an expiry date – you can also control expiry via + max_uses or max_uses_per_customer. If you do use this date field, the value must be in RFC 2822 format.
Number of times this coupon has been used. This is a read-only field; do not set or modify its value in a POST or PUT request.
This is a list of shipping-method names. A shipping method must be enabled on the store to use it with a coupon. To check which shipping methods are enabled, please use the List Shipping Methods endpoint.
For example requests and more information about authenticating BigCommerce APIs, see Authentication and Example Requests.
For more about BigCommerce OAuth scopes, see our Guide to API Accounts.
For a list of API status codes, see API Status Codes.
The MIME type of the response body.