简要描述:
接口版本:
版本号 |
制定人 |
制定日期 |
修订日期 |
1.0.0 |
孙程 |
2019-06-04 |
|
请求URL:
请求方式:
请求头:
参数名 |
是否必须 |
类型 |
说明 |
Content-Type |
|
|
|
Content-MD5 |
|
|
|
请求参数:
参数名 |
是否必须 |
类型 |
说明 |
uid |
是 |
string |
用户id |
status |
否 |
int |
状态:1 未付款; 2 待签收; 3 交易成功; 4 交易失败; 9 全部 |
keyword |
否 |
string |
订单号或快递单号 |
返回示例:
正确时返回(例子):
{
"errorcode": 0,
"msg": "请求成功",
"order_data": {
"current_page": 1,
"data": [
{
"id": 72,
"order_id": "71099002200",
"user_id": 99,
"shipping_method": 1,
"payment_method": 1,
"order_status": 2,
"goods_amount": "46.50",
"shipping_amount": "0.00",
"tax_amount": "0",
"coupon_amount": "0.00",
"order_amount": "46.50",
"memos": "",
"created_date": 1559631242,
"payment_date": 1559634231,
"thirdparty_trade_id": "",
"tracking_no": null,
"order_goods": [
{
"order_goods_id": 470,
"goods_id": 1,
"goods_name": "【断底断面包退换】内增高网面小白鞋女夏韩版休闲运动鞋女",
"goods_image": "915cd1bcdcbef0d.jpg",
"goods_qty": 1,
"goods_price": "30.60",
"cate_id": 71,
"spec": [
{
"order_goods_optional_id": 82,
"map_id": 470,
"opt_id": 59,
"opt_text": "29",
"opt_type": "2",
"opt_type_name": "尺码"
},
{
"order_goods_optional_id": 81,
"map_id": 470,
"opt_id": 57,
"opt_text": "白色",
"opt_type": "1",
"opt_type_name": "颜色"
}
]
},
{
"order_goods_id": 471,
"goods_id": 17,
"goods_name": "雪纺衫女长袖2019春装新款打底衫女韩版衬衫女宽松雪纺上衣女小衫",
"goods_image": "685cd3e99b833e1.jpg",
"goods_qty": 1,
"goods_price": "15.90",
"cate_id": 71,
"spec": [
{
"order_goods_optional_id": 84,
"map_id": 471,
"opt_id": 48,
"opt_text": "M",
"opt_type": "2",
"opt_type_name": "尺码"
},
{
"order_goods_optional_id": 83,
"map_id": 471,
"opt_id": 43,
"opt_text": "黄色",
"opt_type": "1",
"opt_type_name": "颜色"
}
]
}
]
}
],
"from": 1,
"last_page": 12,
"next_page_url": "http://localhost/union-shop/PHP/public/api/order_index?=2",
"path": "http://localhost/union-shop/PHP/public/api/order_index",
"per_page": 1,
"prev_page_url": null,
"to": 1,
"total": 12
}
}
错误时返回:
{
"errorcode": -1,
"msg": "请求失败"
}
返回参数说明:
参数名 |
类型 |
说明 |
current_page |
int |
当前页 |
last_page |
int |
最有一页,也是总页数 |
per_page |
int |
每页显示多少条数据 |
data |
array |
订单数据数组 |
错误代码:
参数名 |
说明 |
201 |
请求方式错误 |
202 |
请求参数错误 |
文档更新时间: 2019-07-15 19:50 作者:jetsamsun