Installation
fetch and crypto).
Initialize the client
Configuration options
| Option | Type | Default | Description |
|---|---|---|---|
clientId | string | required | Auth0 M2M client ID |
clientSecret | string | required | Auth0 M2M client secret |
environment | string | "production" | "development", "staging", or "production" |
baseUrl | string | per environment | Override API base URL |
maxRetries | number | 3 | Max retry attempts on 429/5xx |
retryBaseDelay | number | 500 | Base delay in ms for exponential backoff |
timeout | number | 30000 | Request timeout in ms |
Resources
The client exposes typed resource namespaces:Submit a bilateral instruction
List settlements
Webhook signature verification
Error handling
The SDK throws typed errors you can catch and handle:Idempotency
Always use idempotency keys when creating settlements or submitting instructions. The SDK provides a helper:API Reference
See the full API reference for all available endpoints and parameters.