Manage Discounts

List of available APIs

Operation HTTP Request Resource Request Description
getOne
GET /discounts/{idOrCode}
Get a discount
createDiscount
POST /discounts
Discount Create a discount
generateSingleUseCodes
POST /discounts/{id}/generate
SingleUseCodeGenerationRequest Generate coupons
getAllDiscounts
GET /discounts
Get list of discounts
updateDiscount
PUT /discounts/{id}
Discount Update a discount
declareUsages
POST /discounts/usages
DiscountUsageDeclaration Declare discount usages
applyDiscountsOnCart
POST /discounts/discount/cart
Cart Apply discounts on cart
applyDiscountsOnAProduct
POST /discounts/discount/product
Product Apply discounts on a product
deleteDiscount
DELETE /discounts/{id}
Delete a discount
importDiscount
POST /discounts/import
Discount Import a discount