The official SDK supports Node.js 18+ and ships ESM and CommonJS builds with no
runtime dependencies.
Create a client
You can pass an OAuth access token instead of an API key:
Pass exactly one credential type.
Post a POS transaction
The SDK generates an idempotency key for each new POST call and keeps it across
its automatic retries. Pass your own stable key when a job may restart in a new
process.
Typed errors
By default the client retries network errors, 429, and retryable 5xx
responses up to three times, honours Retry-After, and times out each request
after 30 seconds.
Verify webhooks
The helper uses constant-time HMAC comparison and rejects timestamps outside a
five-minute tolerance by default.
The REST API currently contains a few endpoints that are not yet wrapped by
the SDK, including locations and direct wallet pushes. Use the generated API
reference for those calls while keeping the same bearer and retry rules.