Business API error reference
Except for HTTP 401, errors return JSON with a nonzero code and an English message. The HTTP status matches the error class. A 500 response also includes trace_id. Include it when contacting support. On 400 with code: 3, details lists validation errors. Malformed JSON fails before the API key is checked and returns 400, code: 3, with invalid_json in details.
{ "code": 16, "message": "Transfers are not available for this organization." }| HTTP | code | Message | What to do |
|---|---|---|---|
| 500 | 1 | Internal server error. | Retry with the same Idempotency-Key. If the error persists, contact support with trace_id. |
| 400 | 3 | Invalid input, check schema issues. | Check the request body against the method documentation. |
| 404 | 12 | API method not found, check the URL. | Check the URL path and the POST method. |
| 403 | 13 | This section is not available from a personal account. Use a business organization API key. | Use an API key from a business organization. |
| 403 | 16 | Transfers are not available for this organization. | Transfers are disabled, the organization was deleted or it is managed through a distributor. Contact your manager. |
| 404 | 17 | Recipient not found. | Check user_id. Partner methods also return this code if the user is outside your client list. |
| 400 | 18 | Transfer to the organization owner account is not allowed. | The recipient cannot match the sender |
| 422 | 19 | Insufficient funds on the organization balance. | Top up the organization balance. |
| 409 | 20 | Idempotency-Key was already used with a different request body. | Use a new key for a new operation. |
| 400 | 21 | Idempotency-Key header is required, 8-64 chars of [A-Za-z0-9_-]. | Add the header. On the refund endpoint, the allowed length is shorter and the error message says 8-60 chars. |
| 403 | 22 | This API key is not allowed to make transfers. Enable transfers for the key in the account settings. | Enable transfers in the key settings. If the switch is unavailable, ask your manager to enable transfers for the organization. Personal API keys cannot make these transfers. |
| 404 | 23 | Recipient account is deleted. | The recipient deleted the account |
| 404 | 24 | Recipient organization not found. | Check org_id. Partner methods also return this code if the organization is outside your client list. |
| 404 | 25 | Recipient organization is deleted. | Beneficiary organization deleted |
| 403 | 27 | Creating recipients via user_data is not available for this organization. | Phone lookup is unavailable. Pass user_id or org_id. |
| 403 | 32 | Organization creation is not enabled for this organization. | Ask your manager to enable organization creation. |
| 403 | 33 | Creating owners via phone is not available for this organization. | Identify the owner with user_id. |
| 403 | 34 | Balance view is not available for this organization. | Ask your manager to enable balance/get for your organization. |
| 403 | 35 | Balance refund is not available for this organization. | Ask your manager to check balance/refund, transfer access and whether the organization is managed through a distributor. |
| 403 | 36 |
Listing user organizations is not available for this organization. | Ask your manager to enable orgs/list for your organization. |
| 422 | 37 | Insufficient funds on the client balance. | Lower the refund amount to fit the client balance. |
| 422 | 38 | Amount exceeds the unreturned transfers to this client. | Refund at most the total of transfers to this client that have yet to be refunded. |
| 409 | 39 | Concurrent operation on this organization, retry with the same Idempotency-Key. | Repeat request with the same Idempotency-Key |
| 403 | 40 | Spending view is not available for this organization. | balance/spending the organization is not connected to the manager |
| 409 | 41 | An organization with this OGRN is already registered. | An organization with this OGRN already exists. |
| 409 | 42 | An organization with this INN is already registered. | An organization with this INN already exists. |
| 403 | 46 | Organization spending is blocked by the administrator. | Spending and transfers from the account are blocked. Refunds still go through. |
| 403 | 47 | Blocking client spending is not available for this organization. | balance/setSpendBlocked the organization is not connected to the manager |
Response 401
Section titled “Response 401”On HTTP 401, the server can return a JSON body with Content-Type: text/html; charset=utf-8. If your client chooses a parser based on that header, handle 401 separately and read the error object. Standard Business API responses with a numeric code use application/json.
When the API rejects the key, the 401 response puts error details in error and has no numeric top-level code.
{ "error": { "message": "API key has expired. Extend its expiration date or create a new key.", "type": "unauthorized_request_error", "param": null, "code": "api_key_expired" }}error.code |
When |
|---|---|
api_key_expired |
Extend the expired key in its settings or create a new key. |
api_key_revoked |
The key was revoked. |
null |
The key is missing or unknown, or its owner no longer belongs to the organization. |