/data/mobile_number_portability

1.接口描述

该API的功能是查询手机号码的运营商携号转网信息。

请求方式:

POST

请求URL:

https://cloudapi.deepfinch.com/data/mobile_number_portability

调试工具

Debugging Tool

2.请求参数

2.1 请求头域

字段 类型 必需 描述
X-DF-API-ID string API调用凭证信息,详细信息请参考API调用
X-DF-API-SECRET string API调用凭证信息,详细信息请参考API调用

2.2 请求体

字段 类型 必需 描述
phone_number string 手机号码

3.返回参数

正常响应 (200

字段 类型 描述
request_id string 本次请求的 id
status string 状态。正常为 OK ,其他值表示失败。详见错误码
ori_carrier string 原运营商,取值参考运营商类型
new_carrier string 当前运营商,取值参考运营商类型
运营商类型
字段 描述
china_mobile 中国移动
china_union 中国联通
china_telecom 中国电信
other 未知

输出示例:

{
  "request_id": "TID8bf47ab6eda64476973cc5f5b6ebf57e",
  "status": "OK",
  "ori_carrier": "china_mobile",
  "new_carrier": "china_union"
}

4.错误码

状态码 status 字段 说明
400 INVALID_ARGUMENT 请求参数错误
401 UNAUTHORIZED 未授权或授权失败
403 RATE_LIMIT_EXCEEDED 调用频率超出限额
404 NOT_FOUND 请求路径错误
500 INTERNAL_ERROR 服务器内部错误

输出示例:

{
    "status": "INVALID_ARGUMENT",
    "reason": "Invalid phone number",
    "request_id": "TIDf786a0d9322147a7b34955880ccaa06d"
}

5.输入示例

results matching ""

    No results matching ""