Check an HTML Mode discount code

Page-scoped public endpoint for HTML Mode discount validation. The discount context is evaluated against the authenticated path page.

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

Public page unique ID.

Body Params

HTML Mode discount check payload used by Scalev.checkout.validateDiscount(payload).

string
required
string
string | null

Browser hostname supplied by the runtime.

Headers
string
required

Publishable page public API key for the page_unique_id path page. Storefront public API keys are not accepted on page-scoped public routes.

Responses

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