{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"type":"markdown"},"seo":{"title":"Коды ошибок (API)","description":"Документация API 1Payment — приём платежей и выплаты.","llmstxt":{"hide":false,"sections":[{"title":"Table of contents","includeFiles":["**/*"],"excludeFiles":[]}],"excludeFiles":[]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"коды-ошибок-api","__idx":0},"children":["Коды ошибок (API)"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["При ошибке обработки запроса API возвращает ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["HTTP 400"]}," (или иной код ошибки метода) и JSON:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n  \"error_code\": 2\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Поле ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["error_code"]}," — целое число. Расшифровка и действия — в таблице ниже."]},{"$$mdtype":"Tag","name":"blockquote","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Отказы по платежу на стороне банка/процессинга (",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["status_code"]}," в колбеке) — в разделе ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/pages/decline-error-codes"},"children":["Коды ошибок (отказы)"]},"."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"справочник-error_code","__idx":1},"children":["Справочник ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["error_code"]}]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Код"},"children":["Код"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Что означает"},"children":["Что означает"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Что делать"},"children":["Что делать"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["1"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Общая ошибка без детализации."]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Обратитесь в поддержку 1Payment с ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["order_id"]}," / ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["user_data"]}," и временем запроса."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["2"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Неверная подпись ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["sign"]},"."]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Проверьте ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["ключ проекта"]}," (не глобальный), префикс метода, сортировку параметров A→Z, MD5, lowercase (hex). Сверьте на ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/pages/init-request"},"children":["Формат запроса"]}," или виджете подписи на странице метода. Не помогло — отправьте в поддержку исходную строку до MD5."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["3"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Метод недоступен."]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Проверьте URL и имя метода; уточните у менеджера, подключён ли метод на проекте."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["4"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Партнёр не найден."]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Проверьте ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["partner_id"]}," в личном кабинете / у менеджера."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["5"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Проект не найден."]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Проверьте ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["project_id"]}," и привязку к ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["partner_id"]},"."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["6"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Способ ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["приёма"]}," не подключён к проекту."]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Проверьте ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["payment_type"]}," и договорённости по каналу (карта, СБП, СберПей). См. ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/pages/payment-types"},"children":["Типы платежей"]},"."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["7"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Способ ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["выплаты"]}," не подключён к проекту."]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Проверьте тип выплаты и настройки проекта. См. ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/pages/payout-types"},"children":["Типы выплат"]},"."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["8"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Ошибка ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["user_data"]},"."]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Передайте непустую строку до 255 символов; значение ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["уникально"]}," в рамках ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["partner_id"]}," (лучше UUID). Не повторяйте ID уже созданного платежа."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["9"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Недостаточно средств на балансе выплат."]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Пополните баланс выплат или уменьшите сумму; уточните лимиты у менеджера."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["10"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Транзакция не найдена."]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Проверьте ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["order_id"]}," / ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["user_data"]}," и ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["project_id"]},"; убедитесь, что платёж создавался в этом проекте."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["11"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Оплата с данного источника недоступна."]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Проверьте ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["shop_url"]},", домен и настройки проекта; при необходимости отправьте сайт на проверку через менеджера."]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"связанные-разделы","__idx":2},"children":["Связанные разделы"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/pages/decline-error-codes"},"children":["Коды ошибок (отказы)"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/pages/init-request"},"children":["Формат запроса к API"]}]}]}]},"headings":[{"value":"Коды ошибок (API)","id":"коды-ошибок-api","depth":1},{"value":"Справочник error_code","id":"справочник-error_code","depth":2},{"value":"Связанные разделы","id":"связанные-разделы","depth":2}],"frontmatter":{"seo":{"title":"Коды ошибок (API)"}},"lastModified":"2026-05-21T12:22:01.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/pages/error-codes-api","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}