全部
        
            淘宝客
        
在线测试  
     移动/联通/电信话费优惠订单查询
接口地址: http://proxy-api.vv-tool.com/api/proxy/phone/order/detail
接口介绍: 可实时查询充值订单的状态,获取订单创建时间,支付时间,充值到账时间,佣金信息等明细数据。点击查看详情
请求方式: GET
返回格式: JSON
接口收费: 联系客服
频率限制: 10 次/秒
请求头参数
| 参数 | 类型 | 必选 | 值 | 示例 | 
|---|---|---|---|---|
| Authorization | string | 是 | 授权 access_token | Bearer 1798c6aadec33d1bc2f5b707f1049aefexxxx | 
请使用新的生成 token 接口 点击查看详情
请求参数
| 参数 | 类型 | 必选 | 描述 | 
|---|---|---|---|
| order_number | string | 是 | 订单编号 | 
| order_type | int | 否 | 充值类型(1 慢充 2 快充) | 
请求代码示例
cURL请求代码示例
curl --location --request GET 'http://proxy-api.vv-tool.com/api/proxy/phone/order/detail?order_number=ph202105241307059xxxx' \
--header 'Authorization: Bearer 1798c6aadec33d1bc2f5b707f1049aefexxxx' \
--header 'Content-Type: application/x-www-form-urlencoded' \
PHP请求代码示例
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
  CURLOPT_URL => 'http://proxy-api.vv-tool.com/api/proxy/phone/order/detail?order_number=ph202105241307059xxxx',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'GET',
  CURLOPT_HTTPHEADER => array(
    'Authorization: Bearer 1798c6aadec33d1bc2f5b707f1049aefexxxx',
    'Content-Type: application/x-www-form-urlencoded'
  ),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
JAVA请求代码示例
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
Request request = new Request.Builder()
  .url("http://proxy-api.vv-tool.com/api/proxy/phone/order/detail?order_number=ph202105241307059xxxx")
  .method("GET", null)
  .addHeader("Authorization", "Bearer 1798c6aadec33d1bc2f5b707f1049aefexxxx")
  .addHeader("Content-Type", "application/x-www-form-urlencoded")
  .build();
Response response = client.newCall(request).execute();
响应参数
| 参数 | 类型 | 描述 | 
|---|---|---|
| code | int | 错误码,0 表示充值到账 ,1 表示订单创建成功等待电信系统执行话费充值 ,2 表示为失败(扣款退回原账户) | 
| msg | string | 返回码描述 | 
| msec | int | 接口执行时间 | 
| time | int | 接口返回时间 | 
| order_phone | string | 充值号码 | 
| created_at | date | 订单创建时间 | 
| order_recharge_at | string | 充值到账时间 | 
| order_number | string | 订单编号 | 
| order_status | string | 支付状态(0 待支付,1 已支付,待充值到账,2 全部退款,3 部分退款,4 取消,5 已完成 充值到账) | 
| order_remark | string | 订单备注(错误会有返回) | 
| order_notify_url | string | 充值成功回调地址 | 
| order_point | int | 订单消耗的点券 | 
| order_type | int | 充值类型(1 慢充 2 快充) | 
| order_price | string | 充值话费(单位为分) | 
| withholding_money | int | 该接口扣费金额(单位点券,1 点券 =1 分) | 
返回数据
{
    "code": 0,
    "msg": "查询成功",
    "msec": 354,
    "time": 1621833038,
    "data": {
        "order_phone": "18937057052",
        "order_price": 30000,
        "order_number": "ph202105241307059xxxx",
        "order_status": 1,
        "order_remark": "2021-05-24 13:07:05",
        "order_type": 2,
        "order_notify_url": null,
        "order_point": 30000,
        "created_at": "2021-05-24 13:07:05"
    }
}
响应代码
| 代码 | 代码描述 | 解决方案 | 
|---|---|---|
| 0 | 成功 | |
| 100 | 订单号不存在 | 请输入正确的订单号 | 
| 100 | order number 字段是必须的 | 该字段必须传入 | 
公共错误码点击查看详情
 
 