client.js into
your project or adapt it. It is not published to npm.
Features
KalixoClient.sandbox()/.production()factory helpersplaceOrder()with yourexternalOrderCodeidempotency key and per-linecountrywaitForOrder()- waits untilestimatedReadyAt, polls every 60s, and gives up after a maximum wait (2 hours by default)- Retries
429(usingRetry-After),5xxand network errors with backoff KalixoErrorwithstatusCodeand theX-Request-Idto quote to supportnewExternalOrderCode()helper for stable idempotency keys
Usage
Requires Node 18+ (
fetch built in) and ES modules ("type": "module" or a .mjs file).
For older Node versions, swap fetch for your HTTP library.