Skip to content

Errors

Errors are RFC 9457 Problem Details. Framework validation failures use the same shape, so there is one format to parse, not two.

{
"type": "https://docs.paysigna.com/api/errors/#limit_exceeded",
"title": "Limit exceeded",
"status": 409,
"detail": "This charge would exceed your daily collection limit of GHS 50,000.",
"code": "limit_exceeded",
"request_id": "01JB3K2N8QZX4V7M9P0R5T6W8Y"
}

Most errors are sent as application/problem+json. A few raised before a request reaches its handler are sent as application/json unless your Accept header names application/problem+json. The body is the same either way, so parse any JSON error response, or send that Accept header to always get the problem type.

Branch on code, never on detail or title. The codes are a closed set, defined as constants, and treated as a published contract — changing one is a breaking API change on our side. detail is written for a human and may be reworded at any time.

request_id is also on the X-Request-Id response header of every request, successful or not. Log it. It is the one string that lets us find your exact call.

Code Status Meaning
unauthenticated 401 No credential, or unparseable. Also returned for a wrong secret, on purpose.
api_key_revoked 403 Valid once. Rotate.
api_key_expired 403 The key’s expiry has passed.
ip_not_allowed 403 Source address not on this key’s allowlist, or (in the merchant portal) not inside any of the account’s portal IP rules.
address_blocked 403 Your address is blocked from the API, after repeated invalid API keys or by PaySigna. A working key is refused too, unless it’s pinned to that address. The message gives the time the block ends, and Retry-After the seconds left. Check the key your server sends, and contact support.
insufficient_scope 403 Right key, missing scope.
forbidden 403 In scope, but not for this resource.
environment_mismatch 403 Test key against live, or the reverse.
cross_site_request 403 Merchant portal and provider console only. A sign-in or other change was sent to the dashboard from another website. Not something an API integration sees.

See Authentication for what to do about each.

Code Status Meaning
invalid_request 400 / 422 Malformed request, or one that cannot be carried out as asked — such as a name enquiry on a bank or network no partner can enquire on.
missing_field 400 A required field was absent.
invalid_field 400 / 422 A field was present and unusable.
invalid_currency 422 Not a currency we support, or not one you are enabled for.
not_found 404 No such resource — or not one you can see.
conflict 409 The request contradicts the resource’s current state.
unsupported 422 A valid request for something this account or channel cannot do.
idempotency_key_reused 409 Same key, different body. See Idempotency.
request_in_progress 409 A concurrent request holds this key, or another one-time code for this charge is being checked. Retry shortly.
otp_rejected 422 The one-time code was wrong or expired. The detail says how many attempts are left; the charge is still waiting for a code.
otp_attempts_exceeded 422 Too many wrong codes. The charge has failed and nothing was taken.
otp_not_awaited 409 The charge is not waiting for a one-time code.
contact_code_wrong 422 Merchant portal only. The verification code is wrong: “…{n} tries left before you need a new one.”
contact_code_invalid 422 Merchant portal only. The code has expired, been used, or had five wrong tries. Ask for a new one.
contact_code_wait 429 Merchant portal only. A code for this contact was sent less than a minute ago. The message says how many seconds to wait.
contact_code_limit 429 Merchant portal only. The account has asked for 30 codes today, or the address or number has been sent 5. Try again tomorrow.
duplicate_file 409 Merchant portal only. The same bulk payout file was uploaded in the last 30 days. Upload again with allow_duplicate_file if you mean to pay it twice. See Bulk payouts.
total_changed 409 Merchant portal only. A bulk payout’s total, fees included, is no longer the confirm_total_minor you sent. Nothing was sent; read the batch and confirm the new total.
Code Status Meaning
merchant_suspended 403 The account is suspended. Contact support.
merchant_not_live 403 Live credentials used before the account was activated.
contact_verification_required 403 Merchant portal only. A contact on the account, or your own phone, isn’t verified, so changes made in the dashboard are refused until it is. The message names what to verify, or tells you to ask an owner or admin. API keys aren’t affected. Also 422 from the profile and branding forms when a new contact is sent there instead of being verified. See Verifying a contact.
money_out_on_hold 403 Your account is under a security review, so payouts, refunds and withdrawals are refused. Collections carry on. Contact support to have the review completed.

