Validate and apply a discount code

Look up a discount by its code and validate that it can be applied to the current customer.
Returns the discount details if valid, or an error if the code is invalid or the customer is not eligible.

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

The discount code to validate

string

Optional plan ID to validate the discount against

Headers
string
required

The App Id when you create an API key in your Mantle dashboard.

string
required

The API token you receive from your POST request to the /identify endpoint.

Responses

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