图片来源@Unsplash,基于CC0协议!
功能
1.输入交易的订单编号,即可查询该订单是否为淘宝客订单。有意向请联系卫星weixiaot168。2.查询结果 0:不是淘宝客订单;1:是。3.根据淘宝官方的后台数据,进行检测,数据真实且有效。4.有效防止佣金损失,降低商家补单成本,避免买家拿走两倍佣金的情况。
接口文档
淘宝客订单查询接口地址: http://xxxxxxxxxxxxxxxxx.com/tool/accounts/item-order
接口介绍: 检测订单是否含有佣金
请求方式: GET
返回格式: JSON
接口收费: 查询 1 次,计 1 次调用,有意向请联系卫星weixiaot168
频率限制: 10 次/秒
请求头参数
参数 类型 必选 值 示例
Authorization string 是 授权 access_token Bearer 1798c6aadec33d1bc2f5b707f1049aefexxxx
12
请求参数
参数 类型 必选 描述
order_id string 是 淘宝订单号
1
请求示例
order_id: 1147309091154155522
1
代码请求示例
cURL请求代码示例
curl --location --request GET 'http://xxxxxxxxxxxxxxxxxxxx.com/tool/accounts/item-order?order_id=1147309091154155522' \
--header 'Authorization: Bearer c2c20409e5f3f34437aece02c69b9a9dxxxxxxxx' \
--header 'Cookie: PHPSESSID=9clrl8itapsmakj80smt4rr0ts; _csrf=735385782aaab2a95d34393495ae9f5a9d3aa9fc7509d6963061462691116a95a%3A2%3A%7Bi%3A0%3Bs%3A5%3A%22_csrf%22%3Bi%3A1%3Bs%3A32%3A%22gqTzmNenalEhPxNhsyKJBF14YcH-_znU%22%3B%7D'
123
PHP请求代码示例
"http://xxxxxxxxxxxxxx.com/tool/accounts/item-order?order_id=1147309091154155522",
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 c2c20409e5f3f34437aece02c69b9a9dxxxxxxxx",
"Cookie: PHPSESSID=9clrl8itapsmakj80smt4rr0ts; _csrf=735385782aaab2a95d34393495ae9f5a9d3aa9fc7509d6963061462691116a95a%3A2%3A%7Bi%3A0%3Bs%3A5%3A%22_csrf%22%3Bi%3A1%3Bs%3A32%3A%22gqTzmNenalEhPxNhsyKJBF14YcH-_znU%22%3B%7D"
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
1234567891011121314151617181920212223
JAVA请求代码示例
OkHttpClient client = new OkHttpClient().newBuilder()
.build();
Request request = new Request.Builder()
.url("http://xxxxxxxxxxxxxxxxxxxx.com/tool/accounts/item-order?order_id=1147309091154155522")
.method("GET", null)
.addHeader("Authorization", "Bearer c2c20409e5f3f34437aece02c69b9a9dxxxxxxxx")
.addHeader("Cookie", "PHPSESSID=9clrl8itapsmakj80smt4rr0ts; _csrf=735385782aaab2a95d34393495ae9f5a9d3aa9fc7509d6963061462691116a95a%3A2%3A%7Bi%3A0%3Bs%3A5%3A%22_csrf%22%3Bi%3A1%3Bs%3A32%3A%22gqTzmNenalEhPxNhsyKJBF14YcH-_znU%22%3B%7D")
.build();
Response response = client.newCall(request).execute();
123456789
响应参数
参数 类型 描述
code int 返回状态码
msg string 返回码描述
msec int 接口执行时间
time int 接口返回时间
data object 返回数据信息
is_taobaoke int 查询结果 0:不是淘宝客订单;1:是
1234567
返回数据示例
{
"code": 0,
"msg": "成功",
"msec": 1456,
"time": 1596432797,
"data": {
"is_taobaoke": 0
}
}
123456789
响应代码