Create a New Coupon
POST
v1/managers/store/coupons/addCreate a new coupon with various options such as discount type, validity period, and usage limitations.
Request
The Authorization token is a unique key given to the third-party application (Partner) by Zid. It is used to authenticate the API requests made by the Partner application. The token verifies the partner's identity and ensures they have permission to access Zid's API but does not provide any specific user or store information. It should be included in the header of API requests when the partner application needs to access Zid's API.
This token is used to authenticate and access information related to the store. It is obtained through an OAuth mechanism and is required to perform operations on the store's data. The X-Manager-Token
should be included in the header of API requests that require store-related information.
Preferred language for the response. Defaults to en
if not specified.
The name of the coupon for the merchant's own reference. This name will appear on the merchant dashboard and is not visible to the customer.
The unique code for the coupon.
The type of discount to be applied. Use 'f' for a fixed amount and 'p' for a percentage.
The value of the discount.
1
to enable free shipping, 0
to disable it.
1
to enable free Cash On Delivery (COD), 0
to disable it.
The minimum total amount of items in the cart, before shipping, VAT, and other fees, required to apply the coupon. The currency considered is the store's default currency.
The start date for the coupon validity.
The end date for the coupon validity.
The maximum number of times the coupon can be used.
The maximum number of times a single customer can use the coupon.
Specifies where the coupon can be applied.
An array of product UIDs or category IDs on which the coupon will be applied. This field is relevant only if apply_to
is set to products
, categories
, or excluded_products
.
- When
apply_to
is set toproducts
orcategories
, the coupon will apply only to the items or categories specified in this array. - When
apply_to
is set toexcluded_products
, the coupon will apply to all items except those specified in this array.
Indicates whether the coupon is active in Mazeed.
Indicates whether the coupon is active in the Point of Sale (POS) system.
Indicates whether the coupon is valid in the mobile application.
1
to activate the coupon, 0
to deactivate it.