Skip to main content
All Lyel Pay API errors follow a consistent format. The code field is a stable string from the @lyelpay/errors package — it won’t change between versions, so it’s safe to key business logic on it.

Error response format


Using typed error codes

Install the errors package to get autocompletion and type safety:
Then match errors by code:

Common errors by scenario

Authentication

Payments

OTP

Accounts

Withdrawals

Webhooks


HTTP status codes


Full error code list

All error codes are exported from @lyelpay/errors:
The package exports ErrorCodes (the object) and ErrorCode (the type). Error codes are stable API contracts — they will not be renamed or removed.