What errors look like, what each status means, and when to retry.
When a request fails, Modem Pay returns an HTTP status of 400 or higher and a JSON body with a message you can show or log. Many errors also have a code your code can check.
{ "message": "This API key does not have the 'refunds:write' permission required for this request.", "code": "insufficient_scope", "required_scope": "refunds:write"}
Check code in your logic, not message. Messages are written for people and may change. Codes don’t.
Status codes
Status
Meaning
What to do
400
The request is missing something or has a wrong value. Validation errors list every problem in message, separated by commas.
Fix the request. Don’t retry it unchanged.
401
No API key, or the key is wrong, revoked or expired.
Retry with backoff. If it keeps happening, email support.
503
A service we depend on is busy or unavailable.
Retry shortly.
Error codes you may see
code
Status
Meaning
authorization_invalid
401
The Authorization header isn’t Bearer <secret key>.
api_key_missing
401
The header has no key.
public_key_not_allowed
401
A public key was sent where a secret key is needed.
api_key_invalid
401
The key doesn’t exist or doesn’t match the mode.
api_key_revoked
401
The key was revoked.
api_key_expired
401
The key has expired. expired_at says when.
ip_not_allowed
403
The request came from an IP address that isn’t on the allowlist.
insufficient_scope
403
The key is missing the permission in required_scope.
route_not_permitted
403
Restricted keys can’t call this endpoint.
per_transfer_limit_exceeded
403
A payout is above the key’s per-payout limit.
daily_transfer_limit_exceeded
403
The payout would take the key over its daily limit.
DAILY_LIMIT_EXCEEDED
429
The payout would go over the account’s daily limit. See Daily limits.
RATE_LIMIT
429
Too many payout requests in a short time.
VELOCITY_LIMIT
429
The account has sent too much value in the current window.
CONCURRENCY_LIMIT
429
Too many payouts are already being processed.
ACCOUNT_THROTTLED
429
Payouts are paused for a while after many rejected payouts.
INSUFFICIENT_LIQUIDITY
503
Payout capacity is used up for now. Retry shortly.
BATCH_TOO_LARGE
400
A bulk payout has too many items. The limit is 1,000.
Rate limits
Requests to /v1 are limited per business over a rolling 15-minute window. Payouts have their own, stricter limits to protect your balance.When you hit a limit you get a 429:
{ "message": "Too many requests from this account, please try again in 312 seconds.", "retryAfter": 312}
Wait retryAfter seconds before trying again. Responses also carry the standard RateLimit headers, so you can slow down before you reach the limit.Need a higher limit? Email info@modempay.com with your expected volume.
Retries in the SDKs
The SDKs retry failed requests that are likely to be temporary, such as network errors and 5xx responses. They try up to 3 times by default, waiting a little longer each time.
To hide the retry log lines but keep retrying, set RETRY_LOGGING=false in your environment.
Before retrying a payout yourself, send the same Idempotency-Key header as the first attempt. Then a retry can never pay someone twice. See Mobile money payouts.
Timeouts
SDK requests time out after 60 seconds by default. You can change this (in seconds):
const modempay = new ModemPay(process.env.MODEMPAY_SECRET_KEY, { timeout: 20,});
If a payment or payout request times out, don’t assume it failed. Look it up by ID or reference first, or wait for the webhook.
{"docsConfig":{"theme":"aspen","$schema":"https://mintlify.com/docs.json","name":"Modem Pay","description":"Accept mobile money and card payments, send payouts, and split revenue in The Gambia.","colors":{"primary":"#08a591","light":"#08a591","dark":"#08a591"},"logo":{"light":"https://mintcdn.com/modem/yM7VtPyYTpEqFm00/logo/logo.png?fit=max\u0026auto=format\u0026n=yM7VtPyYTpEqFm00\u0026q=85\u0026s=583edb50d45d5f0c7c7cfe8bed561521","dark":"https://mintcdn.com/modem/yM7VtPyYTpEqFm00/logo/logo.png?fit=max\u0026auto=format\u0026n=yM7VtPyYTpEqFm00\u0026q=85\u0026s=583edb50d45d5f0c7c7cfe8bed561521"},"favicon":"https://mintcdn.com/modem/yM7VtPyYTpEqFm00/favicon.png?fit=max\u0026auto=format\u0026n=yM7VtPyYTpEqFm00\u0026q=85\u0026s=7904dfabeae04746c6800ed6c3b3d49d","api":{"playground":{"display":"interactive"},"examples":{"defaults":"required","languages":["curl","python","javascript","php","go","java","ruby"],"prefill":false}},"navbar":{"links":[{"href":"https://docs.modempay.com/documentation/cli","label":"CLI"},{"href":"mailto:info@modempay.com","label":"Support"}],"primary":{"type":"button","label":"Dashboard","href":"https://merchant.modempay.com"}},"footer":{"socials":{"linkedin":"https://linkedin.com/company/modempay"}},"contextual":{"options":["copy","chatgpt","claude","mcp","cursor"],"display":"header"},"styling":{"latex":false},"navigation":{"global":{"anchors":[]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"modem","hasAudioNarration":false,"actualSubdomain":"modem","customDomains":["docs.modempay.com"],"gitSource":{"type":"github","owner":"chibuike-okpara","repo":"documentation","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"entitlements":{},"buildId":"6b0f2de01dbb34c498f9e496","clientVersion":"0.0.4410","searchFilterCounts":[{"language":"default","tag":"Guides","count":38},{"language":"default","tag":"Send money","count":8},{"language":"default","tag":"Get started","count":6},{"language":"default","tag":"Accept payments","count":6},{"language":"default","tag":"Payment intents","count":6},{"language":"default","tag":"Plugins and frameworks","count":6},{"language":"default","tag":"Billing","count":5},{"language":"default","tag":"Invoices","count":5},{"language":"default","tag":"API Reference","count":5},{"language":"default","tag":"Split payments","count":4}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":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":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"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":":not(pre)>code{font-size:0.925em!important;padding:0.12em 0.4em!important;border-radius:6px;word-break:break-word}.prose table,.prose table td,.prose table th{font-size:0.95rem}.prose table :not(pre)>code{font-size:0.9em!important}pre code{font-size:0.875rem!important;line-height:1.6}"}]}
{"page":{"pagePath":"documentation/errors","slug":"/documentation/errors","pageMetadata":{"title":"Errors","description":"What errors look like, what each status means, and when to retry.","href":"/documentation/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: \"What errors look like, what each status means, and when to retry.\"\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={a:`a`,code:`code`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{CodeBlock,CodeGroup,Heading,Table,Tip,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!CodeGroup)_missingMdxReference(`CodeGroup`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Tip)_missingMdxReference(`Tip`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`When a request fails, Modem Pay returns an HTTP status of 400 or higher and a JSON body with a `,_jsx(_components.code,{children:`message`}),` you can show or log. Many errors also have a `,_jsx(_components.code,{children:`code`}),` your code can check.`]}),`\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:` \"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"This API key does not have the 'refunds:write' permission required for this request.\"`}),_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:`\"insufficient_scope\"`}),_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:` \"required_scope\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"refunds:write\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Tip,{children:_jsxs(_components.p,{children:[`Check `,_jsx(_components.code,{children:`code`}),` in your logic, not `,_jsx(_components.code,{children:`message`}),`. Messages are written for people and may change. Codes don’t.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`status-codes`,children:`Status codes`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Status`}),_jsx(_components.th,{children:`Meaning`}),_jsx(_components.th,{children:`What to do`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`400`})}),_jsxs(_components.td,{children:[`The request is missing something or has a wrong value. Validation errors list every problem in `,_jsx(_components.code,{children:`message`}),`, separated by commas.`]}),_jsx(_components.td,{children:`Fix the request. Don’t retry it unchanged.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`401`})}),_jsx(_components.td,{children:`No API key, or the key is wrong, revoked or expired.`}),_jsxs(_components.td,{children:[`Check the key. See `,_jsx(_components.a,{href:`/documentation/authentication#when-a-key-is-refused`,children:`API keys`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`403`})}),_jsx(_components.td,{children:`The key works but isn’t allowed to do this, or the IP address isn’t allowed.`}),_jsx(_components.td,{children:`Add the permission or IP address, or use another key.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`404`})}),_jsx(_components.td,{children:`The thing you asked for doesn’t exist, or belongs to another account or mode.`}),_jsx(_components.td,{children:`Check the ID, and that you’re using a test key for test data and a live key for live data.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`409`})}),_jsx(_components.td,{children:`The request clashes with the current state, for example a duplicate.`}),_jsx(_components.td,{children:`Fetch the latest state before trying again.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`410`})}),_jsx(_components.td,{children:`The endpoint has been removed.`}),_jsxs(_components.td,{children:[`Move to the endpoint named in `,_jsx(_components.code,{children:`message`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`413`})}),_jsx(_components.td,{children:`The request body is too large.`}),_jsx(_components.td,{children:`Send less data per request.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`429`})}),_jsx(_components.td,{children:`Too many requests.`}),_jsxs(_components.td,{children:[`Wait, then retry. See `,_jsx(_components.a,{href:`#rate-limits`,children:`Rate limits`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`500`})}),_jsx(_components.td,{children:`Something went wrong on our side.`}),_jsx(_components.td,{children:`Retry with backoff. If it keeps happening, email support.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`503`})}),_jsx(_components.td,{children:`A service we depend on is busy or unavailable.`}),_jsx(_components.td,{children:`Retry shortly.`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`error-codes-you-may-see`,children:`Error codes you may see`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:_jsx(_components.code,{children:`code`})}),_jsx(_components.th,{children:`Status`}),_jsx(_components.th,{children:`Meaning`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`authorization_invalid`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`401`}),_jsxs(_components.td,{children:[`The `,_jsx(_components.code,{children:`Authorization`}),` header isn’t `,_jsx(_components.code,{children:`Bearer \u003csecret key>`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`api_key_missing`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`401`}),_jsx(_components.td,{children:`The header has no key.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`public_key_not_allowed`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`401`}),_jsx(_components.td,{children:`A public key was sent where a secret key is needed.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`api_key_invalid`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`401`}),_jsx(_components.td,{children:`The key doesn’t exist or doesn’t match the mode.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`api_key_revoked`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`401`}),_jsx(_components.td,{children:`The key was revoked.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`api_key_expired`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`401`}),_jsxs(_components.td,{children:[`The key has expired. `,_jsx(_components.code,{children:`expired_at`}),` says when.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ip_not_allowed`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`403`}),_jsx(_components.td,{children:`The request came from an IP address that isn’t on the allowlist.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`insufficient_scope`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`403`}),_jsxs(_components.td,{children:[`The key is missing the permission in `,_jsx(_components.code,{children:`required_scope`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`route_not_permitted`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`403`}),_jsx(_components.td,{children:`Restricted keys can’t call this endpoint.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`per_transfer_limit_exceeded`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`403`}),_jsx(_components.td,{children:`A payout is above the key’s per-payout limit.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`daily_transfer_limit_exceeded`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`403`}),_jsx(_components.td,{children:`The payout would take the key over its daily limit.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`DAILY_LIMIT_EXCEEDED`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`429`}),_jsxs(_components.td,{children:[`The payout would go over the account’s daily limit. See `,_jsx(_components.a,{href:`/documentation/payouts/daily-limits`,children:`Daily limits`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`RATE_LIMIT`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`429`}),_jsx(_components.td,{children:`Too many payout requests in a short time.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`VELOCITY_LIMIT`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`429`}),_jsx(_components.td,{children:`The account has sent too much value in the current window.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`CONCURRENCY_LIMIT`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`429`}),_jsx(_components.td,{children:`Too many payouts are already being processed.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ACCOUNT_THROTTLED`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`429`}),_jsx(_components.td,{children:`Payouts are paused for a while after many rejected payouts.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`INSUFFICIENT_LIQUIDITY`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`503`}),_jsx(_components.td,{children:`Payout capacity is used up for now. Retry shortly.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`BATCH_TOO_LARGE`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`400`}),_jsx(_components.td,{children:`A bulk payout has too many items. The limit is 1,000.`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`rate-limits`,children:`Rate limits`}),`\n`,_jsxs(_components.p,{children:[`Requests to `,_jsx(_components.code,{children:`/v1`}),` are limited per business over a rolling 15-minute window. Payouts have their own, stricter limits to protect your balance.`]}),`\n`,_jsxs(_components.p,{children:[`When you hit a limit you get a `,_jsx(_components.code,{children:`429`}),`:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,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:`4`,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:` \"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Too many requests from this account, please try again in 312 seconds.\"`}),_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:` \"retryAfter\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`312`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Wait `,_jsx(_components.code,{children:`retryAfter`}),` seconds before trying again. Responses also carry the standard `,_jsx(_components.code,{children:`RateLimit`}),` headers, so you can slow down before you reach the limit.`]}),`\n`,_jsxs(_components.p,{children:[`Need a higher limit? Email `,_jsx(_components.a,{href:`mailto:info@modempay.com`,children:`info@modempay.com`}),` with your expected volume.`]}),`\n`,_jsx(Heading,{level:`2`,id:`retries-in-the-sdks`,children:`Retries in the SDKs`}),`\n`,_jsxs(_components.p,{children:[`The SDKs retry failed requests that are likely to be temporary, such as network errors and `,_jsx(_components.code,{children:`5xx`}),` responses. They try up to `,_jsx(_components.strong,{children:`3 times`}),` by default, waiting a little longer each time.`]}),`\n`,_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`nodejs`,numberOfLines:`3`,language:`javascript`,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:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` modempay`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` ModemPay`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`process`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`env`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`MODEMPAY_SECRET_KEY`}),_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:` maxRetries:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 3`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// 0 turns retries off`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`python`,numberOfLines:`1`,language:`python`,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:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`modem_pay `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ModemPay(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`api_key`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"sk_test_...\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`config`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"maxRetries\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`3`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`})`})]}),`\n`]})})})]}),`\n`,_jsxs(_components.p,{children:[`To hide the retry log lines but keep retrying, set `,_jsx(_components.code,{children:`RETRY_LOGGING=false`}),` in your environment.`]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`Before retrying a payout yourself, send the same `,_jsx(_components.code,{children:`Idempotency-Key`}),` header as the first attempt. Then a retry can never pay someone twice. See `,_jsx(_components.a,{href:`/documentation/payouts/mobile-money#send-a-payout`,children:`Mobile money payouts`}),`.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`timeouts`,children:`Timeouts`}),`\n`,_jsxs(_components.p,{children:[`SDK requests time out after `,_jsx(_components.strong,{children:`60 seconds`}),` by default. You can change this (in seconds):`]}),`\n`,_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`nodejs`,numberOfLines:`3`,language:`javascript`,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:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` modempay`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` ModemPay`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`process`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`env`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`MODEMPAY_SECRET_KEY`}),_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:` timeout:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 20`}),_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(CodeBlock,{filename:`python`,numberOfLines:`1`,language:`python`,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:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`modem_pay `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ModemPay(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`api_key`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"sk_test_...\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`config`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"timeout\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`20`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`})`})]}),`\n`]})})})]}),`\n`,_jsx(_components.p,{children:`If a payment or payout request times out, don’t assume it failed. Look it up by ID or reference first, or wait for the webhook.`})]})}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":"Errors","description":"What errors look like, what each status means, and when to retry.","href":"/documentation/errors"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Status codes","slug":"status-codes","depth":2,"children":[]},{"title":"Error codes you may see","slug":"error-codes-you-may-see","depth":2,"children":[]},{"title":"Rate limits","slug":"rate-limits","depth":2,"children":[]},{"title":"Retries in the SDKs","slug":"retries-in-the-sdks","depth":2,"children":[]},{"title":"Timeouts","slug":"timeouts","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"modem","siteName":"Modem Pay","title":"Errors - Modem Pay","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-13T14:06:29.602Z","originalFileLocation":"documentation/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=\"system\"}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=\"What errors look like, what each status means, and when to retry.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Modem 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/modem/9S6xKPPgd1tjvN3Y/_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/modem/9S6xKPPgd1tjvN3Y/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/modem/9S6xKPPgd1tjvN3Y/_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/modem/9S6xKPPgd1tjvN3Y/_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/modem/9S6xKPPgd1tjvN3Y/_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/modem/9S6xKPPgd1tjvN3Y/_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/modem/9S6xKPPgd1tjvN3Y/_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/modem/9S6xKPPgd1tjvN3Y/_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/modem/9S6xKPPgd1tjvN3Y/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Errors - Modem Pay\">\u003cmeta data-mint-head property=\"og:description\" content=\"What errors look like, what each status means, and when to retry.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Modem Pay\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.modempay.com/documentation/errors\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://modem.mintlify.site/_mintlify/api/og/v2?division=Get+started\u0026amp;title=Errors\u0026amp;description=What+errors+look+like%2C+what+each+status+means%2C+and+when+to+retry.\u0026amp;theme=8b63399a521ea05c9a774dec\u0026amp;signature=3f8abaf1dbd649e8f416aad54ff5e80a939f7fe30214bdcdc77dc314c1965307\">\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=\"Errors - Modem Pay\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"What errors look like, what each status means, and when to retry.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://modem.mintlify.site/_mintlify/api/og/v2?division=Get+started\u0026amp;title=Errors\u0026amp;description=What+errors+look+like%2C+what+each+status+means%2C+and+when+to+retry.\u0026amp;theme=8b63399a521ea05c9a774dec\u0026amp;signature=3f8abaf1dbd649e8f416aad54ff5e80a939f7fe30214bdcdc77dc314c1965307\">\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/modem/9S6xKPPgd1tjvN3Y/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Modem Pay\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#08a591\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.modempay.com/documentation/errors\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/documentation/errors.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.modempay.com/#organization\",\"name\":\"Modem Pay\",\"url\":\"https://docs.modempay.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/modem/yM7VtPyYTpEqFm00/logo/logo.png?fit=max\u0026auto=format\u0026n=yM7VtPyYTpEqFm00\u0026q=85\u0026s=583edb50d45d5f0c7c7cfe8bed561521\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.modempay.com#website\",\"name\":\"Modem Pay\",\"url\":\"https://docs.modempay.com\",\"publisher\":{\"@id\":\"https://docs.modempay.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.modempay.com/documentation/errors#webpage\",\"url\":\"https://docs.modempay.com/documentation/errors\",\"name\":\"Errors\",\"description\":\"What errors look like, what each status means, and when to retry.\",\"dateModified\":\"2026-11-13T14:06:29.602Z\",\"isPartOf\":{\"@id\":\"https://docs.modempay.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.modempay.com/documentation/errors#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.modempay.com/documentation/errors#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Get started\",\"item\":\"https://docs.modempay.com/documentation/introduction\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Errors\",\"item\":\"https://docs.modempay.com/documentation/errors\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.modempay.com/documentation/errors#article\",\"headline\":\"Errors\",\"name\":\"Errors\",\"description\":\"What errors look like, what each status means, and when to retry.\",\"url\":\"https://docs.modempay.com/documentation/errors\",\"mainEntityOfPage\":{\"@id\":\"https://docs.modempay.com/documentation/errors#webpage\"},\"dateModified\":\"2026-11-13T14:06:29.602Z\",\"publisher\":{\"@id\":\"https://docs.modempay.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.modempay.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Modem Pay\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Modem Pay\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/documentation/errors.md","siteName":"Modem Pay","nav":{"global":{"anchors":[]},"tabs":[{"tab":"Guides","groups":[{"group":"Get started","pages":[{"title":"Modem Pay documentation","sidebarTitle":"Introduction","href":"/documentation/introduction"},{"title":"Quickstart","href":"/documentation/quickstart"},{"title":"SDKs and libraries","sidebarTitle":"SDKs","href":"/documentation/installation"},{"title":"API keys","href":"/documentation/authentication"},{"title":"Test mode and going live","sidebarTitle":"Test mode and going live","description":"Build without moving real money, then switch on live payments with confidence.","href":"/documentation/test-mode"},{"title":"Errors","href":"/documentation/errors"}]},{"group":"Developer tools","pages":[{"title":"Modem Pay CLI","description":"Get test webhooks on your laptop, send sample events and create test payments, all from your terminal.","href":"/documentation/cli"}]},{"group":"Accept payments","pages":[{"title":"Choose an integration","href":"/documentation/payments/overview"},{"title":"Payment links","href":"/documentation/core/payment-links"},{"title":"Pay button","href":"/documentation/payments/drop-in"},{"title":"Checkout pop-up","href":"/documentation/payments/modem-inline"},{"title":"HTML Checkout","href":"/documentation/payments/html-checkout"},{"title":"Your own checkout","href":"/documentation/payments/custom"}]},{"group":"Payment intents","pages":[{"title":"Payment intents","sidebarTitle":"Overview","href":"/documentation/payment-intents/overview"},{"title":"Create a payment intent","sidebarTitle":"Create","href":"/documentation/payment-intents/create"},{"title":"Direct charge","href":"/documentation/payment-intents/direct-charge"},{"title":"Check, list and cancel","href":"/documentation/payment-intents/management"},{"title":"Callback URL","href":"/documentation/payment-intents/callback_url"},{"title":"Refunds","href":"/documentation/payment-intents/refund"}]},{"group":"Customers and discounts","pages":[{"title":"Customers","href":"/documentation/core/customers"},{"title":"Mandates","href":"/documentation/core/mandates"},{"title":"Coupons","href":"/documentation/core/coupons"}]},{"group":"Send money","pages":[{"title":"Payouts","sidebarTitle":"Overview","href":"/documentation/payouts/overview"},{"title":"Send a mobile money payout","sidebarTitle":"Mobile money","href":"/documentation/payouts/mobile-money"},{"title":"Send a bank payout","sidebarTitle":"Bank","href":"/documentation/payouts/bank"},{"title":"Bulk payouts","sidebarTitle":"Bulk payouts","href":"/documentation/payouts/bulk-payout"},{"title":"Payout channels","sidebarTitle":"Payout channels","href":"/documentation/payouts/payout-channels"},{"title":"Payout fees","sidebarTitle":"Fees","href":"/documentation/payouts/fees"},{"title":"Daily limits and queued payouts","sidebarTitle":"Daily limits","href":"/documentation/payouts/daily-limits"},{"title":"Reverse a payout","href":"/documentation/payouts/reversals"}]},{"group":"Split payments","pages":[{"title":"Split payments","sidebarTitle":"Overview","href":"/documentation/split-payments/overview"},{"title":"Sub-accounts","href":"/documentation/split-payments/sub-accounts"},{"title":"Sub-account groups","href":"/documentation/split-payments/sub-account-groups"},{"title":"Split a payment","href":"/documentation/split-payments/initialize-payment"}]},{"group":"In person","pages":[{"title":"Virtual terminals","href":"/documentation/virtual-terminal"}]},{"group":"Your money","pages":[{"title":"Balances","href":"/documentation/core/balances"},{"title":"Transactions","href":"/documentation/core/transactions"}]},{"group":"Webhooks","pages":[{"title":"Webhooks","href":"/documentation/core/webhooks"}]}]},{"tab":"Billing","pages":[{"title":"Billing","href":"/billing/invoices/introduction"}]},{"tab":"Plugins and frameworks","pages":[{"title":"Plugins and frameworks","href":"/laravel/quickstart"}]},{"tab":"API Reference","pages":[{"title":"API Reference","href":"/api-reference/create-a-payment-intent"}]}]},"basePath":"","title":"Errors - Modem Pay","deploymentId":"dpl_3VZr4zL4q2wbintGwWjSCGUgnuP7","buildId":"dpl_3VZr4zL4q2wbintGwWjSCGUgnuP7","dynamics":[],"chunks":[]}