全部
淘宝
拼多多
抖音
京东
快手
当当
1688
淘工厂
小红书
有赞
微店
在线测试

批量发货


接口地址: http://api.vv-tool.com/tool/erps/pdd-ship-free


接口介绍: 针对订单来源拼多多店铺打单请求,单次 50 单以内,可以是不同店铺的订单点击查看详情


必须用户授权 : 需要用户的授权,才能拿到被授权的数据


请求方式: POST


返回格式: JSON


接口收费: 联系运营


频率限制: 10 次/秒


请求头参数

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

请求参数

参数 类型 必选 描述
order_sn array 订单号(单次 50 单以内,可以是不同店铺的订单)
wp_code array 快递简写 快递简写列表
waybill_code array 面单号(快递单号)
owner_id array 店铺 ownerId
vvtype INT false 增强版 1,不传默认 1,普通版 2,专业版 3
remarks string 备注(仅对增强版开放)

请求示例

"params": [
{
"order_sn": "订单号",
"wp_code": "STO",
"waybill_code": "面单号",
"owner_id": "店铺 ownerId"
},
{
"order_sn": "订单号",
"wp_code": "YTO",
"waybill_code": "面单号",
"owner_id": "店铺 ownerId"
}
]

请求代码示例

cURL请求代码示例
curl --location --request POST 'http://api.vv-tool.com/tool/erps/pdd-ship-free' \
--header 'Authorization: Bearer 43e61cb3a8d1367de949ecXXXXXXXXXXXXX' \
--header 'Content-Type: application/json' \
--header 'Cookie: PHPSESSID=ndkbjtm1hf9cilj25utcgopnnk; _csrf=bbfd2eabf5b3920db30ec1841da280fc0dbbd20bb47606fb70dc59589bdb7028a%3A2%3A%7Bi%3A0%3Bs%3A5%3A%22_csrf%22%3Bi%3A1%3Bs%3A32%3A%22e2Mj-LP98Vt2gauxRmXNjUi7wgUvNCzU%22%3B%7D' \
--data-raw '{
   "params": [
    {
        "order_sn": "订单号",
        "wp_code": "STO",
        "waybill_code": "面单号",
        "owner_id": "店铺 ownerId"
    },
    {
        "order_sn": "订单号",
        "wp_code": "YTO",
        "waybill_code": "面单号",
        "owner_id": "店铺 ownerId"
    }
]
}'

PHP请求代码示例
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'http://api.vv-tool.com/tool/erps/pdd-ship-free',
  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 =>'{
   "params": [
    {
        "order_sn": "订单号",
        "wp_code": "STO",
        "waybill_code": "面单号",
        "owner_id": "店铺 ownerId"
    },
    {
        "order_sn": "订单号",
        "wp_code": "YTO",
        "waybill_code": "面单号",
        "owner_id": "店铺 ownerId"
    }
]
}',
  CURLOPT_HTTPHEADER => array(
    'Authorization: Bearer 43e61cb3a8d1367de949ecXXXXXXXXXXXXX',
    'Content-Type: application/json',
    'Cookie: PHPSESSID=ndkbjtm1hf9cilj25utcgopnnk; _csrf=bbfd2eabf5b3920db30ec1841da280fc0dbbd20bb47606fb70dc59589bdb7028a%3A2%3A%7Bi%3A0%3Bs%3A5%3A%22_csrf%22%3Bi%3A1%3Bs%3A32%3A%22e2Mj-LP98Vt2gauxRmXNjUi7wgUvNCzU%22%3B%7D'
  ),
));

$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   \"params\": [\r\n    {\r\n        \"order_sn\": \"订单号\",\r\n        \"wp_code\": \"STO\",\r\n        \"waybill_code\": \"面单号\",\r\n        \"owner_id\": \"店铺 ownerId\"\r\n    },\r\n    {\r\n        \"order_sn\": \"订单号\",\r\n        \"wp_code\": \"YTO\",\r\n        \"waybill_code\": \"面单号\",\r\n        \"owner_id\": \"店铺 ownerId\"\r\n    }\r\n]\r\n}");
Request request = new Request.Builder()
  .url("http://api.vv-tool.com/tool/erps/pdd-ship-free")
  .method("POST", body)
  .addHeader("Authorization", "Bearer 43e61cb3a8d1367de949ecXXXXXXXXXXXXX")
  .addHeader("Content-Type", "application/json")
  .addHeader("Cookie", "PHPSESSID=ndkbjtm1hf9cilj25utcgopnnk; _csrf=bbfd2eabf5b3920db30ec1841da280fc0dbbd20bb47606fb70dc59589bdb7028a%3A2%3A%7Bi%3A0%3Bs%3A5%3A%22_csrf%22%3Bi%3A1%3Bs%3A32%3A%22e2Mj-LP98Vt2gauxRmXNjUi7wgUvNCzU%22%3B%7D")
  .build();
Response response = client.newCall(request).execute();

响应参数

名称 类型 示例值 描述
code string 状态:0 失败; 1 成功
error_msg string 错误内容
order_sn string 订单信息
waybill_code string 面单号(快递单号)
withholding_money int 该接口扣费金额(点券)

返回数据

{
    "code": 0,
    "msg": "操作成功",
    "msec": 1469,
    "time": 1617270403,
    "data": {
      "withholding_money":1,
    "result": [
        {
            "code": 1, 
            "error_msg": null,
            "order_sn": "订单信息",
            "waybill_code": "面单号"
        },
      
    ]
  }
}


响应代码

代码 代码描述 解决方案
0 成功
100 请求参数错误 检查您的请求参数是否正确
101 请求超时,请重试 检查您的网络情况或者联系客服解决
103 旺旺账号不存在 检查您输入的旺旺号是否正确
200 系统错误,请联系客服 检查您的接口地址填写是否正确,其他问题联系客服解决
202 系统错误,请稍后再试 稍后重试,或者联系对接群
203 暂不支持当前接口
204 请求异常:无该接口权限,请前往官网开通正式接口。 前往官网开通该接口权限
204 请求异常:API 调用次数不足,请前往网站兑换次数。 前往官网充值该接口调用次数
302 未授权店铺 根据返回链接进行扫码授权