API-first. Headless. Backwards compatible.
Everything in HDL Commerce is one API call away. REST and GraphQL, webhooks for every event, SDKs and a headless storefront. Versioned and stable.
Fetch products with the right price per customer.
A single query gives you catalog, stock and prices tailored to channel and customer contract — in real time.
// Fetch the catalog with customer-specific prices
const { products } = await hdl.query(`
query Catalog($channel: Channel!, $tier: String) {
products(channel: $channel, inStock: true) {
id name sku
price(tier: $tier) { amount currency }
stock { available }
}
}`, { channel: 'B2B', tier: customer.tier });
// Add to cart
await hdl.cart.add(cart.id, { sku: products[0].sku, qty: 12 });# Fetch products via REST
curl https://api.hdlcommerce.se/v2/catalog/products \
-H "Authorization: Bearer $HDL_TOKEN" \
-H "X-Channel: b2b" \
-d "customer=cus_8842"
# Response: products with the right price, stock & VAT
{ "data": [ { "sku": "IBK-096", "price": 559 } ] }No surprises, no lock-in.
REST & GraphQL
Pick the style that suits you. Same data, full coverage, well documented.
Webhooks & events
Subscribe to orders, stock, customers and pricing. React in real time.
Stable versions
A versioned API with a long lifespan. Changes that affect the API are announced well in advance.
SDKs
TypeScript, PHP and .NET. Typed clients that save you time.
Headless storefront
A Next.js starter and components — or build entirely your own.
Sandbox & logs
Test environment, API logs and keys — full visibility into every call.
Get your keys and start building.
Book a technical demo and we will walk through the APIs live, on your own use cases.