物流信息上传2.1
API
物流上传接口
POST
访问地址:/logistics
Headers
Name | Type | Description |
---|---|---|
Content-Type* | String | application/x-www-form-urlencoded |
Request Body
Name | Type | Description |
---|---|---|
sign* | string | 签名值 |
signType* | string | 签名类型 MD5 / RSA (4) |
echoParam | string | 回声参数,Response 中将会原样返回 (256) |
courierInfo* | array | json string, 数组类型的字符串,物流详细信息, 请参考courierInfo |
reference* | string | useepay订单号, 需要唯一 (64) |
merchantNo* | string | 商户号 (16) |
version* | string | 目前固定为 2.1 (5) |
transactionType | String | max=18 交易类型:save |
courierInfo
字段 | 长度 | 描述 | 是否必要 |
---|---|---|---|
courierNumber | max=64 | 物流编号 | yes |
url | max=256 | 物流查询网址 | yes |
courierCode | max=32 | 物流公司编码 | yes |
Result
curl BASE_URL + '/logistics'
-H 'Connection: keep-alive' -H 'Content-Type: application/x-www-form-urlencoded' --data-raw 'courierInfo=[{"courierCode":"others","courierNumber":"A111111111","url":"www.baidu.com"}]&merchantNo=500000000007362&reference=1012212071430678654&sign=0a363603439ae81e65e5d5b7396f0d44&signType=MD5&transactionType=save&version=2.1' --compressed
Last updated