Create a new discount with a name, enablement token, associated event, and weight. The enablement token is used to include the discount in a message, and the associated event defines the event and metadata that identifies when the discount has been applied. The weight can be a static value or a function referencing event metadata.

Language
Click Try It! to start a request and see the response here!