全部
电子面单
物流轨迹
物流发货
在线测试

获取面单(非智能订单)


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


接口介绍: 拼多多获取面单(非智能订单)


请求方式: POST


返回格式: JSON


接口收费: 扣账户余额


频率限制: 10 次/秒


请求头参数

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

请求参数

参数 类型 必选 描述
shopCode string 电子面单商家账户 token
senderAddress string 发件人详细地址
orderNo string 订单号
goodsInfoList array 礼品信息
goodsCount string 礼品数量
goodsId string 礼品 id
goodsName string 礼品名称
goodsWeight string 重量
receiverName string 收件人姓名
senderDistrict string 发件人区县
receiverProvince string 收件人省份
senderProvince string 发件人省份
receiverCity string 收件人市
senderCity string 发件人市
waybillSellerNick string 主账号
templateUrl string 模板路径
receiverAddress string 收件人详细地址
senderPhone string 发件人号码
senderName string 发件人姓名
receiverPhone string 收件人号码
receiverDistrict string 收件人区
wpCode string 快递编号

请求示例

{
shopCode:"电子面单商家账户 token"
senderAddress:"发件人详细地址"
orderNo:"订单号"
goodsInfoList:[
{
goodsCount:"礼品数量"
goodsId:"礼品 id"
goodsName:"礼品名称"
goodsWeight:"重量"
}
]
receiverName:"收件人姓名"
senderDistrict:"发件人区县"
receiverProvince:"收件人省份"
senderProvince:"发件人省份"
receiverCity:"收件人市"
senderCity:"发件人市"
waybillSellerNick:"主账号"
templateUrl:"模板路径"
receiverAddress:"收件人详细地址"
senderPhone:"发件人号码"
senderName:"发件人姓名"
receiverPhone:"收件人号码"
receiverDistrict:"收件人区"
wpCode:"快递编号"
}

请求代码示例

cURL请求代码示例
curl --location --request POST 'http://api.vv-tool.com/tool/accounts/gpwb' \
--header 'Authorization: Bearer 777a2d62d6938f7d56a93423632c62850d513d77' \
--header 'Content-Type: application/json' \
--header 'Cookie: __yjs_duid=1_dee3bfba5b90592372d209eda95c772a1616035269331; PHPSESSID=gptvic53o6k9mtu41vtv01jhpk; _csrf=9d99b24e587ae327d41222b64715c62cbf7f26e4dbb1e8b72f5168767948f528a%3A2%3A%7Bi%3A0%3Bs%3A5%3A%22_csrf%22%3Bi%3A1%3Bs%3A32%3A%22w9tj4aF2NGE7agKb2x9d5Q36aRFgNtDJ%22%3B%7D' \
--data-raw '{
    shopCode:"电子面单商家账户token"
        senderAddress:"发件人详细地址"
        orderNo:"订单号"
        apiCode:"助手编号"
        goodsInfoList:[
          {
        goodsCount:"礼品数量"
        goodsId:"礼品id"
        goodsName:"礼品名称"
        goodsWeight:"重量"
          }
          ]
        receiverName:"收件人姓名"
        senderDistrict:"发件人区县"
        receiverProvince:"收件人省份"
        senderProvince:"发件人省份"
        receiverCity:"收件人市"
        senderCity:"发件人市"
        waybillSellerNick:"主账号"
        templateUrl:"模板路径"
        receiverAddress:"收件人详细地址"
        senderPhone:"发件人号码"
        senderName:"发件人姓名"
        receiverPhone:"收件人号码"
        receiverDistrict:"收件人区"
        wpCode:"快递编号"
          }
    }'

