Wix site owners can define the coupon to apply to a specific product, a collection of products, or to all of their products within a specific Wix Business Solution.
Coupons are available for the following Wix business solutions:
- Wix Stores
- Wix Bookings
- Wix Events
- Wix Pricing Plans
When creating a coupon via API, you will need to apply a coupon scope. The scope should include:
- Namespace (required)
- Group (optional - if not listed, the coupon will apply to all products/services/events in the namespace)
- Entity ID - (required only when Group is listed)
| Namespace | Group | Entity ID | Result |
|---|
| stores | N/A | N/A | Coupon applies to all products |
| stores | product | product ID | Coupon applies to the specific product with the provided ID |
| stores | collection | collection ID | Coupon applies to the specific collection with the provided ID |
| Namespace | Group | Entity ID | Result |
|---|
| bookings | N/A | N/A | Coupon applies to all services |
| bookings | service | service ID | Coupon applies to the specific service with the provided ID |
| Namespace | Group | Entity ID | Result |
|---|
| events | event | N/A | Coupon applies to all events |
| events | event | event ID | Coupon applies to the specific event with the provided ID |
| events | ticket | N/A | Coupon applies to all tickets |
| events | ticket | ticket ID | Coupon applies to the specific ticket with the provided ID |
| Namespace | Group | Entity ID | Result |
|---|
| pricingPlans | N/A | N/A | Coupon applies to all pricing plans |
| pricingPlans | plan | plan ID | Coupon applies to the specific pricing plan with the provided ID |
| Namespace | Group | Entity ID | Result |
|---|
| restaurants | N/A | N/A | Coupon applies to all menu items |
| restaurants | menu | menu ID | Coupon applies to items of a specific menu |
| restaurants | menuSection | menu section ID | Coupon applies to items of a specific menu section |
| restaurants | menuItem | menu item ID | Coupon applies to the specific menu item |