createDiscount( )


Developer Preview

This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.

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

Authentication

You can only call this method when authenticated as a Wix app or Wix user identity.

Permissions
Manage Restaurant Catalogs
Manage Restaurants - all permissions
Learn more about app permissions.
Method Declaration
Copy
Method Parameters
catalogIdstringRequired

ID of the catalog the discount belongs to.


optionsCreateDiscountOptionsRequired
Returns
Return Type:Promise<Discount>
Did this help?