Overview
Use the Henry Shopping SDK to power search, product detail pages, and variant availability checks across any merchant on the internet. The SDK exposes normalized pricing, rich metadata, and optional variant validation so you can build immersive shopping experiences quickly.Prerequisites
- Henry API key from Sandbox or Production
@henrylabs/sdkinstalled in your backend or server runtime- Optional
x-user-idvalue when you want to associate requests with an end user (pass via request options)
1
Search the catalog
Start with Each result includes basic product metadata such as SKU ID, name, pricing, images, merchant name so you can render initial product cards.
client.products.search to retrieve items that match a keyword plus optional filters.2
Fetch enriched product details
When a shopper selects an item, call The detail payload gives you everything you need to render a information rich product page, allowing users to compare variants, add to cart, and launch checkout.
client.products.retrieveDetails with the productId from search. The response returns a product link, variants, reviews, SKU pricing, and additional images.3
Check variant availability (optional)
Need live stock info for a specific variant combination? Use the experimental Status values include
client.products.variantCheck helpers. The create call returns a request ID you can poll with retrieveStatus.processing, completed, or timeout. When the request completes, data.stockStatus.available indicates whether the combination is in stock, and data.stockStatus.details surfaces per-attribute matches.Variant checks are currently experimental. Expect the schema to evolve and add
graceful fallbacks when the service returns
failed or timeout.Error handling
401 Unauthorized— confirm the API key you passed to the client.404 Not Found— the product or variant request may have expired; rerun the search or create the variant check again.- Variant check polling can return
timeout; prompt users to retry if that occurs.
Next steps
- Persist the
idreturned from search so you can correlate cart adds. - Continue to Universal Cart to let shoppers save the products they discover.

