Create a Discount

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.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
string
required
string
required
associated_event
object
required
required
Responses

Language
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json