The account’s status is checked on every payment, not only when the key is checked. A checkout session created before the account was suspended, closed or taken off live can’t be paid afterwards: confirming it returns merchant_suspended, merchant_not_live, or forbidden (“This merchant account is closed.”). | kyc_required | 403 | Verification outstanding. See Going live. | | terms_not_accepted | 403 | Live only. Your business hasn’t accepted the current merchant terms, so live collections and payouts (and payout quotes) are refused. Refunds and withdrawals aren’t. “…An owner or admin can accept them in the PaySigna dashboard under Settings, Terms.” See Terms. | | capability_disabled | 403 | This channel or feature is not enabled for your live account. Never returned to a test key. | | api_integration_not_enabled | 403 | API access is a separate permission; turn it on in the portal. | | settlement_destination_missing | 403 | No settlement account on file, so money would have nowhere to go. |

None of these are retryable. Every one needs an action in the portal or a conversation with us.

Code Status Meaning
amount_too_small 422 Below the minimum for this channel.
amount_too_large 422 Above the maximum for this channel or your account.
limit_exceeded 409 A velocity or volume limit on your account. Also 422 when the API key’s own daily cap is reached: “This API key is limited to {cap} a day and has already moved {amount} today (UTC). Try again tomorrow, or raise the key’s daily cap.”
insufficient_funds 402 The customer’s wallet, or your balance on a payout or for a name enquiry’s fee.
unpriced_combination 409 No fee is configured for this merchant and channel. Our configuration gap — tell us.
margin_floor_breached 409 The transaction would price below the permitted floor.
channel_prohibited 403 This channel is not permitted for this transaction.
refund_exceeds_original 422 Refunds would total more than the charge.
Code Status Meaning
risk_blocked 403 A risk rule refused it.
counterparty_blocklisted 403 The counterparty is blocklisted.
manual_review_pending 403 Held for a human decision.

manual_review_pending is not a failure. The transaction exists, in a non-terminal under_review status, and will move to a terminal status when the review completes — you will get a webhook. Do not retry it, and do not tell the customer it failed.

Code Status Retry Meaning
no_route_available 503 Yes, with backoff Nothing is configured to carry this, or everything that is has been taken out of service. Our problem, which is why it is not a 4xx.
partner_rejected 409 No The partner refused it. A terminal answer about this attempt.
partner_unavailable 503 Yes, with backoff The partner is down or unreachable.
partner_timeout 504 Carefully We did not hear back in time. Creating a charge, payout or refund no longer returns it (see below); submitting a one-time code can.

Creating a charge, payout or refund answers a partner timeout with 202. POST /v1/charges, POST /v1/payouts and POST /v1/refunds return 202 Accepted with the resource and status: "pending", instead of an error. That answer is stored against your Idempotency-Key, so a retry with the same key returns the same transaction, never a second one. Treat 202 like any pending result: keep the id, and wait for the webhook or read it with GET. Don’t send it again as a new request. (Before, these returned 504 partner_timeout and freed the key.)

Code Status Meaning
rate_limited 429 Too many requests.

A 429 carries Retry-After, and every response carries X-RateLimit-Limit and X-RateLimit-Remaining. Honour Retry-After rather than retrying on a fixed timer — a tight retry loop against a rate limit extends the limit rather than clearing it.

A 429 right after invalid API keys is different. After a couple of invalid keys in an hour (2 by default), an invalid key from that address gets 429 instead of 401 for about 30 seconds after each one. The message says “Requests from this address are paused after invalid API keys.” A working key from the same address is still served. Keep sending invalid keys and the live API blocks the address (address_blocked, after 10 by default, for 24 hours; IPv6 by /64). The sandbox slows but doesn’t block. Fix the key before retrying.

The usual cause of an unexpected 429 is polling every open transaction on a timer. Build on webhooks and read individual transactions on demand.

Code Status Retry Meaning
internal_error 500 Yes, with backoff and the same key Something broke on our side.
service_unavailable 503 Yes, with backoff We are refusing work, usually briefly.

Send us the request_id for any internal_error. It is logged on our side against the full cause.

429 → wait Retry-After, then retry
503, 504 → exponential backoff with jitter, cap the attempts
500 → same, and report the request_id
partner_timeout → do not blind-retry: read the transaction first
every other 4xx → do not retry; fix the request or the account

On every retry of a state-changing call, send the original Idempotency-Key. That single rule is what makes an aggressive retry policy safe here.