Get promotions
Resolves the active promotion for the caller’s detected location. Returns the applicable discount percentage, coupon code, banner widget configuration, and security check results.
Authorizations
The Server API Key obtained from the kelviq application. Pass as a Bearer token in the Authorization header. Example: 'Authorization: Bearer YOUR_API_KEY'
Query Parameters
The promotion ID from the Kelviq dashboard.
Response
Promotion data for the visitor's location
Promotion data resolved for the visitor's detected location.
Full name of the visitor's detected country.
"India"
ISO 3166-1 alpha-2 country code.
"IN"
Discount percentage for the visitor's country. 0 means no active discount.
40
Coupon code the visitor can apply at checkout.
"KQP5LHNZB1Z"
Optional plain-text message. Usually empty — the banner message is in widgets[].countryMessage.
""
UI widgets configured for this promotion. Currently contains one BANNER widget.
Security check results for the visitor. true means the check flagged the request.