礼品接口


获取发货仓库列表
参数
名称 类型 必选 描述
user string 用户名
pass string 用户密码(MD5加密,16位小写)
正文
user=test&pass=4621d373cade4e83
{"code": 1,"msg": "返回成功","time": "1540347545","data": {"storelist":[{"id":1,"store_name":"圆通北京仓","apiprice":"1.00","typname":"圆通快递","address":"北京 北京市 朝阳区 XX","orders":"1"},{"id":4,"store_name":"圆通广州仓","apiprice":"2.00","typname":"圆通快递","address":"广东省 广州市 天河区 XX","orders":"2"}]}}
获取在售礼品列表
参数
名称 类型 必选 描述
user string 用户名
pass string 用户密码(MD5加密,16位小写)
typid int 使用仓库ID取得礼品列表
正文
user=test&pass=4621d373cade4e83
{"code": 1,"msg": "返回成功","time": "1540347545","data": {"goodslist":[{
                "id": 1,
                "name": "小老鼠剥橙器10g",
                "apiprice": "0.20",
                "goods_image": "https://img.alicdn.com/imgextra/i4/2817251591/O1CN01wUAAIg1NcijlrIpmT_!!2817251591.png",
                "store_name": "绍兴圆通菜鸟仓",
                "weight": "10g",
                "content": "",
                "orders": "0"
            },
            {
                "id": 2,
                "name": "家用小皮尺10g",
                "apiprice": "0.40",
                "goods_image": "https://img.alicdn.com/imgextra/i2/2817251591/O1CN014emygi1NcijnIUqar_!!2817251591.png",
                "store_name": "绍兴圆通菜鸟仓",
                "weight": "10g",
                "content": "",
                "orders": "0"
            }]}}
礼品下单接口(批量)
参数
名称 类型 必选 描述
user string 用户名
pass string 用户密码(MD5加密,16位小写)
goodsid int 礼品编号,请在礼品列表接口获得具体编号
storesid int 仓库编号,请在仓库列表接口获得具体编号
pid int 面单类型:1=淘宝,2=京东,3=拼多多,4=抖音
orders object json格式,orders数据内容,以下是orders包含的参数
send_order_no string 订单号,不可重复。
receiver_name int 收货人
receiver_phone string 收货人号码
receiver_province string 收货地址所在省
receiver_city string 收货地址所在市
receiver_district string 收货地址所在区
receiver_address string 收货地址
sendname string 发件人
sendphone string 发件号码
正文
user=test&pass=4621d373cade4e83&goodsid=1&storesid=1&pid=1&orders=[{"send_order_no":"123456","receiver_name":"王先生","receiver_phone":"13555555555","receiver_province":"广东省","receiver_city":"广州市","receiver_district":"天河区","receiver_address":"XX路XX号","sendname":"杨先生","sendphone":"13666666666"},{"send_order_no":"7891011","receiver_name":"陈先生","receiver_phone":"13555555552","receiver_province":"广东省","receiver_city":"深圳市","receiver_district":"宝安区","receiver_address":"XX路XX号","sendname":"杨先生","sendphone":"13666666667"}]
{"code":1,"msg":"提交成功","time":"1540347545","data":[{"send_order_no":"2020001","express_no":"单号1","express_name":"圆通快递","taskid":"123","p":"2","status":"1"},{"send_order_no":"2020002","express_no":"单号2","express_name":"圆通快递","taskid":"456","p":"2","status":"1"}]}
礼品下单接口
参数
名称 类型 必选 描述
user string 用户名
pass string 用户密码(MD5加密,16位小写)
pid int 面单类型:1=淘宝,2=京东,3=拼多多,4=抖音
send_order_no string 订单号,不可重复。
goodsid int 礼品编号,请在礼品列表接口获得具体编号
storesid int 仓库编号,请在仓库列表接口获得具体编号
num int 购买数量.默认 1
receiver_name int 收货人
receiver_phone string 收货人号码
receiver_province string 收货地址所在省
receiver_city string 收货地址所在市
receiver_district string 收货地址所在区
receiver_address string 收货地址
sendname string 发件人
sendphone string 发件号码
正文
user=test&pass=4621d373cade4e83&pid=1&send_order_no=123456&goodsid=1&storesid=1&num=1&receiver_name=王先生&receiver_phone=13555555555&receiver_province=广东省&receiver_city=深圳市&receiver_district=宝安区&receiver_address=XX路XX号&sendname=杨先生&sendphone=13666666667
{"code":1,"msg":"提交成功","time":"1540347545","data":{"send_order_no":"2020001","express_no":"单号","express_name":"圆通快递","taskid":"98736","p":"3.0","status":"1"}}
获取快递单号
参数
名称 类型 必选 描述
user string 用户名
pass string 用户密码(MD5加密,16位小写)
taskid string 单号ID,下单时候返回的taskid,多个用英文逗号,分割
正文
user=test&pass=4621d373cade4e83&taskid=1043765,75134740
{
    "code": 1,
    "msg": "获取单号成功",
    "time": "1594532039",
    "data": [
        {
            "ordercode": "2020552044167054",
            "express_no": "YT4500702107275",
            "taskid": "1043765"
        },
        {
            "ordercode": "20207111736348344",
            "express_no": "4252410034075",
            "taskid": "75134740"
        }
    ]
}
获取快递单号
参数
名称 类型 必选 描述
user string 用户名
pass string 用户密码(MD5加密,16位小写)
taskid string 单号ID,下单时候返回的taskid
正文
user=test&pass=4621d373cade4e83&taskid=98736
{"code": 1,"msg": "获取单号成功","time": "1540347545","data": {"express_no": "82081082712","taskid": "98736"}}
未出单号的订单,可以用此接口取消订单并退款
参数
名称 类型 必选 描述
user string 用户名
pass string 用户密码(MD5加密,16位小写)
ids string 单号id,就是下单成功后返回的taskid字段
正文
user=test&pass=4621d373cade4e83&ids=98736
{"code": 1,"msg": "取消成功","time": "1540347545","data": {"p": "3.2","taskid":"98736"}}
获取账号余额
名称 类型 必选 描述
user string 用户名
pass string 用户密码(MD5加密,16位小写)
参数
正文
user=test&pass=4621d373cade4e83
{"code": 1,"msg": "","time": "1540347545","data": {"usermoney":88.88}}