{
  "tags": [
    "账户资料"
  ],
  "description": "查询当前登录用户的个人实名认证或二次实名认证结果。认证已通过时立即返回通过状态；尚未通过时，接口会依据用户保存的认证方式向支付宝或微信认证服务查询并同步认证结果。调用前用户必须已填写姓名和身份证号码，并已存在认证流水号。",
  "operationId": "user_get_v1_user_certify",
  "security": [
    {
      "AccessToken": []
    },
    {
      "ApiKey": [],
      "ApiSecret": []
    }
  ],
  "responses": {
    "200": {
      "description": "请求已被处理。成功时 data.passed 为 T；姓名或身份证为空、找不到认证流水号、未配置实名认证服务或认证服务返回失败时仍返回 HTTP 200。",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "required": [
              "code",
              "data"
            ],
            "properties": {
              "code": {
                "type": "integer",
                "description": "业务状态码；成功为 0。",
                "example": 0
              },
              "data": {
                "type": "object",
                "required": [
                  "passed"
                ],
                "description": "实名认证查询结果。",
                "properties": {
                  "passed": {
                    "type": "string",
                    "enum": [
                      "T"
                    ],
                    "description": "认证通过标志；成功时固定为 T。",
                    "example": "T"
                  }
                }
              }
            }
          },
          "examples": {
            "passed": {
              "summary": "认证已通过",
              "value": {
                "code": 0,
                "data": {
                  "passed": "T"
                }
              }
            },
            "missingIdentity": {
              "summary": "未填写身份信息",
              "value": {
                "code": "user_certify-20",
                "msg": "身份证或姓名为空",
                "data": ""
              }
            },
            "missingCertifyId": {
              "summary": "认证流水号不存在",
              "value": {
                "code": "user_certify-8",
                "msg": "找不到cert_id",
                "data": ""
              }
            }
          },
          "example": {
            "code": 0,
            "data": {
              "passed": "T"
            }
          }
        }
      }
    }
  },
  "x-python-handler": "user.UserCertifyAPI",
  "x-python-route-line": 213,
  "x-audience": "user",
  "x-auth": "user",
  "x-reviewed": true,
  "parameters": [],
  "x-itecdn-source-reviewed": true,
  "extensions": [
    {
      "key": "x-python-handler",
      "value": "user.UserCertifyAPI"
    },
    {
      "key": "x-python-route-line",
      "value": 213
    },
    {
      "key": "x-audience",
      "value": "user"
    },
    {
      "key": "x-auth",
      "value": "user"
    },
    {
      "key": "x-reviewed",
      "value": true
    },
    {
      "key": "x-itecdn-source-reviewed",
      "value": true
    }
  ],
  "method": "get",
  "path": "/v1/user/certify",
  "servers": [
    {
      "url": "https://master.example.invalid",
      "description": "不可调用的示例地址；复制示例后替换为自己的主控域名。"
    }
  ],
  "securitySchemes": {
    "AccessToken": {
      "type": "apiKey",
      "in": "header",
      "name": "access-token",
      "description": "通过登录接口获得的短期访问令牌。"
    },
    "ApiKey": {
      "type": "apiKey",
      "in": "header",
      "name": "api-key",
      "description": "API Key；必须和 api-secret 同时发送。"
    },
    "ApiSecret": {
      "type": "apiKey",
      "in": "header",
      "name": "api-secret",
      "description": "API Secret；必须和 api-key 同时发送。"
    }
  },
  "info": {
    "title": "itecdn v5 用户 API",
    "version": "5.x",
    "description": "itecdn v5.x Python 主控用户 API。本文档不适用于 v6 或其它实现。"
  },
  "postman": {
    "name": "查询实名认证状态",
    "description": {
      "content": "查询当前登录用户的个人实名认证或二次实名认证结果。认证已通过时立即返回通过状态；尚未通过时，接口会依据用户保存的认证方式向支付宝或微信认证服务查询并同步认证结果。调用前用户必须已填写姓名和身份证号码，并已存在认证流水号。",
      "type": "text/plain"
    },
    "url": {
      "path": [
        "v1",
        "user",
        "certify"
      ],
      "host": [
        "{{baseUrl}}"
      ],
      "query": [],
      "variable": []
    },
    "header": [
      {
        "key": "Accept",
        "value": "application/json"
      }
    ],
    "method": "GET",
    "auth": {
      "type": "apikey",
      "apikey": [
        {
          "type": "any",
          "value": "access-token",
          "key": "key"
        },
        {
          "type": "any",
          "value": "{{apiKey}}",
          "key": "value"
        },
        {
          "type": "any",
          "value": "header",
          "key": "in"
        }
      ]
    }
  }
}