Add Product Discount (Seller)
Adds or updates a discount on a product.Path Parameters
Product identifier
Request Body
Discount percentage (1-99)
When the discount starts (optional, defaults to now)
When the discount ends (optional, null for indefinite)
Response Codes
204 No Content- Discount added successfully400 Bad Request- Invalid discount percentage or dates404 Not Found- Product not found or seller doesn’t own the product
Examples
Error Response Examples
Invalid Percentage (400 Bad Request):Remove Product Discount (Seller)
Removes the active discount from a product, returning it to regular price.Path Parameters
Product identifier
Response Codes
204 No Content- Discount removed successfully400 Bad Request- Product has no active discount404 Not Found- Product not found or seller doesn’t own the product
Examples
Error Response Examples
No Active Discount (400 Bad Request):View Discounted Products
Retrieves all products currently on discount. This endpoint is documented in detail in the Products API.Quick Example
cURL
Discount Management Guide
Discount Types
Wolfix.Server currently supports percentage-based discounts:- Minimum: 1%
- Maximum: 99%
- Applied to the base product price
Discount Calculation
Scheduling Discounts
Best Practices
Flash Sales: Use short date ranges (e.g., 24-48 hours) to create urgency
Seasonal Sales: Schedule discounts for holidays or special events in advance
Clearance: Use indefinite discounts (no end date) for clearance items
Discount Policies
- One Discount Per Product - Only one discount can be active at a time
- Seller-Managed - Each seller manages their own product discounts
- Automatic Pricing - Discounted prices are calculated and displayed automatically
- Override Discounts - Adding a new discount replaces any existing discount
- Immediate Effect - Discount changes take effect immediately (unless scheduled)
Monitoring Discount Performance
Track the effectiveness of your discounts by monitoring:- Product views before and during discount period
- Conversion rates
- Total sales volume
- Revenue impact
- Customer acquisition from discounted products