Skip to main content
This is a reference implementation - copy client.js into your project or adapt it. It is not published to npm.

Features

  • KalixoClient.sandbox() / .production() factory helpers
  • placeOrder() with your externalOrderCode idempotency key
  • waitForOrder() - waits until estimatedReadyAt, then polls every 60s
  • Automatic 429 backoff using Retry-After
  • newExternalOrderCode() helper for stable idempotency keys

Usage

Requires Node 18+ (fetch built in). For older Node versions, pass a fetch polyfill or swap fetch for your HTTP library.
See also the polling example for a minimal inline version without the client class.