Documentation
Open workspace

Errors, retries & idempotency

Error codes, safe retries, idempotency keys, and rate limits.

One rule covers every route: a response with status 400 or above is application/json and has the body {"error":{"code","message","retryable","request_id"}}, with optional structured details on quota, trial-quota, and rate-limit refusals. The message is fixed text registered for that status and code. Treating every failure as retryable, or as a negative business result, is the fast path to duplicate charges and wrong decisions.

Error shape

code is one of the registered codes below, or PUBLIC_DELIVERY_UNAVAILABLE. With PUBLIC_DELIVERY_UNAVAILABLE the HTTP status carries the meaning. Every controlled /v1 error body also includes error.retryable (boolean) and error.request_id, and selected refusals carry optional structured details: error.meter and error.allowance on QUOTA_EXCEEDED, error.allowance on TRIAL_QUOTA_EXCEEDED, and error.rate_limit on RATE_LIMITED. There are no field pointers, dynamic row caps, or interpolated values; BULK_ROW_LIMIT_EXCEEDED (413) always returns its fixed message. Treat error as an open object and ignore unknown properties (see Compatibility & versioning). The published OpenAPI document lists the exact body for each status.

error.request_id is a UUID on every error response body. It equals the X-Request-Id response header, so you can log either one. Quote it when you contact support. The only error bodies without error.request_id or error.retryable are the OAuth protocol errors from the OAuth token, client registration and token revocation endpoints, which keep their standard OAuth shape; their response still carries the X-Request-Id header.

400 · INVALID_INPUT
{
  "error": {
    "code": "INVALID_INPUT",
    "message": "Check the supplied details and try again.",
    "request_id": "6f1c2b9e-3a4d-4c8e-9b7a-5d2e1f0a8c34"
  }
}
409 · IDEMPOTENCY_CONFLICT
{
  "error": {
    "code": "IDEMPOTENCY_CONFLICT",
    "message": "This idempotency key was already used with a different request.",
    "request_id": "6f1c2b9e-3a4d-4c8e-9b7a-5d2e1f0a8c34"
  }
}
Any status · masked failure
{
  "error": {
    "code": "PUBLIC_DELIVERY_UNAVAILABLE",
    "message": "Public delivery unavailable.",
    "request_id": "6f1c2b9e-3a4d-4c8e-9b7a-5d2e1f0a8c34"
  }
}

Codes

Every registered status, code and fixed message. Use code, not the message text, in your logic.

