promotionId and Client API key, and the banner will render automatically for eligible visitors.
You will need two values:
promotionId— the unique ID of the promotion (pre-filled in the snippet).accessToken— your Client API key. Find it in Settings → Developers → Client API key.
HTML / JS
Add the script snippet to the<head> of your page. It loads the SDK asynchronously, initializes it with your promotion, and renders the banner automatically. You can also call getUpdatedPrice(), updatePriceElement(), and updatePrice() to display discounted prices on the page.
Promotions UI JS SDK
Installation,
init() options, auto price update with data attributes, JS API reference, and CSS hooks.React / Next.js
Install@kelviq/react-promotions-ui, wrap your app in <KQProvider>, and place <KQBanner /> where you want the banner to appear. Use KQPriceFormatted or the granular price components to show discounted prices anywhere on the page.
React Promotions UI SDK
Installation,
KQProvider props, KQBanner, KQPriceFormatted, granular price components, and sandbox setup.Direct API
Fetch promotion data directly from the REST API if you want to apply discounts in a custom checkout flow or build your own UI. The response includes the active discount percentage for the caller’s detected location. The ready-to-usecurl snippet is available in the Integration tab of your promotion.
GET /promotions
Full API reference — request parameters, response schema, and example response.