createDiscount( )


Deprecated

This method is deprecated and was replaced with createDiscountRule.

Creates a discount. You can create discounts for catalogs, sections, or dishes. You can't create a discount that applies to a menu.

Method Declaration
Copy
Method Parameters
catalogIdstringRequired

ID of the catalog the discount belongs to.


optionsCreateDiscountOptions
Returns
Return Type:Promise<Discount>
Errors

This method doesn't return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?