简要描述:
接口版本:
| 版本号 |
制定人 |
制定日期 |
修订日期 |
| 1.0.0 |
孙程 |
2019-06-04 |
|
请求URL:
请求方式:
请求头:
| 参数名 |
是否必须 |
类型 |
说明 |
| Content-Type |
|
|
|
| Content-MD5 |
|
|
|
请求参数:
| 参数名 |
是否必须 |
类型 |
说明 |
| uid |
是 |
int |
用户id |
| address_id |
是 |
int |
收件人地址id |
| shopping_method_id |
是 |
int |
配送方式id |
| payment_id |
是 |
int |
付款方式id |
| total_amount |
是 |
float |
订单总价,后台会再校对一遍 |
返回示例:
正确时返回(例子):
{
"errorcode": 0,
"msg": "提交成功",
"orders": {
"address_id": "2",
"shopping_method_id": "1",
"payment_id": "1",
"uid": "99",
"total_amount": "46.5",
"goods_amount": "46.50",
"shipping_amount": 0,
"tax_amount": 0,
"coupon_amount": 0,
"order_sn": "71099002200"
}
}
错误时返回:
{
"errcode": -1,
"msg": "请求失败"
}
返回参数说明:
consignee收件人地址
| 参数名 |
类型 |
说明 |
| uid |
int |
用户id |
| order_sn |
string |
订单号 |
| address_id |
int |
地址 |
| shopping_method_id |
int |
配送方式 |
| payment_id |
int |
支付方式 |
| total_amount |
float |
订单总价 |
| goods_amount |
float |
商品总价 |
| shipping_amount |
float |
运费 |
| tax_amount |
float |
税 |
| coupon_amount |
float |
优惠 |
错误代码:
| 参数名 |
说明 |
| 0 |
请求成功 |
| -1 |
提交失败 |
| 201 |
请求方式错误 |
| 202 |
请求参数错误 |
| 203 |
未找到相应地址数据 |
| 204 |
订单金额校对不一致 |
| 205 |
保存收件人信息失败 |
| 206 |
保存商品规格出错 |
| 207 |
保存商品信息时出错 |
文档更新时间: 2019-07-15 19:55 作者:jetsamsun