Результаты поиска
    Ничего не найдено
    Оглавление
    Ответы асинхронной задачи

    Ответы асинхронной задачи

    Варианты ответа при опросе AsyncRequest по asyncId после упрощённой идентификации.

    Задача в обработке

    {
      "Envelope": {
        "Body": {
          "AsyncResponse": {
            "asyncId": 37027,
            "asyncStatus": "INPROGRESS"
          }
        }
      }
    }

    Задача не найдена

    {
      "Envelope": {
        "Body": {
          "Fault": {
            "detail": {
              "faultDetail": "500.9.1"
            },
            "faultcode": "Client",
            "faultstring": "Асинхронная задача не найдена"
          }
        }
      }
    }

    Успешная идентификация

    {
      "Envelope": {
        "Body": {
          "AsyncResponse": {
            "SimplifiedIdentificationResponse": {
              "success": true,
              "personalInformation": {
                "profile": {
                  "attribute": [
                    {
                      "approved": true,
                      "value": "Иванов",
                      "published": false,
                      "key": "last_name"
                    }
                  ]
                },
                "document": {
                  "id": 123,
                  "type": "PASSPORT",
                  "hasAttachedFiles": false,
                  "attribute": [
                    {
                      "approved": true,
                      "value": "0000",
                      "published": false,
                      "key": "series"
                    },
                    {
                      "approved": true,
                      "value": "000000",
                      "published": false,
                      "key": "number"
                    }
                  ]
                }
              }
            }
          }
        }
      }
    }

    Идентификация не пройдена

    {
      "Envelope": {
        "Body": {
          "AsyncResponse": {
            "SimplifiedIdentificationResponse": {
              "success": false,
              "error": "Customer data did not pass ESIA check.",
              "errorCode": "500.7.3",
              "personalInformation": {
                "profile": { "attribute": [] },
                "document": { "id": 123, "type": "PASSPORT" }
              }
            }
          }
        }
      }
    }

    При success: false исправьте данные клиента и повторите запрос упрощённой идентификации.