StatusCodeMessageWhat to do
400INVALID_REQUESTCheck the request fields and their limits.Fix the request fields and limits, then send a new request.
400INVALID_IDEMPOTENCY_KEYUse an idempotency key of 8–128 letters, digits, dots, underscores, colons or hyphens, starting with a letter or digit.Send an Idempotency-Key of 8–128 supported characters. Nothing was started.
400INVALID_IDEMPOTENCY_KEYIdempotency-Key must contain 8–128 supported characters.Send an Idempotency-Key of 8–128 supported characters. Nothing was started.
400INVALID_JSONSend a valid JSON request body.Send a valid JSON body with Content-Type: application/json.
400INVALID_INPUTCheck the supplied details and try again.Correct the VAT number, country or other supplied detail. Do not retry unchanged.
400INVALID_INPUTProvide a two-letter country code and a VAT number (up to 32 characters).Correct the VAT number, country or other supplied detail. Do not retry unchanged.
400INVALID_INPUTThe VAT number prefix does not match the selected country.Correct the VAT number, country or other supplied detail. Do not retry unchanged.
400INVALID_INPUTUse a single country prefix followed by the domestic VAT number.Correct the VAT number, country or other supplied detail. Do not retry unchanged.
400INVALID_INPUTEnter the VAT number after its country prefix.Correct the VAT number, country or other supplied detail. Do not retry unchanged.
400INVALID_INPUTInvalid requester VAT number.Correct the VAT number, country or other supplied detail. Do not retry unchanged.
400INVALID_INPUTThe VAT number does not match the national format or check digit.Correct the VAT number, country or other supplied detail. Do not retry unchanged.
400INVALID_INPUTThis country or territory has no VAT, so there is no VAT number to check.Correct the VAT number, country or other supplied detail. Do not retry unchanged.
400INVALID_INPUTSend a company name or register number with country_code. Countryless, website and email searches are not available.Correct the VAT number, country or other supplied detail. Do not retry unchanged.
400INVALID_INPUTStart requester_vat_id with its two-letter country prefix, such as DE123456789.Correct the VAT number, country or other supplied detail. Do not retry unchanged.
400INVALID_INPUTThis tax or VAT number is not valid for the country. Check it, or search by company number or name.Correct the VAT number, country or other supplied detail. Do not retry unchanged.
400INVALID_INPUTAdd a country_code: the search could not tell which country to search.Correct the VAT number, country or other supplied detail. Do not retry unchanged.
400INVALID_INPUTEnter at least two characters to search, or send a company_id.Correct the VAT number, country or other supplied detail. Do not retry unchanged.
400CONFLICTING_SEARCH_CRITERIAUse one identifier as the sole lookup criterion.Send one identifier, with optional country_code and VAT flags. Do not retry unchanged.
400CONFLICTING_SEARCH_CRITERIAUse one identifier as the sole lookup criterion, with optional country and VAT flags.Send one identifier, with optional country_code and VAT flags. Do not retry unchanged.
400CONFLICTING_SEARCH_CRITERIAA D-U-N-S publication hint requires a D-U-N-S criterion.Send one identifier, with optional country_code and VAT flags. Do not retry unchanged.
400CONFLICTING_SEARCH_CRITERIAUse LEI as the sole lookup criterion, with an optional country filter.Send one identifier, with optional country_code and VAT flags. Do not retry unchanged.
400CONFLICTING_SEARCH_CRITERIAUse a name, a domain or a company_id as the search criterion, not more than one.Send one identifier, with optional country_code and VAT flags. Do not retry unchanged.
400CONFLICTING_SEARCH_CRITERIAA register filter requires a company_id.Send one identifier, with optional country_code and VAT flags. Do not retry unchanged.
400REFERENCES_NOT_SUPPORTEDTransaction references cannot be saved for this VAT number. Send the request without references.Send the request again without transaction references.
401UNAUTHORIZEDA valid account session or API key is required.Send a valid API key or account session. Do not retry unchanged.
403SCOPE_FORBIDDENThis API key does not grant the required permission.Use a credential with the required scope. Do not retry unchanged.
403ENVIRONMENT_FORBIDDENThis API key cannot access the requested environment.Account sessions, connected apps, or API keys: the credential or role does not allow this environment. Switch environment, or use a key for the requested environment.
403ENVIRONMENT_FORBIDDENThe request environment does not match its access context.Account sessions, connected apps, or API keys: the credential or role does not allow this environment. Switch environment, or use a key for the requested environment.
403FREE_ORGANIZATION_LIMIT_REACHEDYour account already owns a Free organization.The account already owns a Free organization. Move it to a paid plan, or delete it, before creating another. Do not retry unchanged.
403TRIAL_QUOTA_EXCEEDEDYour trial allowance has been used or reserved. Upgrade to continue live checks.The trial allowance for this kind of check is used or reserved. Trials do not reset: choose a paid plan to continue live checks. error.allowance gives the trial pool. Do not retry unchanged.
403TRIAL_EXPIREDYour trial has ended. Upgrade to continue live checks.The trial period has ended. Choose a paid plan to continue live checks. Do not retry unchanged.
403LIVE_ACCESS_UNAVAILABLELive checks of this kind are not available to this organization. Check its plan.Live checks of this kind are not included in this organization's current plan. Use sandbox or choose a plan that includes live access. Do not retry unchanged.
403TWO_FACTOR_REQUIREDThis organization requires two-factor authentication. Set it up to continue.Turn on two-factor authentication for this account in the dashboard. API keys are not affected. Do not retry unchanged.
403OWNER_TWO_FACTOR_REQUIREDTurn on two-factor authentication for your own account first.Turn on two-factor authentication for your own account before requiring it for the organization.
403STRONGER_TWO_FACTOR_REQUIREDThis organization requires a passkey or authenticator app. Add one to continue.The organization accepts only a passkey or an authenticator app, and this account has only email codes. Add one in the dashboard. API keys are not affected. Do not retry unchanged.
403OWNER_STRONG_TWO_FACTOR_REQUIREDAdd a passkey or authenticator app to your own account first.Add a passkey or an authenticator app to your own account before accepting only those methods for the organization.
401PASSKEY_NOT_FOUNDPasskey not foundAccount sign-in only. The passkey is no longer on any account; sign in another way. Do not retry unchanged.
401USER_VERIFICATION_REQUIREDUnlock the passkey with your fingerprint, face or device PIN.Account sign-in only. Unlock the passkey with the device's fingerprint, face or PIN check, then try again.
429EMAIL_CODE_RATE_LIMITEDWait a moment before asking for another code.Account sign-in only. Wait for the Retry-After period before asking for another email code.
409IDEMPOTENCY_CONFLICTThis idempotency key was already used with a different request.The key belongs to a different request. Use a new key for a new check, or resend the original payload.
409IDEMPOTENCY_CONFLICTThis bulk idempotency key was already used with a different request.The key belongs to a different request. Use a new key for a new check, or resend the original payload.
409BULK_ACTIVE_JOB_LIMIT_EXCEEDEDYour plan's limit on active bulk jobs is reached. Let an active job finish or cancel it, then try again.The plan's active bulk jobs are all in use. Let one finish or cancel it, then start or resume this job.
413BULK_ROW_LIMIT_EXCEEDEDThis file exceeds the maximum CSV rows allowed per job on your current plan.Split the CSV into batches within your plan's per-job row limit, or move to a higher plan. Do not retry unchanged.
422NOT_COVEREDThis country or lookup type is not covered by the requested check.The requested country or lookup type is not covered by this check. Do not retry unchanged.
409OPERATION_IN_PROGRESSThis operation is still in progress. Retry using the same idempotency key.Wait, then retry with the same Idempotency-Key. Honour Retry-After when present.
409OPERATION_IN_PROGRESSStanding is still pending.Wait, then retry with the same Idempotency-Key. Honour Retry-After when present.
409OPERATION_INTERRUPTEDThis operation was interrupted. Its outcome is unknown; a new request needs a new idempotency key.The outcome is unknown. Do not treat it as a result. A new request needs a new key.
409ANNOTATION_LIMITThis record has reached its limit of reference changes.The record cannot take more reference changes. Stop editing it.
409ANNOTATION_CONFLICTThe references changed at the same time. Reload the record and try again.Reload the record, then repeat the reference change.
429QUOTA_EXCEEDEDThis month's included allowance has been used or reserved.The included monthly allowance is used or reserved (error.retryable is false). Read error.meter, error.allowance (limit, used, reserved, remaining, period_start, resets_at), and Retry-After (seconds until resets_at); do not retry before resets_at. Check GET /v1/usage or the success-body quota block before sending a run.
429QUOTA_EXCEEDEDThis month's included allowance for this operation has been used or reserved.The included monthly allowance is used or reserved (error.retryable is false). Read error.meter, error.allowance (limit, used, reserved, remaining, period_start, resets_at), and Retry-After (seconds until resets_at); do not retry before resets_at. Check GET /v1/usage or the success-body quota block before sending a run.
429RATE_LIMITEDToo many requests. Try again later.Too many requests in the current window (error.retryable is true). Wait for Retry-After (or error.rate_limit.retry_after_seconds), add jitter, and retry with the same Idempotency-Key. Read error.rate_limit (scope, plus limit and window_seconds when published) and the RateLimit-Limit, RateLimit-Remaining, and RateLimit-Reset headers (sent on 2xx responses and on 429 refusals from limiters that publish their limit).
503REFERENCES_UNCERTAINThe references could not be confirmed. Retry with the same idempotency key.The check was charged but the references are unconfirmed. Retry with the same Idempotency-Key; a new key would pay again.
400MONITOR_SUBJECT_INVALIDCheck the monitored VAT identifier or registry identifier.Correct the monitored VAT identifier or registry identifier. Do not retry unchanged.
400MONITOR_FACT_NOT_WATCHABLEOne or more watched facts do not apply to this kind of subject.Watch only the facts that apply to this kind of subject. Do not retry unchanged.
400MONITOR_FACT_UNAVAILABLEOne or more watched facts cannot be observed for this subject's country.Remove the facts this subject's country does not publish. Do not retry unchanged.
403MONITORING_NOT_IN_PLANYour plan does not include monitors in this environment.Your plan has no monitors in this environment. Change the plan or the environment; a retry cannot succeed.
403MONITOR_CADENCE_NOT_IN_PLANYour plan does not include this monitor cadence.Choose a cadence your plan includes, then send the request again.
404MONITOR_NOT_FOUNDNo monitor with this ID exists in this environment.Check the monitor ID and the environment. Do not retry unchanged.
404MONITOR_CHANGE_NOT_FOUNDNo observed change with this ID exists in this environment.Check the change ID and the environment. The change may have expired. Do not retry unchanged.
409MONITOR_LIMIT_REACHEDYour plan's monitor slots are all in use.All monitor slots are in use. Delete a monitor or change the plan before creating or resuming one.
409MONITOR_ALREADY_EXISTSA monitor for this subject already exists in this environment.This subject is already watched in this environment. Read or change that monitor instead.
409MONITOR_DELETEDThis monitor was deleted and cannot be changed.The monitor was deleted and cannot change. Create a new monitor if needed.
400WEBHOOK_URL_REJECTEDUse a public HTTPS URL without credentials or a fragment.Use a public HTTPS URL on port 443, without credentials or a fragment.
403WEBHOOKS_NOT_IN_PLANYour plan does not include webhook endpoints in this environment.Choose a plan and environment that include webhook endpoints.
404WEBHOOK_ENDPOINT_NOT_FOUNDNo webhook endpoint with this ID exists in this environment.Check the endpoint ID, organization and environment.
404WEBHOOK_DELIVERY_NOT_FOUNDNo webhook delivery with this ID exists for this endpoint.Check the delivery ID, organization and environment.
409WEBHOOK_ENDPOINT_LIMIT_REACHEDYour plan's webhook endpoints are all in use.Delete an endpoint or change the plan before creating another.
409WEBHOOK_ENDPOINT_DISABLEDThis endpoint is disabled. Enable it before sending events.Enable the endpoint before sending events.
429WEBHOOK_TEST_RATE_LIMITEDToo many test events for this endpoint. Try again later.Wait before sending another test event for this endpoint.
409WEBHOOK_ENDPOINT_EXISTSA webhook endpoint with this URL already exists with different settings.Read or update the existing endpoint instead of creating a duplicate.
409WEBHOOK_DELIVERY_IN_PROGRESSThis delivery is already scheduled.Wait for the scheduled delivery to finish before requesting another.
401INVALID_EMAIL_OR_PASSWORDInvalid email or passwordAccount sign-in only. Check the email and password, or reset the password. Do not retry unchanged.
403EMAIL_NOT_VERIFIEDEmail not verifiedAccount sign-in only. Open the verification link sent by email, then sign in.
400INVALID_EMAILInvalid emailAccount requests only. Send a valid email address.
400PASSWORD_TOO_SHORTPassword too shortAccount requests only. Use a password of at least 12 characters.
400PASSWORD_TOO_LONGPassword too longAccount requests only. Use a password of at most 128 characters.
400INVALID_TOKENInvalid tokenPassword reset only. The reset link is invalid or expired; request a new reset email.
403SIGNUP_INVITE_ONLYSign-up is invite-only during early access. Contact support@vat.tools to request access.Sign-up is invite-only during early access. Contact support@vat.tools to request access.
403TURNSTILE_FAILEDThe human check was not accepted. Complete it again and retry.Account forms only. Complete the human check again, then resend.
503TURNSTILE_UNAVAILABLEThe human check could not be verified just now. Please try again shortly.Account forms only. The human check is unavailable; retry shortly.
403ORGANIZATION_LIMIT_REACHEDCreating another organization requires one you own on the Growth plan or above.Account requests only. Move an organization you own to Growth or above before creating another. Do not retry unchanged.
503SIGN_IN_UNAVAILABLESign-in is unavailable just now. Please try again shortly.Account sign-in only. The trusted device could not be checked just now. Try again shortly.
400STEP_UP_REQUIREDConfirm it's you to continue.Account security only. Confirm it's you with a second step, then repeat the change.
403STRONG_STEP_UP_REQUIREDConfirm with your passkey or authenticator app. Email codes can't approve this.Account security only. Confirm with a passkey, an authenticator app or a backup code; an email code cannot approve this change.
403SESSION_NOT_FRESHSession is not freshAccount security only. Sign in again, then repeat the change within a day of signing in.
403PASSWORD_CONFIRMATION_REQUIREDEnter your password to add a passkey.Account settings only. Enter your password again before adding a passkey to an account without a passkey or authenticator app.
400PASSWORD_NOT_SETThis account has no password.Account settings only. The account signs in with Google and has no password.
401INVALID_CODEInvalid codeAccount sign-in only. Enter the current code. Do not retry unchanged.
401INVALID_BACKUP_CODEInvalid backup codeAccount sign-in only. Enter an unused backup code. Do not retry unchanged.
401INVALID_PASSKEYThe passkey could not be verified.Account sign-in only. Use a passkey on this account and unlock it with the device's check.
400OTP_HAS_EXPIREDOTP has expiredAccount sign-in only. Ask for a new email code and enter it.
400INVALID_PASSWORDInvalid passwordAccount security only. Enter the account password. Do not retry unchanged.
401INVALID_TWO_FACTOR_COOKIEInvalid two factor cookieAccount sign-in only. The second-step challenge has ended; sign in again.
401CHALLENGE_REQUIREDSign in again to continue.Account sign-in only. The second-step challenge has ended; sign in again.
400TOO_MANY_ATTEMPTS_REQUEST_NEW_CODEToo many attempts. Please request a new code.Account sign-in only. Ask for a new email code before trying again.
429ACCOUNT_TEMPORARILY_LOCKEDToo many failed verification attempts. Try again in 15 minutes.Account sign-in and settings only. Too many wrong codes, or wrong passwords before adding a passkey. Wait for the lockout to end, or use another method.
429ACCOUNT_TEMPORARILY_LOCKEDToo many failed verification attempts. Your account is temporarily locked. Please try again later.Account sign-in and settings only. Too many wrong codes, or wrong passwords before adding a passkey. Wait for the lockout to end, or use another method.
400TWO_FACTOR_NOT_ENABLEDTwo-step verification is off.Account security only. Two-factor authentication is off; turn it on first.
400TWO_FACTOR_NOT_ENABLEDTwo factor isn't enabledAccount security only. Two-factor authentication is off; turn it on first.
400TWO_FACTOR_ALREADY_ENABLEDAn authenticator app is already set up. Remove it before setting up a new one.Account security only. Two-factor authentication is already on.
400TOTP_NOT_ENABLEDNo authenticator app is set up.Account security only. Set up the authenticator app before using it.
400TOTP_NOT_ENABLEDTOTP not enabledAccount security only. Set up the authenticator app before using it.
400PASSKEY_NOT_ENABLEDThis account has no passkey.Account security only. Add a passkey before using it.
400EMAIL_CODE_NOT_ENABLEDEmail codes are off for this account.Account security only. Turn on email codes before using them.
400EMAIL_CODE_ALREADY_ENABLEDEmail codes are already on.Account security only. Email codes are already on.
429EMAIL_CODE_LIMIT_REACHEDYou've asked for several codes. Wait up to an hour, or use another method.Account sign-in only. Wait up to an hour before asking for another email code, or use another method.
429EMAIL_CODE_STEP_LIMIT_REACHEDYou've asked for three codes for this sign-in. Start sign-in again, or use another method.Account sign-in only. Three email codes were sent for this sign-in or step. Start it again, or use another method.
429EMAIL_CODE_STEP_LIMIT_REACHEDYou've asked for three codes for this step. Start it again, or use another method.Account sign-in only. Three email codes were sent for this sign-in or step. Start it again, or use another method.
400EMAIL_CODE_SETUP_REQUIREDTurn on email codes from your security settings.Account security only. Ask for a set-up code before confirming email codes.
400SIGN_IN_CHALLENGE_REQUIREDEmail codes here only finish a sign-in.Account sign-in only. Sign in again to start a second-step challenge.
400METHOD_NOT_ENABLEDThis method is not set up.Account security only. Choose a method that is on for this account.
400OTHER_METHODS_ENABLEDRemove each two-step verification method on its own.Account security only. Remove the other methods first, or keep this one.
403ROLE_FORBIDDENOnly organization owners can change its security settings.Account sessions only. The member's role does not include this action. Ask an owner or admin to change the role. Do not retry unchanged.
404SESSION_NOT_FOUNDThis session has already ended.Account security only. The session already ended; reload the list of sessions.
400CURRENT_SESSIONSign out to end the session you are using.Account security only. Sign out instead of revoking the current session.
403ROLE_FORBIDDENYour role in this organization does not allow this action.Account sessions only. The member's role does not include this action. Ask an owner or admin to change the role. Do not retry unchanged.
403MEMBERSHIP_EXPIREDYour access to this organization has ended.Account sessions and connected apps only. The member's access end date has passed. Ask an owner or admin to extend it.
403MEMBERSHIP_SUSPENDEDYour membership in this organization is suspended. Ask an owner to restore it.Account sessions and connected apps only. The membership is suspended. Ask an owner or admin to restore it.
403CHANNEL_FORBIDDENYour role in this organization does not allow access from this app.Account sessions and connected apps only. The member's role does not allow this app. Use the dashboard, or ask for a role that allows it.
403ENVIRONMENT_FORBIDDENYour role in this organization cannot use the requested environment.Account sessions, connected apps, or API keys: the credential or role does not allow this environment. Switch environment, or use a key for the requested environment.
403PLAN_FEATURE_UNAVAILABLEYour organization's plan does not include this feature.Account sessions only. Change to a plan that includes this feature. Do not retry unchanged.
403KEY_EXCEEDS_ROLEA key can only have permissions your role has.Choose only permissions and an environment your role has, or ask an owner or admin to create the key.
403KEY_EXCEEDS_ROLEYour role cannot use this environment, so it cannot create a key there.Choose only permissions and an environment your role has, or ask an owner or admin to create the key.
404KEY_FLAG_NOT_FOUNDThis key has no creator flag to dismiss.Reload the keys; the flag was already dismissed.
403ORGANIZATION_CAPACITY_EXCEEDEDYour organization has reached its plan capacity.Account sessions only. Revoke an unused developer key or move to a plan with higher capacity.
403CUSTOM_ROLES_NOT_IN_PLANCustom roles are available on Scale and above.Dashboard roles only. Custom roles need Scale or above; change the plan first. Do not retry unchanged.
403MEMBERS_WRITE_REQUIREDYour role cannot manage roles.Dashboard only. The role cannot change members or roles. Ask an owner or admin.
403ROLE_SOURCE_FORBIDDENA custom role can only be copied from a pre-built role other than Owner.Dashboard roles only. Copy a pre-built role other than Owner. Do not retry unchanged.
403ROLE_ESCALATIONYou can only create or edit a role that does not exceed your own.Dashboard only. Choose a role or access that does not exceed your own; only owners grant Owner.
403ROLE_EXCEEDS_ACTORThis role exceeds your own, so you cannot change it.Dashboard roles only. The role exceeds your own; ask an owner to change it.
400ROLE_EXCEEDS_SOURCEA custom role can only remove permissions, channels or environments from its source role.Dashboard roles only. Remove permissions, channels or environments; nothing can be added beyond the source role.
400ROLE_EMPTYKeep at least one permission, one place to work and one environment.Dashboard roles only. Keep at least one permission, one channel and one environment.
400ROLE_NAME_INVALIDUse a name of 2 to 48 characters.Dashboard roles only. Use a role name of 2 to 48 characters.
409ROLE_NAME_TAKENAnother role in this organization already has this name.Dashboard roles only. Choose a name no other role in the organization uses.
409ROLE_LIMIT_REACHEDAn organization can have at most 20 custom roles.Dashboard roles only. Delete a custom role before creating another; the limit is 20.
409ROLE_IN_USEMove this role's members and cancel its pending invitations before deleting it.Dashboard roles only. Move the role's members and cancel its pending invitations, then delete it.
404ROLE_NOT_FOUNDThis role does not exist in the organization.Dashboard roles only. Reload the roles; this one no longer exists.
403MEMBERS_WRITE_REQUIREDYour role cannot change members.Dashboard only. The role cannot change members or roles. Ask an owner or admin.
403ROLE_ESCALATIONYou can only assign a role that does not exceed your own.Dashboard only. Choose a role or access that does not exceed your own; only owners grant Owner.
403TARGET_EXCEEDS_ACTORThis member's role exceeds your own.Dashboard members only. This member's role exceeds yours. Ask an owner to make the change.
403SELF_CHANGE_FORBIDDENYou cannot change your own role or access end date.Dashboard members only. Ask another owner or admin to change your role or end date.
403ROLE_NOT_ALLOWED_ON_PLANThe organization's plan does not include this role.Dashboard members only. Choose a role the plan includes, or change the plan.
422ROLE_UNKNOWNThis role does not exist in the organization.Dashboard members only. Reload the roles and choose one that exists.
422OWNER_END_DATE_FORBIDDENOwners cannot have an access end date.Dashboard members only. Owners have no access end date; send the change without one.
422END_DATE_INVALIDChoose an access end date in the next 365 days.Dashboard members only. Choose an end date in the next 365 days.
404MEMBER_NOT_FOUNDThis person is not a member of the organization.Dashboard members only. The person already left; reload the member list.
409LAST_OWNERThe organization must keep at least one owner.Dashboard members only. Make someone else an owner first.
403INVITATION_ROLE_UNKNOWNThis invitation's role no longer exists.Accepting an invitation only. Its role was deleted; ask an owner or admin for a new invitation.
403INVITATION_ROLE_NOT_ALLOWEDThe organization's plan no longer includes this invitation's role.Accepting an invitation only. The plan no longer includes its role; ask for a new invitation.
403INVITER_NOT_PERMITTEDThe person who invited you can no longer add members.Accepting an invitation only. The inviter can no longer add members; ask an owner or admin to invite you again.
403INVITATION_ROLE_EXCEEDS_INVITERThis invitation's role now exceeds the inviter's own.Accepting an invitation only. The inviter's role changed; ask an owner or admin to invite you again.
403INVITATION_ACCESS_ENDEDThis invitation's access end date has passed.Accepting an invitation only. Its access end date passed; ask for a new invitation.
404INVITATION_NOT_FOUNDThis invitation is no longer pending.Dashboard members only. The invitation was accepted, cancelled or replaced; reload the list.
409ALREADY_INVITEDThis person already has a pending invitation.Dashboard members only. Resend the pending invitation instead.
409ALREADY_MEMBERThis person is already a member.Dashboard members only. The person is already a member.
409SEATS_FULLEvery seat is taken. Remove a member or cancel an invitation first.Dashboard members only. Remove a member or cancel an invitation, or change the plan.
403INVITATIONS_NOT_AVAILABLEInviting members starts on the Growth plan.Dashboard members only. Inviting starts on Growth; a retry cannot succeed on this plan.
403INVITE_ONLYThis email address cannot be invited yet.Dashboard members only. This address cannot be invited yet.
503EMAIL_DELIVERY_FAILEDThe invitation email could not be confirmed. Resend the invitation.Dashboard members only. The invitation exists but its email was not confirmed. Resend it.
409MEMBER_NOT_EXPIREDThis member's access has not ended.Dashboard members only. Change the end date instead of renewing.
409RENEW_REQUIREDThis member's access has ended. Renew it instead.Dashboard members only. The access ended; renew it with a new end date.
503MEMBERS_UNAVAILABLEMembers are temporarily unavailable. Try again.Dashboard members only. Try again shortly.
503TEAM_ACCESS_UNAVAILABLEThe organization's team access could not be confirmed.Dashboard members only. The plan's team access could not be confirmed. Try again shortly.
409OPERATION_FAILEDThe check failed before a result could be saved. A new attempt requires a new idempotency key.The check failed before a result was saved. Send it again with a new Idempotency-Key.
400CUSTOMER_ID_REQUIREDSend customer_id: your own account or billing-entity ID for the customer.Send customer_id, your own ID for the customer. Do not retry unchanged.
400CUSTOMER_ID_LOOKS_LIKE_CONTACT_DATAAn ID or reference may not be an email address or a phone number. Send your own account ID.Send your own account ID, not an email address or a phone number. Do not retry unchanged.
400EMAIL_LOCAL_PART_NOT_ACCEPTEDSend only the email domain, without the part before the @.Send only the email domain. Do not retry unchanged.
400VAT_FORMAT_INVALIDThe stored VAT number does not match its country's format.Correct the stored VAT number or its country. Do not retry unchanged.
400COUNTRY_UNSUPPORTEDOwnership checks cover EU VAT numbers; GB, NO and CH are not supported.Customer VAT checks cover EU VAT numbers only. Do not retry unchanged.
400COMPANY_NAME_REQUIREDSend company_name, the customer's company name as you hold it.Send company_name as you hold it. Do not retry unchanged.
400DISCOVERY_NOT_AVAILABLE_WITH_STORED_VATrequest_discovery is available only for a customer without a stored VAT number.Remove request_discovery, or send it only for a customer without a stored VAT number.
400PARTY_ROLE_NOT_AVAILABLEOnly party_role customer is available.Send party_role customer, or leave it out.
400CAPABILITY_UNSUPPORTEDVAT discovery cannot run for this customer in this environment.VAT discovery is not available for this customer in this environment. Do not retry unchanged.
400IDEMPOTENCY_KEY_REQUIREDSend an Idempotency-Key header with each new check.Send an Idempotency-Key header, with a new key for each new check or decision.
403REQUESTER_VAT_NOT_VERIFIED_FOR_ORGANIZATIONrequester_vat_id must be your organisation's verified requester VAT ID.Send your organization's verified requester VAT ID, or leave requester_vat_id out to use the saved default.
404RECONCILIATION_NOT_FOUNDNo check has this ID in this environment.Check the check ID and the environment. Do not retry unchanged.
410RECORD_ERASEDThis check was erased.The check was erased and cannot be read. Run a new check if you need one.
429SOURCE_ATTEMPTS_EXCEEDEDToo many VAT checks for this organisation ended without an authority answer. Try again later.Too many recent checks ended without an authority answer. Wait, honouring Retry-After when present, then retry with the same Idempotency-Key.
429FREE_OWNERSHIP_CHECK_LIMIT_REACHEDThis month's live ownership checks on the Free plan have been used or reserved.The Free plan's live ownership checks for this month are used or reserved. Wait for the next month or change the plan. Do not retry unchanged.
400REVIEW_DECISION_BASIS_REQUIREDThis decision overrides an automated result. Send a basis.Send a basis with a decision that overrides an automated result.
400DECIDED_BY_REFERENCE_REQUIREDAPI keys send decided_by_reference, your own ID for the reviewer.With an API key, send decided_by_reference: your own ID for the reviewer.
400IDEMPOTENCY_KEY_REQUIREDSend an Idempotency-Key header with each decision.Send an Idempotency-Key header, with a new key for each new check or decision.
403REVIEW_DECISION_NOT_PERMITTEDDeciding a review needs the reconciliation:decide permission. MCP connections never decide.Use a credential with reconciliation:decide. MCP connections cannot decide. Do not retry unchanged.
404REVIEW_DECISION_NOT_FOUNDNo review decision has this sequence on this check.Check the check ID and the decision sequence. Do not retry unchanged.
409DECISION_NOT_ALLOWEDThis decision is not available for this check.Read the check's current instruction, then choose a decision it allows.
409DECISION_BATCH_NOT_ALLOWEDA bulk keep covers only checks without contrary information or a conflict.Decide checks with contrary information or a conflict one at a time.