PHP请求代码示例
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'http://api.vv-tool.com/tool/accounts/gpwb',
  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 =>'{
    shopCode:"电子面单商家账户token"
        senderAddress:"发件人详细地址"
        orderNo:"订单号"
        apiCode:"助手编号"
        goodsInfoList:[
          {
        goodsCount:"礼品数量"
        goodsId:"礼品id"
        goodsName:"礼品名称"
        goodsWeight:"重量"
          }
          ]
        receiverName:"收件人姓名"
        senderDistrict:"发件人区县"
        receiverProvince:"收件人省份"
        senderProvince:"发件人省份"
        receiverCity:"收件人市"
        senderCity:"发件人市"
        waybillSellerNick:"主账号"
        templateUrl:"模板路径"
        receiverAddress:"收件人详细地址"
        senderPhone:"发件人号码"
        senderName:"发件人姓名"
        receiverPhone:"收件人号码"
        receiverDistrict:"收件人区"
        wpCode:"快递编号"
          }
    }',
  CURLOPT_HTTPHEADER => array(
    'Authorization: Bearer 777a2d62d6938f7d56a93423632c62850d513d77',
    'Content-Type: application/json',
    'Cookie: __yjs_duid=1_dee3bfba5b90592372d209eda95c772a1616035269331; PHPSESSID=gptvic53o6k9mtu41vtv01jhpk; _csrf=9d99b24e587ae327d41222b64715c62cbf7f26e4dbb1e8b72f5168767948f528a%3A2%3A%7Bi%3A0%3Bs%3A5%3A%22_csrf%22%3Bi%3A1%3Bs%3A32%3A%22w9tj4aF2NGE7agKb2x9d5Q36aRFgNtDJ%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    \"shopCode\": \"SaXR0ell54ekxkNxDTlpraw==\", \r\n    \"senderAddress\": \"西湖区望月公寓\", \r\n    \"orderNo\": \"11112233223453\", \r\n    \"goodsInfoList\":{\r\n    \"goodsCount\": \"1\", \r\n    \"goodsId\": \"12\", \r\n    \"goodsName\": \"还好\", \r\n    \"goodsWeight\": \"20\",  \r\n    \"receiverName\": \"大哥\", \r\n    \"senderDistrict\": \"湖北省\", \r\n    \"receiverProvince\": \"河北\", \r\n    \"senderProvince\": \"测试省\", \r\n    \"receiverCity\": \"测试市\", \r\n    \"waybillSellerNick\": \"55622665XXX\", \r\n    \"templateUrl\": \"http://cloudprint.cainiao.com/template/standard/290659/40\", \r\n    \"receiverAddress\": \"湖北省测试区\", \r\n    \"senderPhone\": \"12345678901\", \r\n    \"senderName\": \"测试\", \r\n    \"receiverPhone\": \"12345678901\", \r\n    \"receiverDistrict\": \"西湖区\", \r\n    \"wpCode\": \"WTO\"\r\n    }");
Request request = new Request.Builder()
  .url("http://api.vv-tool.com/tool/accounts/gpwb")
  .method("POST", body)
  .addHeader("Authorization", "Bearer 777a2d62d6938f7d56a93423632c62850d513d77")
  .addHeader("Content-Type", "application/json")
  .addHeader("Cookie", "__yjs_duid=1_dee3bfba5b90592372d209eda95c772a1616035269331; PHPSESSID=gptvic53o6k9mtu41vtv01jhpk; _csrf=9d99b24e587ae327d41222b64715c62cbf7f26e4dbb1e8b72f5168767948f528a%3A2%3A%7Bi%3A0%3Bs%3A5%3A%22_csrf%22%3Bi%3A1%3Bs%3A32%3A%22w9tj4aF2NGE7agKb2x9d5Q36aRFgNtDJ%22%3B%7D")
  .build();
Response response = client.newCall(request).execute();

响应参数

参数 类型 描述
url string url
code int 错误码 0 为成功
msg string 返回码描述
msec int 接口执行时间
time int 接口返回时间
orderNo string 订单号
printData string 打印数据
waybillNo string 面单号
withholding_money int 该接口扣费金额(点券)

返回数据

{
    "code": 0,
    "msg": "成功",
    "msec": 1193,
    "time": 1612416107,
    "data":{
		"withholding_money": 3 ,
		"orderNo":"11112233223453",
    "printData":"打印成功",
    "waybillNo":"78525855XXXXXX"}
}

响应代码

代码 代码描述 解决方案
0 成功
100 请求参数错误 检查您的请求参数是否正确
101 请求超时,请重试 检查您的网络情况或者联系客服解决
103 旺旺账号不存在 检查您输入的旺旺号是否正确
200 系统错误,请联系客服 检查您的接口地址填写是否正确,其他问题联系客服解决
202 系统错误,请稍后再试 稍后重试,或者联系对接群
203 暂不支持当前接口
204 请求异常:无该接口权限,请前往官网开通正式接口。 前往官网开通该接口权限
204 请求异常:API 调用次数不足,请前往网站兑换次数。 前往官网充值该接口调用次数
401 身份凭证无效 在请求头中添加 access_token,重新更新 token
404 请求路径或请求方式错误 请更换请求方式或者检查路径是否正确