@checkoutmain/inventory-api
v1.0.0
Published
Typed client for the CheckoutMain Inventory API (LiquidCulture POS, High Spirits POS)
Readme
@checkoutmain/inventory-api
Typed client for the CheckoutMain Inventory API. Types are generated from
docs/integrations/openapi.yaml (npm run generate); client.ts adds auth,
API-Version, retry on 429/503 honouring Retry-After, cursor iteration and a
typed InventoryApiError with code, doc and requestId.
import { InventoryApi } from '@checkoutmain/inventory-api'
const api = new InventoryApi({ key: process.env.LC_KEY! })
const store = await api.store()
for await (const item of api.items({ updated_after: '2026-10-15T00:00:00Z' })) {
upsert(item)
}Docs: https://checkoutmain.co/developers/liquidculture