Masked failures

PUBLIC_DELIVERY_UNAVAILABLE with the message Public delivery unavailable. is the fixed body for any failure that has no registered code. It exposes no source or authentication diagnostic and assumes no business result.

StatusWhat it means
400, 401, 409, 429, 503Any failure at these statuses may be masked. The status carries the meaning; use the table above and the response headers.
403, 404, 410, 413, 415, 422Refusal: access, missing or withheld data, expired result, body too large, unsupported media type, or an unprocessable request. Change the request or ask for a decision; do not retry unchanged.
500No result established. Retry later, outside an immediate retry loop, with the original Idempotency-Key; source work may already have happened.

These statuses currently carry only PUBLIC_DELIVERY_UNAVAILABLE: 415, 500.

Recovery headers and X-Request-Id

Recovery and rate-limit headers are limited to: Retry-After, RateLimit-Limit, RateLimit-Remaining, RateLimit-Reset, X-Operation-Id, Idempotency-Key, Idempotency-Replayed, X-Usage-Charged, X-Request-Id. A header appears only where it applies.

Every response, success or error, carries X-Request-Id: a UUID generated by the server. It is never copied from your request. It is the id to quote when you contact support, so the exact request can be found. A success body never contains it; on an error the same value is also in error.request_id.

X-VAT-Tools-Client is a request header reserved for VAT.tools clients, such as the VAT.tools browser extension. It is self-reported and only labels where usage came from, so do not send it from your own integration. It never changes what a credential may do.

