# 店铺后台发货


接口地址: http://www.damaijia168.com/vv/external/taoStoreBackstageDelivery


请求方式: POST


传参方式: JSON


返回格式: JSON


# 请求头参数

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

# 请求参数

参数 类型 必选 描述
seller_nick string 掌柜号
order_no string 订单号
wp_code string 快递编号
waybill_no string 面单号

# 请求示例

{
  "seller_nick": "测试",
  "order_no": "1111111",
  "wp_code": "111111",
  "waybillNo": "111111"
}

# 请求代码示例

cURL请求代码示例

curl --location --request POST 'http://www.damaijia168.com/vv/external/taoStoreBackstageDelivery' --header 'Authorization: 1798c6aadec33d1bc2f5b707f1049aefexxxx' --header 'Content-Type: application/json' --data-raw '{
  "seller_nick": "测试",
  "order_no": "1111111",
  "wp_code": "111111",
  "waybillNo": "111111"
}'

PHP请求代码示例

<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'http://www.damaijia168.com/vv/external/taoStoreBackstageDelivery',
  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 =>'{
  "seller_nick": "测试",
  "order_no": "1111111",
  "wp_code": "111111",
  "waybillNo": "111111"
}',
  CURLOPT_HTTPHEADER => array(
    'Authorization: 1798c6aadec33d1bc2f5b707f1049aefexxxx',
    'Content-Type: application/json'
  ),
));

$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  \"seller_nick\": \"测试\",\r\n  \"order_no\": \"1111111\",\r\n  \"wp_code\": \"111111\",\r\n  \"waybillNo\": \"111111\"\r\n}");
Request request = new Request.Builder()
  .url("http://www.damaijia168.com/vv/external/taoStoreBackstageDelivery")
  .method("POST", body)
  .addHeader("Authorization", "1798c6aadec33d1bc2f5b707f1049aefexxxx")
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();

Python请求代码示例

import requests
import json

url = "http://www.damaijia168.com/vv/external/taoStoreBackstageDelivery"

payload = json.dumps({
  "seller_nick": "测试",
  "order_no": "1111111",
  "wp_code": "111111",
  "waybillNo": "111111"
})
headers = {
  'Authorization': '1798c6aadec33d1bc2f5b707f1049aefexxxx',
  'Content-Type': 'application/json'
}

response = requests.request("POST", url, headers=headers, data=payload)

print(response.text)

# 响应参数

参数 类型 描述
data object 返回数据
----order_no string 订单号
----success bool ture 成功,false 失败
----fahuoTime string 发货时间
----amount int 消耗点券
status int 状态码,0为成功

# 返回数据

{
  "data": {
        "order_no": "12**********188",
        "success": true,
        "fahuoTime":"1616478707"
    } ,
  "status": 0
}

# 错误码

状态码(status)) 错误说明
1003 用户不存在
132 请求格式必须为JSON
422 参数列表不合法,在err中会给出提示
200 认证失败
202 商品id不合法
203 仓库id不合法
228 订单来源不合法
217 创建订单失败
212 包裹id不合法
209 账户余额不足