手机号查询充值运营商
接口说明
根据手机号查询手机号归属的运营商
接口地址
https://api.paynicorn.com/trade/topup/api/queryOperatorCode
请求方法:post
请求参数
参数名 | 参数类型 | 填写要求 | 描述 |
---|---|---|---|
nationalPhoneNo | string | M | 手机号 |
countryCode | string | M | 国家码 |
响应参数
参数名 | 参数类型 | 填写要求 | 描述 |
---|---|---|---|
code | int | M | 请求处理的标识 |
msg | string | M | 请求处理信息 |
result | JsonObj | M | 返回结果 |
result对象参数
参数名 | 参数类型 | 填写要求 | 描述 |
---|---|---|---|
countryCode | string | M | 国家编码 |
currency | string | M | 币种编码 |
areaCode | string | M | 国家区号 |
operatorCode | string | M | PAYNICORN运营商编码 |
operatorName | string | M | 运营商全程 |
示例
Request
{
"countryCode": "NG",
"nationalPhoneNo": "07012345678"
}
Response
{
"code": 1200,
"msg": "success",
"result": {
"countryCode": "NG",
"currency": "NGN",
"areaCode": "234",
"operatorCode": "NG_AIRTEL",
"operatorName": "Airtel Nigeria"
}
}