客服电话:+8613533645155
注册
客服电话:+8613533645155

API接口之六 一件包裹一订单

关键字: 一件包裹一订单 API

API接口之六 一件包裹一订单

6 一个包裹一个订单下单

msgType=oneponeo

请求报文内容(content)字段说明:
字段类型是否必填说明
pinList
物品组
package对象包裹基本信息
address对象收货人地址
order对象订单基本信息

pin: 物品属性:(注意这里是List)

字段类型是否必填说明
title

string

品名
price

string

单价:默认1美金
total_price

string

总价
qty

string

件数:默认1件
currency

string

货币:11(美金)’

package:包裹对象属性:

字段类型是否必填说明
snstring单号
stockstring预报仓库(默认广州仓=2)
expressstring快递公司
customstring服务(16拍照17木架18拆包 空=无)
notestring备注:预留的备注,入库时仓库有可能会更改

address:收件人对象属性:

字段类型是否必填说明
fullnamestring收件人名
countrystring国家地区二字码:首页有说明文档
provincestring州省
citystring城市
addressstring详细地址
mobilestring电话
telstring备用电话
emailstring邮箱
zipcodestring邮编:尽量加上,非必要但是很重要

order:订单信息对象属性:

字段类型是否必填说明
channelstring方法1:渠道代码(渠道的前5位)方法0:渠道ID  方法2:渠道名
chantypestring渠道类型:1时代表channel填写的是渠道代码,0时填的是渠道ID,2时填的是渠道名。建议用1和0
numstring包裹数(这里固定=1)
stock_id string仓库号(默认广州仓=2)
weight string预报重量(默认=0)
safestring是否买保险(0不买/1买)
valstring预报价(仓库会修改到合理报价,或系统自动生成)
if_deliverystring

是否直接发货(0 由对应业务员或客服确认后发出    /    1  余款够时直接发出)建议统一用=0

notestring备注:预留的备注,入库时仓库有可能会更改

示例:

请求示例(参数)header:

    "Content-Type":"application/json",

    "msgId": "1",

    "msgType": "oneponeo"

    "partnerCode": "ANDIC002"

    "dataDigest": "13113bb286b56777ca562eb584197734"


body:

{"pin":[{"title":"\u8863\u670d","price":"3.35","total_price":"6.7","qty":"2","currency":"11"},{"title":"\u978b","price":"12.3","total_price":"12.3","qty":"1","currency":"11"}],"package":{"stock":"2","express":"","sn":"C002-15926584","note":"C002-15926584","custom":""},"address":{"fullname":"11111","mobile":"111111","address":"1111....111111111","zipcode":"111111","city":"1111","province":"1111","country":"MY","tel":"","email":""},"order":{"channel":"MY001","stock_id":2,"weight":"","safe":"","val":"","if_delivery":0,"num":1}}

成功返回示例:

{"data":{"order_sn":"F0813000714"},"msg":"一包裹一订单下单成功","code":200}




关注官方微信
在线客服
+8613533645155