Pricing

API-first. Headless. Backward 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 — permanently.

Quickstart

Fetch products at the right price per customer.

One query returns catalogue, stock and prices resolved for the channel and the customer's agreement — in real time.

GET /v2/catalog/products
POST /v2/carts/{id}/items
GET /v2/customers/{id}/pricing
storefront.ts
GraphQL cURL
// Fetch the catalogue with customer-specific pricing
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.com/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.

Built for developers, versioned for good

REST & GraphQL

Pick the style that suits you. Same data, full coverage, properly documented.

Webhooks & events

Subscribe to orders, stock, customers and pricing. React in real time.

Stable versions

A versioned API with a deprecation policy — integrations keep working.

SDK:er

TypeScript, PHP and .NET. Typed clients that save you time.

Headless storefront

A Next.js starter and components — or build your own from scratch.

Sandbox & loggar

Sandbox, API logs and keys — full visibility into every call.

Start building

Get keys and start building.

Book a technical walkthrough, or go straight into the interactive demo.