Understand and handle Lyel Pay API errors with typed error codes.
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.
Stable error code — use this in your switch statements
Using typed error codes
Install the errors package to get autocompletion and type safety:
npm install @lyelpay/errors
Then match errors by code:
import { ErrorCodes } from '@lyelpay/errors';try { await lyel.charge({ intentionId });} catch (err) { switch (err.code) { case ErrorCodes.E_INSUFFICIENT_FUNDS: showToast('Your wallet balance is too low. Please top up and try again.'); break; case ErrorCodes.E_INVALID_OTP: showToast('Invalid code. Please check and try again.'); break; case ErrorCodes.E_OTP_EXPIRED: showToast('Your code has expired. Request a new one.'); break; case ErrorCodes.E_OTP_BLOCKED: showToast('Too many attempts. Please wait before trying again.'); break; case ErrorCodes.E_ACCOUNT_BLOCKED: showToast('This account has been blocked. Contact support.'); break; default: console.error('Unexpected error:', err.code, err.message); }}
Common errors by scenario
Authentication
Code
HTTP
When it happens
E_INVALID_API_KEY
401
API key is wrong or revoked
E_UNAUTHORIZED
401
No valid token on a protected endpoint
E_JWT_EXPIRED
401
JWT has expired — re-authenticate
E_JWT_INVALID
401
JWT is malformed or tampered
E_FORBIDDEN
403
Valid token but insufficient permissions
Payments
Code
HTTP
When it happens
E_INSUFFICIENT_FUNDS
422
Payer’s wallet balance too low
E_SELF_PAYMENT
422
Sender and recipient are the same account
E_INVALID_AMOUNT
422
Amount is zero, negative, or exceeds limits
E_MAX_AMOUNT_EXCEEDED
422
Above daily/transaction cap
E_MONTHLY_LIMIT_EXCEEDED
422
User’s monthly transfer limit reached
E_CREATE_PAYMENT_FAILED
500
Internal error creating the payment
E_INTENTION_NOT_FOUND
404
The intentionId doesn’t exist or has expired
OTP
Code
HTTP
When it happens
E_INVALID_OTP
422
Wrong OTP code entered
E_OTP_EXPIRED
422
OTP has passed its validity window
E_OTP_BLOCKED
429
Too many failed OTP attempts
E_OTP_COOLDOWN
429
Too soon to request another OTP
E_MAX_DAILY_ATTEMPTS
429
Daily OTP request limit reached
Accounts
Code
HTTP
When it happens
E_ACCOUNT_NOT_FOUND
404
User ID or phone number not found
E_ACCOUNT_BLOCKED
403
Account is temporarily suspended
E_ACCOUNT_PERMANENTLY_BLOCKED
403
Account is permanently disabled
E_ACCOUNT_NOT_ACTIVATED
403
Account created but not yet verified
E_KYC_LEVEL_INSUFFICIENT
403
Operation requires a higher KYC tier
Withdrawals
Code
HTTP
When it happens
E_WITHDRAW_INSUFFICIENT_FUNDS
422
Not enough balance to withdraw
E_WITHDRAW_DAILY_LIMIT_REACHED
422
Daily withdrawal cap hit
E_WITHDRAW_NOT_FOUND
404
Withdrawal ID doesn’t exist
E_WITHDRAW_FORBIDDEN
403
Account not authorized to withdraw
Webhooks
Code
HTTP
When it happens
E_INVALID_TOKEN
401
Webhook signature verification failed
HTTP status codes
Status
Meaning
200
Success
201
Created
400
Bad request (malformed body, missing fields)
401
Unauthenticated
403
Authenticated but not authorized
404
Resource not found
422
Validation error or business rule violation
429
Rate limit or cooldown
500
Internal server error — contact support if persistent
Full error code list
All error codes are exported from @lyelpay/errors:
import { ErrorCodes, ErrorCode } from '@lyelpay/errors';// ErrorCode is the union type of all possible code valuesfunction handleError(code: ErrorCode) { // TypeScript will warn you if you mistype a code}
The package exports ErrorCodes (the object) and ErrorCode (the type). Error codes are stable API contracts — they will not be renamed or removed.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Lyel Pay","colors":{"primary":"#0ECBB8","light":"#5EEAD4","dark":"#08313A"},"logo":{"light":"https://mintcdn.com/lyelpay/AiN246gyolRR55uu/logo/logo-light.svg?fit=max\u0026auto=format\u0026n=AiN246gyolRR55uu\u0026q=85\u0026s=d38dc781b3ae41fa2aed797a8152a9b3","dark":"https://mintcdn.com/lyelpay/AiN246gyolRR55uu/logo/logo-dark.svg?fit=max\u0026auto=format\u0026n=AiN246gyolRR55uu\u0026q=85\u0026s=df562c8d8561dca3131815cf5ce21a0e"},"favicon":"https://mintcdn.com/lyelpay/PhWHzZUTGxU8_s0R/favicon.ico?fit=max\u0026auto=format\u0026n=PhWHzZUTGxU8_s0R\u0026q=85\u0026s=61041366f3bd464d6d8a54adea2047ac","appearance":{"default":"dark"},"background":{"decoration":"gradient","color":{"light":"#F8FAF9","dark":"#050E12"}},"navbar":{"primary":{"type":"button","label":"Dashboard","href":"https://lyel-pay-developer-portal.vercel.app"}},"footer":{"socials":{"x":"https://x.com/lyelpay","linkedin":"https://linkedin.com/company/lyelpay"}},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"Status","icon":"signal","href":"https://status.lyelpay.com"},{"anchor":"Community","icon":"discord","href":"https://discord.gg/lyelpay"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"lyelpay","hasAudioNarration":false,"actualSubdomain":"lyelpay","customDomains":["developer.lyelpay.com"],"gitSource":{"type":"github","owner":"lyelpay","repo":"developer-docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6ae957e1e37977b6234f07cf:success","clientVersion":"0.0.4377","searchFilterCounts":[{"language":"default","tag":"Documentation","count":12},{"language":"default","tag":"Get Started","count":4},{"language":"default","tag":"SDKs","count":4},{"language":"default","tag":"Guides","count":3},{"language":"default","tag":"Integrations","count":1}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"#navbar,#sidebar{background-color:#050e12;border-color:rgba(255, 255, 255, 0.08)}#content-area{background-color:#050e12}card{border-color:rgba(255, 255, 255, 0.08)}"}]}
{"page":{"pagePath":"guides/errors","slug":"/guides/errors","pageMetadata":{"title":"Error Handling","description":"Understand and handle Lyel Pay API errors with typed error codes.","href":"/guides/errors"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Understand and handle Lyel Pay API errors with typed error codes.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,hr:`hr`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{Accordion,CodeBlock,Heading,Table}=_components;if(!Accordion)_missingMdxReference(`Accordion`,true);if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`All Lyel Pay API errors follow a consistent format. The `,_jsx(_components.code,{children:`code`}),` field is a stable string from the `,_jsx(_components.code,{children:`@lyelpay/errors`}),` package — it won’t change between versions, so it’s safe to key business logic on it.`]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`error-response-format`,children:`Error response format`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`5`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"statusCode\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`422`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Insufficient funds\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"E_INSUFFICIENT_FUNDS\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`statusCode`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`number`})}),_jsx(_components.td,{children:`HTTP status code`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`message`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`string`})}),_jsx(_components.td,{children:`Human-readable description`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`code`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`string`})}),_jsx(_components.td,{children:`Stable error code — use this in your switch statements`})]})]})]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`using-typed-error-codes`,children:`Using typed error codes`}),`\n`,_jsx(_components.p,{children:`Install the errors package to get autocompletion and type safety:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`npm`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` install`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` @lyelpay/errors`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Then match errors by code:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`25`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`25`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`ErrorCodes`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '@lyelpay/errors'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`try`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` lyel`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`charge`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({ `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`intentionId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` });`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`} `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`catch`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`err`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` switch`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`err`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`code`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` case`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` ErrorCodes`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`E_INSUFFICIENT_FUNDS`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` showToast`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'Your wallet balance is too low. Please top up and try again.'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` break`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` case`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` ErrorCodes`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`E_INVALID_OTP`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` showToast`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'Invalid code. Please check and try again.'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` break`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` case`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` ErrorCodes`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`E_OTP_EXPIRED`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` showToast`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'Your code has expired. Request a new one.'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` break`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` case`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` ErrorCodes`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`E_OTP_BLOCKED`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` showToast`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'Too many attempts. Please wait before trying again.'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` break`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` case`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` ErrorCodes`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`E_ACCOUNT_BLOCKED`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` showToast`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'This account has been blocked. Contact support.'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` break`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` default`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`error`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'Unexpected error:'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`err`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`code`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`err`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`message`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`common-errors-by-scenario`,children:`Common errors by scenario`}),`\n`,_jsx(Heading,{level:`3`,id:`authentication`,children:`Authentication`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Code`}),_jsx(_components.th,{children:`HTTP`}),_jsx(_components.th,{children:`When it happens`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`E_INVALID_API_KEY`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`401`}),_jsx(_components.td,{children:`API key is wrong or revoked`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`E_UNAUTHORIZED`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`401`}),_jsx(_components.td,{children:`No valid token on a protected endpoint`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`E_JWT_EXPIRED`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`401`}),_jsx(_components.td,{children:`JWT has expired — re-authenticate`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`E_JWT_INVALID`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`401`}),_jsx(_components.td,{children:`JWT is malformed or tampered`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`E_FORBIDDEN`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`403`}),_jsx(_components.td,{children:`Valid token but insufficient permissions`})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`payments`,children:`Payments`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Code`}),_jsx(_components.th,{children:`HTTP`}),_jsx(_components.th,{children:`When it happens`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`E_INSUFFICIENT_FUNDS`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`422`}),_jsx(_components.td,{children:`Payer’s wallet balance too low`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`E_SELF_PAYMENT`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`422`}),_jsx(_components.td,{children:`Sender and recipient are the same account`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`E_INVALID_AMOUNT`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`422`}),_jsx(_components.td,{children:`Amount is zero, negative, or exceeds limits`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`E_MAX_AMOUNT_EXCEEDED`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`422`}),_jsx(_components.td,{children:`Above daily/transaction cap`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`E_MONTHLY_LIMIT_EXCEEDED`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`422`}),_jsx(_components.td,{children:`User’s monthly transfer limit reached`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`E_CREATE_PAYMENT_FAILED`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`500`}),_jsx(_components.td,{children:`Internal error creating the payment`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`E_INTENTION_NOT_FOUND`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`404`}),_jsxs(_components.td,{children:[`The `,_jsx(_components.code,{children:`intentionId`}),` doesn’t exist or has expired`]})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`otp`,children:`OTP`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Code`}),_jsx(_components.th,{children:`HTTP`}),_jsx(_components.th,{children:`When it happens`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`E_INVALID_OTP`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`422`}),_jsx(_components.td,{children:`Wrong OTP code entered`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`E_OTP_EXPIRED`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`422`}),_jsx(_components.td,{children:`OTP has passed its validity window`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`E_OTP_BLOCKED`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`429`}),_jsx(_components.td,{children:`Too many failed OTP attempts`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`E_OTP_COOLDOWN`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`429`}),_jsx(_components.td,{children:`Too soon to request another OTP`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`E_MAX_DAILY_ATTEMPTS`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`429`}),_jsx(_components.td,{children:`Daily OTP request limit reached`})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`accounts`,children:`Accounts`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Code`}),_jsx(_components.th,{children:`HTTP`}),_jsx(_components.th,{children:`When it happens`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`E_ACCOUNT_NOT_FOUND`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`404`}),_jsx(_components.td,{children:`User ID or phone number not found`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`E_ACCOUNT_BLOCKED`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`403`}),_jsx(_components.td,{children:`Account is temporarily suspended`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`E_ACCOUNT_PERMANENTLY_BLOCKED`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`403`}),_jsx(_components.td,{children:`Account is permanently disabled`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`E_ACCOUNT_NOT_ACTIVATED`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`403`}),_jsx(_components.td,{children:`Account created but not yet verified`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`E_KYC_LEVEL_INSUFFICIENT`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`403`}),_jsx(_components.td,{children:`Operation requires a higher KYC tier`})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`withdrawals`,children:`Withdrawals`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Code`}),_jsx(_components.th,{children:`HTTP`}),_jsx(_components.th,{children:`When it happens`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`E_WITHDRAW_INSUFFICIENT_FUNDS`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`422`}),_jsx(_components.td,{children:`Not enough balance to withdraw`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`E_WITHDRAW_DAILY_LIMIT_REACHED`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`422`}),_jsx(_components.td,{children:`Daily withdrawal cap hit`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`E_WITHDRAW_NOT_FOUND`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`404`}),_jsx(_components.td,{children:`Withdrawal ID doesn’t exist`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`E_WITHDRAW_FORBIDDEN`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`403`}),_jsx(_components.td,{children:`Account not authorized to withdraw`})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`webhooks`,children:`Webhooks`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Code`}),_jsx(_components.th,{children:`HTTP`}),_jsx(_components.th,{children:`When it happens`})]})}),_jsx(_components.tbody,{children:_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`E_INVALID_TOKEN`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`401`}),_jsx(_components.td,{children:`Webhook signature verification failed`})]})})]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`http-status-codes`,children:`HTTP status codes`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Status`}),_jsx(_components.th,{children:`Meaning`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`200`})}),_jsx(_components.td,{children:`Success`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`201`})}),_jsx(_components.td,{children:`Created`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`400`})}),_jsx(_components.td,{children:`Bad request (malformed body, missing fields)`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`401`})}),_jsx(_components.td,{children:`Unauthenticated`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`403`})}),_jsx(_components.td,{children:`Authenticated but not authorized`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`404`})}),_jsx(_components.td,{children:`Resource not found`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`422`})}),_jsx(_components.td,{children:`Validation error or business rule violation`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`429`})}),_jsx(_components.td,{children:`Rate limit or cooldown`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`500`})}),_jsx(_components.td,{children:`Internal server error — contact support if persistent`})]})]})]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`full-error-code-list`,children:`Full error code list`}),`\n`,_jsxs(_components.p,{children:[`All error codes are exported from `,_jsx(_components.code,{children:`@lyelpay/errors`}),`:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`6`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`6`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`ErrorCodes`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`ErrorCode`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '@lyelpay/errors'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// ErrorCode is the union type of all possible code values`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`function`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` handleError`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`code`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` ErrorCode`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // TypeScript will warn you if you mistype a code`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`The package exports `,_jsx(_components.code,{children:`ErrorCodes`}),` (the object) and `,_jsx(_components.code,{children:`ErrorCode`}),` (the type). Error codes are `,_jsx(_components.strong,{children:`stable API contracts`}),` — they will not be renamed or removed.`]}),`\n`,_jsx(Accordion,{title:`View all error codes`,id:`view-all-error-codes`,children:_jsx(CodeBlock,{numberOfLines:`78`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`78`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`E_ACCOUNT_ALREADY_VERIFIED`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`E_ACCOUNT_BLOCKED`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`E_ACCOUNT_NOT_ACTIVATED`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`E_ACCOUNT_NOT_ACTIVATED_OR_BLOCKED`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`E_ACCOUNT_NOT_FOUND`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`E_ACCOUNT_PERMANENTLY_BLOCKED`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`E_API_KEY_NOT_FOUND`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`E_API_KEY_REVOKE_ERROR`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`E_BAD_GATEWAY_SMS`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`E_BANK_DETAILS_REQUIRED`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`E_BENEFICIARY_ACCOUNT_BLOCKED`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`E_CANCEL_DEPOSIT_FAILED`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`E_CANNOT_AUTHENTICATE`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`E_COMMISSION_NOT_FOUND`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`E_COMPANY_ALREADY_EXISTS`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`E_COMPANY_NOT_FOUND`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`E_CONTACT_ALREADY_EXISTS`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`E_COUNTRY_NOT_AUTHORIZED`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`E_COUNTRY_UNKNOWN`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`E_CREATE_PAYMENT_FAILED`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`E_DEPOSIT_ALREADY_RETRIED`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`E_DEPOSIT_FAILED`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`E_DEPOSIT_NOT_CANCELLABLE`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`E_DEPOSIT_NOT_FOUND`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`E_DEPOSIT_NOT_RETRYABLE`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`E_DEPOSIT_TO_YOURSELF`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`E_EMAIL_EXISTS`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`E_FAILED_TO_CREATE_ACCOUNT`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`E_FORBIDDEN`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`E_GEO_RESTRICTED`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`E_INSUFFICIENT_FUNDS`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`E_INTENTION_NOT_FOUND`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`E_INTERNAL_SERVER_ERROR`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`E_INVALID_AMOUNT`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`E_INVALID_API_KEY`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`E_INVALID_OTP`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`E_INVALID_PASSWORD`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`E_INVALID_PERMISSIONS`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`E_INVALID_PHONE_NUMBER`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`E_INVALID_PROVIDER`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`E_INVALID_REFRESH_TOKEN`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`E_JWT_EXPIRED`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`E_JWT_INVALID`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`E_KYC_ALREADY_APPROVED`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`E_KYC_DOCUMENT_NOT_FOUND`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`E_KYC_FLAGGED`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`E_KYC_LEVEL_INSUFFICIENT`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`E_KYC_TIER_LIMIT_EXCEEDED`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`E_LEDGER_FAILED`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`E_MAX_AMOUNT_EXCEEDED`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`E_MAX_DAILY_ATTEMPTS`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`E_MERCHANT_BLOCKED`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`E_MERCHANT_INACTIVE`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`E_MERCHANT_INSUFFICIENT_BALANCE`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`E_MERCHANT_NOT_FOUND`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`E_MONTHLY_LIMIT_EXCEEDED`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`E_NOT_FOUND`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`E_OPERATION_TYPE_MISMATCH`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`E_OTP_BLOCKED`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`E_OTP_COOLDOWN`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`E_OTP_EXPIRED`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`E_PAYMENT_ALREADY_REFUNDED`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`E_PAYMENT_NOT_FOUND`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`E_PAYMENT_NOT_REFUNDABLE`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`E_PHONE_EXISTS`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`E_PROFILE_NOT_FOUND`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`E_REFUND_AMOUNT_EXCEEDS_ORIGINAL`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`E_SAME_USER`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`E_SELF_PAYMENT`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`E_TOO_FREQUENT_TRANSACTIONS`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`E_UNAUTHORIZED`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`E_USER_NOT_FOUND`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`E_WITHDRAW_DAILY_LIMIT_REACHED`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`E_WITHDRAW_FORBIDDEN`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`E_WITHDRAW_INSUFFICIENT_FUNDS`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`E_WITHDRAW_NOT_FOUND`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`E_WRONG_PASSWORD`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Error Handling","description":"Understand and handle Lyel Pay API errors with typed error codes.","href":"/guides/errors"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Error response format","slug":"error-response-format","depth":2,"children":[]},{"title":"Using typed error codes","slug":"using-typed-error-codes","depth":2,"children":[]},{"title":"Common errors by scenario","slug":"common-errors-by-scenario","depth":2,"children":[{"title":"Authentication","slug":"authentication","depth":3,"children":[]},{"title":"Payments","slug":"payments","depth":3,"children":[]},{"title":"OTP","slug":"otp","depth":3,"children":[]},{"title":"Accounts","slug":"accounts","depth":3,"children":[]},{"title":"Withdrawals","slug":"withdrawals","depth":3,"children":[]},{"title":"Webhooks","slug":"webhooks","depth":3,"children":[]}]},{"title":"HTTP status codes","slug":"http-status-codes","depth":2,"children":[]},{"title":"Full error code list","slug":"full-error-code-list","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"lyelpay","siteName":"Lyel Pay","title":"Error Handling - Lyel Pay","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-05-17T09:03:32.895Z","originalFileLocation":"guides/errors.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"dark\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Understand and handle Lyel Pay API errors with typed error codes.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Lyel Pay\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/lyelpay/vJJNJj-xTXn4B7kO/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/lyelpay/vJJNJj-xTXn4B7kO/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/lyelpay/vJJNJj-xTXn4B7kO/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/lyelpay/vJJNJj-xTXn4B7kO/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/lyelpay/vJJNJj-xTXn4B7kO/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/lyelpay/vJJNJj-xTXn4B7kO/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/lyelpay/vJJNJj-xTXn4B7kO/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/lyelpay/vJJNJj-xTXn4B7kO/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/lyelpay/vJJNJj-xTXn4B7kO/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Error Handling - Lyel Pay\">\u003cmeta data-mint-head property=\"og:description\" content=\"Understand and handle Lyel Pay API errors with typed error codes.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Lyel Pay\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://developer.lyelpay.com/guides/errors\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://lyelpay.mintlify.site/_mintlify/api/og/v2?division=Guides\u0026amp;title=Error+Handling\u0026amp;description=Understand+and+handle+Lyel+Pay+API+errors+with+typed+error+codes.\u0026amp;theme=af88209f7d5e9694e0729e2e\u0026amp;signature=3bb1d017945df6f229ee3762371a9b84d657ab9f82395f486ddfc53584f74814\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Error Handling - Lyel Pay\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Understand and handle Lyel Pay API errors with typed error codes.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://lyelpay.mintlify.site/_mintlify/api/og/v2?division=Guides\u0026amp;title=Error+Handling\u0026amp;description=Understand+and+handle+Lyel+Pay+API+errors+with+typed+error+codes.\u0026amp;theme=af88209f7d5e9694e0729e2e\u0026amp;signature=3bb1d017945df6f229ee3762371a9b84d657ab9f82395f486ddfc53584f74814\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/lyelpay/vJJNJj-xTXn4B7kO/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Lyel Pay\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0ECBB8\">\u003clink data-mint-head rel=\"canonical\" href=\"https://developer.lyelpay.com/guides/errors\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/guides/errors.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://developer.lyelpay.com/#organization\",\"name\":\"Lyel Pay\",\"url\":\"https://developer.lyelpay.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/lyelpay/AiN246gyolRR55uu/logo/logo-light.svg?fit=max\u0026auto=format\u0026n=AiN246gyolRR55uu\u0026q=85\u0026s=d38dc781b3ae41fa2aed797a8152a9b3\"}},{\"@type\":\"WebSite\",\"@id\":\"https://developer.lyelpay.com#website\",\"name\":\"Lyel Pay\",\"url\":\"https://developer.lyelpay.com\",\"publisher\":{\"@id\":\"https://developer.lyelpay.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://developer.lyelpay.com/guides/errors#webpage\",\"url\":\"https://developer.lyelpay.com/guides/errors\",\"name\":\"Error Handling\",\"description\":\"Understand and handle Lyel Pay API errors with typed error codes.\",\"dateModified\":\"2026-05-17T09:03:32.895Z\",\"isPartOf\":{\"@id\":\"https://developer.lyelpay.com#website\"},\"breadcrumb\":{\"@id\":\"https://developer.lyelpay.com/guides/errors#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://developer.lyelpay.com/guides/errors#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Guides\",\"item\":\"https://developer.lyelpay.com/guides/accept-payment\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Error Handling\",\"item\":\"https://developer.lyelpay.com/guides/errors\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://developer.lyelpay.com/guides/errors#article\",\"headline\":\"Error Handling\",\"name\":\"Error Handling\",\"description\":\"Understand and handle Lyel Pay API errors with typed error codes.\",\"url\":\"https://developer.lyelpay.com/guides/errors\",\"mainEntityOfPage\":{\"@id\":\"https://developer.lyelpay.com/guides/errors#webpage\"},\"dateModified\":\"2026-05-17T09:03:32.895Z\",\"publisher\":{\"@id\":\"https://developer.lyelpay.com/#organization\"},\"isPartOf\":{\"@id\":\"https://developer.lyelpay.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Lyel Pay\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Lyel Pay\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/guides/errors.md","siteName":"Lyel Pay","nav":{"global":{"anchors":[{"anchor":"Status","icon":"signal","href":"https://status.lyelpay.com"},{"anchor":"Community","icon":"discord","href":"https://discord.gg/lyelpay"}]},"tabs":[{"tab":"Documentation","groups":[{"group":"Get Started","pages":[{"title":"Introduction","href":"/introduction"},{"title":"Quickstart","href":"/quickstart"},{"title":"Authentication","href":"/authentication"},{"title":"Sandbox","href":"/sandbox"}]},{"group":"SDKs","pages":[{"title":"JavaScript SDK","href":"/sdks/javascript"},{"title":"Node.js SDK","href":"/sdks/node"},{"title":"Python SDK","href":"/sdks/python"},{"title":"React SDK","href":"/sdks/react"}]},{"group":"Integrations","pages":[{"title":"Odoo","href":"/integrations/odoo"}]},{"group":"Guides","pages":[{"title":"Accept a Payment","href":"/guides/accept-payment"},{"title":"Webhooks","description":"Receive real-time notifications when payments complete, fail, or expire.","href":"/guides/webhooks"},{"title":"Error Handling","href":"/guides/errors"}]}]}]},"basePath":"","title":"Error Handling - Lyel Pay","deploymentId":"dpl_Ab6nteg7kvyK8iL73naC2n7fmsWK","buildId":"dpl_Ab6nteg7kvyK8iL73naC2n7fmsWK","dynamics":[],"chunks":[]}