全部
在线测试

1688 无痕做单


接口地址: http://api.vv-tool.com/tool/accounts/see-whbd


接口介绍: 用户直接下单不需浏览自己宝贝,安全性较高 点击查看详情


请求方式: POST


返回格式: JSON


接口收费: 查询 1 次,计 1 次调用,找销售可低至几分钱


频率限制: 10 次/秒


请求头参数

参数 类型 必选 示例
Authorization string 授权 access_token Bearer 1798c6aadec33d1bc2f5b707f1049aefexxxx

请求参数

参数 类型 必选 描述
goods_id string 商品 id
count int 数量
sku_id string skuID(有 sku 的需要上传,否则无效)
type string 类型(传 1 商品 id goods_id 字段为字符串,传 2 商品 id goods_id 字段为数组 最多支持四个商品 默认传 1)
param string 当 type 为 2 时,该参数必传

请求示例

单个请求
goods_id: 546507621194
sku_id: 4900415886238
count:1

多个请求
{
"param": [
{
"goods_id": "546507621194",
"sku_id": "4900415886238"
},
{
"goods_id": "735108037953",
"sku_id": "4900415886239"
}
],
"count":3,
"type": 2
}

请求代码示例

cURL请求代码示例

curl --location 'http://api.vv-tool.com/tool/accounts/see-whbd' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer 1798c6aadec33d1bc2f5b707f1049aefexxxx' \
--data '{
    "goods_id": "546507621194",
    "sku_id":"4900415886238",
    "count":2   
}'

PHP请求代码示例

<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'http://api.vv-tool.com/tool/accounts/see-whbd',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{
    "goods_id": "546507621194",
    "sku_id":"4900415886238",
    "count":2 
}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json',
    'Authorization: Bearer 1798c6aadec33d1bc2f5b707f1049aefexxxx'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

JAVA请求代码示例

OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\r\n    \"goods_id\": \"546507621194\",\r\n    \"sku_id\":\"4900415886238\",\r\n    \"count\":2\r\n}");
Request request = new Request.Builder()
  .url("http://api.vv-tool.com/tool/accounts/see-whbd")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .addHeader("Authorization", "Bearer 1798c6aadec33d1bc2f5b707f1049aefexxxx")
  .build();
Response response = client.newCall(request).execute();

响应参数

参数 类型 描述
url string url
code int 错误码 0 为成功
msg string 返回码描述
msec int 接口执行时间
time int 接口返回时间
record_id int 记录 id

返回数据

{单个返回
    "code": 0,
    "msg": "成功",
    "msec": 558,
    "time": 1612403448,
    "data": {
        "record_id": 184346,
        "url": ""
    }
}
{多个返回
    "code": 0,
    "msg": "成功",
    "msec": 596,
    "time": 1648628067,
    "data": {
        "record_id": 12445,
        "url": [
            {
                "goods_id": "546507621194",
                "url": ""
            },
            {
                "goods_id": "735108037953",
                "url": ""
            }
        ]
    }
}

错误码 点击查看详情:查看