Get started
Errors
Every response, success or failure, has the same envelope. Check success first: when it is false, message says what went wrong in one line and errors lists each problem. The HTTP status tells you what kind of problem it is.
The error body
{
"success": false,
"message": "Invoice not found",
"errors": [
{
"code": "http.404",
"message": "Invoice not found",
"statusCode": 404
}
],
"data": null,
"requestId": "1b1f55e8-b214-48a9-92f1-d6aad8f7a312",
"timestamp": "2026-10-17T09:30:00.000Z"
}| Field | What it holds |
|---|---|
success | Always false on an error. |
message | A short summary you can show or log. |
errors[] | One entry per problem: a code and a message, sometimes a field or extra detail such as required. |
data | Always null on an error. |
requestId | The id of this call. Quote it when you contact support. You can also send your own in an X-Request-Id header. |
Status codes
| Status | Meaning | What to do |
|---|---|---|
| 200 OK | The read or update worked. | — |
| 201 Created | A POST created something. | — |
| 400 Bad Request | A field is missing or invalid. | Fix the request; errors[] names each field. |
| 401 Unauthorized | The access token is missing, wrong or expired. | Refresh the token and retry once. |
| 403 Forbidden | Your API key lacks the permission the endpoint needs, or the endpoint isn't open to API keys. Also a plan limit (PLAN_LIMIT). | Add the permission in required to your key under VezmoPay → Developers. For PLAN_LIMIT, show the message. |
| 404 Not Found | The object doesn't exist in your account. With a test key, an object your account has in live mode answers 404 with the message No such invoice: a similar object exists in live mode, but a test mode key was used to make this request. (and the reverse with a live key). | Check the id, or switch keys. |
| 409 Conflict | The request clashes with the object's state, for example the payment is already paid. | Reconcile the object; don't retry under a new key. |
| 422 Unprocessable | An Idempotency-Key was reused with a different body. | Use a new key for a new request. |
| 429 Too Many Requests | You went over a rate limit (rate_limited: your API key's, with a Retry-After header), or a card payment hit the declined-card limits (too_many_declines: nothing was charged), or your plan's API requests a minute (PLAN_LIMIT, with Retry-After). | Wait (Retry-After seconds), then retry with backoff. For too_many_declines, show the customer the message; don't retry the card. |
| 500 and above | Something failed on our side. The message is always generic. | Retry with backoff. If it keeps failing, send support the requestId. |
Validation errors
A 400 from a bad body lists every failing field, so you can fix them in one pass. Fields the endpoint doesn't know are ignored, not rejected, so check the spelling of optional fields against the endpoint's page.
{
"success": false,
"message": "Bad Request",
"errors": [
{ "code": "validation.name must be a string", "message": "name must be a string" },
{ "code": "validation.email must be an email", "message": "email must be an email" }
],
"data": null,
"requestId": "…",
"timestamp": "…"
}Permission errors
A 403 names the permissions the endpoint needs in required. Add them to your key under VezmoPay → Developers; tokens you create afterwards carry them.
{
"success": false,
"message": "Insufficient API permissions",
"errors": [
{
"code": "http.403",
"message": "Insufficient API permissions",
"required": ["subscription.read"]
}
],
"data": null,
"requestId": "…",
"timestamp": "…"
}Plan limits
Some things count against your plan: team members, agreements sent a month (proposals sent for signature included), removing “Powered by Vezmo”, and API requests a minute. Past the limit, the API answers 403 (429 for API requests a minute) with errors[0].code PLAN_LIMIT. used is what you had used before this request and allowed is your plan's number (both null for removing “Powered by Vezmo”). upgradeTo is the plan with more, or null. Payments, invoices, payment links and subscriptions are never limited.
Removing “Powered by Vezmo” is enforced: on a plan without it, turning the mark off is refused. The other limits are in watch mode for now: a request past them still goes through, so you won't see PLAN_LIMIT for them yet. Handle it now so nothing changes for you on the day a limit is enforced. API requests a minute by plan are on Limits.
{
"success": false,
"message": "You've sent 3 of 3 agreements this month on Free. Upgrade to Grow for more.",
"errors": [
{
"code": "PLAN_LIMIT",
"message": "You've sent 3 of 3 agreements this month on Free. Upgrade to Grow for more.",
"limit": "esign.per_month",
"used": 3,
"allowed": 3,
"plan": { "key": "free", "name": "Free" },
"upgradeTo": { "key": "grow", "name": "Grow" }
}
],
"data": null,
"requestId": "…",
"timestamp": "…"
}Accounts API error codes
The Accounts API (/accounts, /balances, /transactions, /statements, /events, /simulations, and with send with approval /me, /recipients, /fx/rates, /quotes, /transfer-requests, /transfers, /approvals) answers every error with one of these codes, and each error's help links to its entry here. POST /oauth/token answers in OAuth's own shape instead (see Access tokens).
authentication_failed· 401- The access token is missing, malformed or not one of ours. Send Authorization: Bearer <token>; get one from POST /oauth/token.
token_expired· 401- The access token is older than 15 minutes, or the key changed since it was issued. Get a new one.
key_revoked· 401- The key is switched off or revoked, or its owner can no longer use it.
key_expired· 401- The key passed its expiry date. Roll it or make a new one.
ip_not_allowed· 403- The key has allowed IP addresses and this call came from another one.
insufficient_scope· 403- The key, or the token you narrowed with scope, lacks this endpoint's permission. scopes lists what is missing.
api_access_not_enabled· 403- The Accounts API isn't switched on for this business. Ask from Settings › Developers › Accounts API. On a send with approval write: “Sending with approval isn't switched on for this business. Contact Vezmo support.”
key_leaked· 403- This test key's secret was found in public code, so it can't make sandbox simulations any more. Make a new test key. (A live key found in public code is revoked at once and answers key_revoked.)
key_owner_cannot_send· 403- The person responsible for this key can't send money or manage recipients any more. An admin can take the key over in Settings › Developers.
key_type_not_allowed· 403- An agent key can't do this. “An agent key can only stop recipients still waiting for approval. Archive this one in the dashboard or with a request key.” or “An agent key can only cancel its own requests.”
fees_owed· 403- New payments are paused until what your business owes Vezmo is paid. Reads still work.
forbidden· 403- Not allowed, for another reason given in message.
not_found· 404- No such object for this business and mode (another business's id answers this too), or no such endpoint.
conflict· 409- The object isn't in a state for this call, such as advancing a sandbox arrival that isn't held.
idempotency_key_reused· 409- This Idempotency-Key was already used with a different request. resourceId names what the first one made. Use a new key for a new call.
idempotency_request_in_progress· 409- A request with this Idempotency-Key is still being processed. Retry shortly (Retry-After: 1), with the same key.
recipient_exists· 409- You already have this recipient. recipientId names it.
recipient_pending_approval· 409- This recipient is waiting for approval. A person approves it in Accounts › Approvals.
recipient_in_review· 409- We're reviewing this recipient.
recipient_archived· 409- This recipient can't be paid any more (archived, rejected or expired). Add it again for a new approval.
recipient_waiting· 409- This recipient can be paid from usableFrom: a new recipient waits a while after its approval.
possible_duplicate· 409- A payment of the same amount to this recipient was made or requested in the last 24 hours. Send allowDuplicate: true if this is a new payment. duplicateOf names the earlier one.
limit_exceeded· 409- This is over a limit (limit names it: open_requests, recipients_per_day…). It resets at resetAt, where it has one (open_requests doesn't). Also a transfer request's failure.code when a cap was crossed as the payment was sent; its message names the cap.
not_cancelable· 409- This request was already decided, so it can't be cancelled. Also on DELETE /recipients/{id} while a person is approving it: “This recipient is being approved right now. Try again in a minute.”
validation_failed· 400- A value isn't valid. field names it; fields lists several. Times need a zone; amounts are integers in minor units. A body field the endpoint doesn't take is refused too (“Not a field of this endpoint: status.”).
idempotency_key_required· 400- Send an Idempotency-Key header with this request (POST /recipients, /quotes and /transfer-requests).
amount_too_large· 400- The most that can be requested through the API is max, in US cents (499999 is USD 4,999.99). Amounts of USD 5,000 or more can't be requested by API yet.
currency_not_supported· 400- This currency, or this pair of currencies, can't be used here.
travel_rule_info_required· 400- Add the recipient's full name, address and wallet details for stablecoin payments.
scope_not_available· 400- Creating a key: a permission that can't be given now, such as a send with approval permission before it is switched on for your business.
scope_not_allowed_for_key_type· 400- Creating a key: an agent key can't hold this permission.
scopes_cant_mix· 400- Creating a key: a key with an Accounts write permission holds Accounts API permissions only. Use a second key for VezmoPay.
expiry_too_long· 400- Creating or changing a key: a live key with Accounts API permissions must expire within 365 days.
limits_only_lower· 400- Changing a key's caps: they can only go down. For more room, make a new key.
unsupported_filter· 400- A parameter this endpoint doesn't take, or a filter not available yet. It is never ignored.
business_api_paused· 423- API access for this business is paused. Contact Vezmo support.
security_hold· 423- A security hold is on after a recent security change; until says when it ends.
rate_limited· 429- Too many requests. Wait for Retry-After; Vezmo-RateLimit-Reason says which limit (key, business, plan).
- Busy or briefly unavailable on our side. Try again after Retry-After. A transfer request in a currency we can't price right now also answers 503 service_unavailable.
internal_server_error· 500- Something went wrong on our side. Quote the requestId if it keeps happening.
Why a transfer request failed
A transfer request a person approved but that couldn't be made has status: "failed" and a failure.code: insufficient_funds, limit_exceeded, fees_owed, payouts_paused, sending_paused, recipient_not_payable or refused. See Transfer requests.
Handling errors
- Retry only 429 and 5xx answers, with exponential backoff (for example 1 s, 2 s, 4 s, then stop).
- Never retry a 4xx unchanged; it will fail the same way.
- Before retrying a call that moves money, make it safe to repeat. See Idempotency. On the Accounts API, also retry
idempotency_request_in_progress, always with the same key: see Idempotency and retries.
const res = await fetch(url, { headers: { Authorization: `Bearer ${accessToken}` } });
const body = await res.json();
if (!body.success) {
// Show body.message; log body.requestId so support can find the call.
console.error(res.status, body.message, body.requestId, body.errors);
if (res.status === 401) await refreshAccessToken(); // then retry once
if (res.status === 429 || res.status >= 500) await retryWithBackoff();
}