Idempotency

Every write operation accepts an Idempotency-Key header: 8–128 characters matching [A-Za-z0-9][A-Za-z0-9._:-]*. One key per logical check, not per HTTP attempt. A replay of the same key and payload returns the original operation and settles at zero units.

On every write operation that returns X-Operation-Id except POST /v1/vat/calculate, the key is honoured for as long as that operation's result is retained under your organization's retention settings; it has no fixed expiry. After the result expires, the same key and payload answer 410 with the controlled PUBLIC_DELIVERY_UNAVAILABLE body, and the same key with a different payload still answers 409. A key is never freed for a new check: send a new key. POST /v1/vat/calculate is the exception: it charges nothing and keeps its key only in the memory of the instance that served it, so a replay can be answered afresh, with a new X-Operation-Id, still at zero units.

  1. Generate one key per logical check

    A random UUID is enough. Persist it with your own record before you send, so a retry after a crash can reuse it.

  2. Reuse it only for the same payload

    Reusing a key with a different payload is 409. A new check gets a new key.

  3. Read 409 and 410 before retrying

    These are not blind retries, except OPERATION_IN_PROGRESS, which you retry with the same key. Inspect the status and current retained state: a conflict, or an expired or source-suppressed result, needs a decision.

Retry a 503 at most three times, waiting longer each time: 1, 2 and 4 seconds plus jitter, or Retry-After when it is longer. Treat a 503 that repeats on the same input as a refusal: stop, keep the X-Request-Id, and do not send that input again unchanged. Never retry QUOTA_EXCEEDED: the allowance is used or reserved, and a retry cannot succeed before error.allowance.resets_at. Check error.retryable before retrying any failure.

Retry one logical operation
const idempotencyKey = crypto.randomUUID(); // persist this before sending

// retries counts the retries already sent for this logical operation: at most three.
// A 429 is retried only when its code is RATE_LIMITED or the masked PUBLIC_DELIVERY_UNAVAILABLE.
// QUOTA_EXCEEDED, any other code and a missing code are not retried.
function shouldRetry(status: number, code: string | undefined, retries: number): boolean {
  if (retries >= 3) return false;
  if (status === 429) return code === "RATE_LIMITED" || code === "PUBLIC_DELIVERY_UNAVAILABLE";
  if (status === 503) return true;
  return status === 409 && code === "OPERATION_IN_PROGRESS";
}

async function callWithRetry(body: unknown): Promise<unknown> {
  for (let retries = 0; ; retries += 1) {
    const response = await fetch("https://api.vat.tools/v1/vat/verify", {
      method: "POST",
      headers: {
        Authorization: `Bearer ${process.env.VAT_TOOLS_KEY}`,
        "Content-Type": "application/json",
        "Idempotency-Key": idempotencyKey,
      },
      body: JSON.stringify(body),
    });

    if (response.ok) return response.json();

    const errorBody = await response.json();
    const code = errorBody?.error?.code;
    const requestId = response.headers.get("x-request-id");
    if (!shouldRetry(response.status, code, retries)) {
      // A 503 that repeats on the same input is a refusal: do not send this input again unchanged.
      if (response.status === 503)
        throw new Error(`Refused: 503 ${retries + 1} times (request ${requestId})`);
      // Anything else needs a decision. Keep X-Request-Id for support.
      throw new Error(`${code} (request ${requestId})`);
    }

    const retryAfter = Number(response.headers.get("retry-after") ?? "0");
    const backoff = Math.max(retryAfter * 1000, 1000 * 2 ** retries); // 1 s, 2 s, then 4 s
    const jitter = Math.random() * 400;
    await new Promise((resolve) => setTimeout(resolve, backoff + jitter));
  }
}

const result = await callWithRetry({ vat_id: "DE100", mode: "sandbox" });

Two meanings of invalid

The word invalid has two meanings. Never show one as the other.

  • In a VAT result (status on POST /v1/vat/verify, result.outcome on the compatibility POST /v1/validations, and the result of a completed bulk row), invalid is the tax authority's answer: it reported the number as not valid.
  • In a bulk job, a row whose status is invalid, counted in counts.invalid, was rejected when the CSV was imported, before any check: for example a malformed number, a missing column value, or a country the environment cannot check. No authority was asked and no unit was charged. Read the row's validationErrors and correct the input.

Rate limits and quota

Accepted (2xx) authenticated responses carry RateLimit-Limit, RateLimit-Remaining (when the counter is readable), and RateLimit-Reset in seconds. A 429 RATE_LIMITED refusal carries Retry-After, error.retryable: true, and — whenever the refusing limiter publishes its limit — RateLimit-Limit, RateLimit-Remaining: 0, and RateLimit-Reset. Authentication failures (401/403) and limiters that do not publish a ceiling (such as the service-wide pre-auth breaker, the organization admission turn queue, and the API-key verifier's internal limiter) omit the RateLimit-* headers. On 429 RATE_LIMITED, error.rate_limit carries retry_after_seconds and scope (key, oauth_grant, user, organization, or client), plus limit and window_seconds when published; pre-auth breakers report scope: "client" without naming internal ceilings. Honour Retry-After (or error.rate_limit.retry_after_seconds), add jitter, and retry with the same Idempotency-Key.

A 429 QUOTA_EXCEEDED refusal carries error.retryable: false, optional error.meter (vat_validation, vat_discovery, company_verification, or company_search), and Retry-After (seconds until resets_at). When counts are known at refusal, error.allowance reports limit, used, reserved, remaining (0), period_start, and resets_at. A 403 TRIAL_QUOTA_EXCEEDED refusal carries error.retryable: false and optional error.allowance for the trial pool with resets_at: null and no period_start (trial pools never reset); 403 TRIAL_EXPIRED and 403 LIVE_ACCESS_UNAVAILABLE carry error.retryable: false without allowance. Read remaining balance before a run from GET /v1/usage or from the quota block on success responses (vat_eu_queries, reverse_vat_lookups, company_searches, company_status_verifications, and resets_at). Check current entitlement rather than assuming a monthly reset resolves every refusal; sandbox and permitted retained history remain subject to their own admission. Internal admission state, provider/source budgets, and shared breaker ceilings remain private and are never exposed in error bodies or headers.

429 · QUOTA_EXCEEDED
{
  "error": {
    "code": "QUOTA_EXCEEDED",
    "message": "This month's included allowance has been used or reserved.",
    "meter": "company_search",
    "allowance": {
      "limit": 250,
      "used": 249,
      "reserved": 1,
      "remaining": 0,
      "period_start": "2026-11-01T00:00:00.000Z",
      "resets_at": "2026-12-01T00:00:00.000Z"
    },
    "retryable": false,
    "request_id": "6f1c2b9e-3a4d-4c8e-9b7a-5d2e1f0a8c34"
  }
}
429 · RATE_LIMITED
{
  "error": {
    "code": "RATE_LIMITED",
    "message": "Too many requests. Try again later.",
    "rate_limit": {
      "limit": 1200,
      "window_seconds": 60,
      "retry_after_seconds": 60,
      "scope": "key"
    },
    "retryable": true,
    "request_id": "6f1c2b9e-3a4d-4c8e-9b7a-5d2e1f0a8c34"
  }
}