API 调用地址
{域名地址}/api/order/detail
说明:{域名地址}
需要替换成你的域名地址,如 /api/order/detail
调用方法
GET
请求参数
字段名 |
类型 |
必填 |
说明 |
order_id |
string |
是 |
订单ID |
返回参数
字段名 |
类型 |
说明 |
code |
int |
错误码 |
msg |
string |
错误原因说明 |
data |
object |
结果内容 |
data结果
字段名 |
类型 |
说明 |
id |
int |
ID |
order_id |
string |
订单号 |
payment_id |
string |
支付流水ID |
user_id |
int |
用户ID |
remark |
string |
订单备注 |
type |
string |
订单类型 |
origin_amount |
int |
订单原始总价 |
amount |
int |
订单实际总价 |
paid_time |
int |
支付时间 |
end_time |
int |
订单预计自动完成时间 |
deliver_time |
int |
发货时间 |
finished_time |
int |
订单完成时间 |
discount_amount |
int |
优惠金额 |
seller_id |
int |
卖家ID |
seller_amount |
int |
卖家可得收益 |
share_user_id |
int |
推广者ID |
share_parent_user_id |
int |
推广者上级ID |
share_amount |
int |
推广者可得收益 |
share_parent_amount |
int |
推广者上级可得收益 |
express_company |
string |
快递公司 |
tracking_number |
string |
快递运单号 |
details |
object[] |
订单详情信息 |
created_time |
int |
下单时间戳 |
status |
int |
订单状态:-1 取消,0 待付款,1 已付款, 2 已发货, 3 已完成, 8 退款中,9 已退款 |
refund_status |
int |
退款状态:-1 退款失败,0 无或退款中,1 已退款 |
order_address |
object |
订单收货地址 |
订单收货地址
字段名 |
类型 |
说明 |
id |
int |
地址ID |
name |
string |
收件人 |
phone |
string |
联系电话 |
province |
string |
省份 |
city |
string |
城市 |
country |
string |
区县 |
address_info |
string |
详细地址 |
postcode |
string |
邮编 |
订单详情信息item
字段名 |
类型 |
说明 |
id |
int |
ID |
order_id |
string |
订单号 |
user_id |
int |
用户ID |
goods_id |
int |
商品ID |
goods_item_id |
int |
商品SKU ID |
price |
int |
商品价格 |
origin_price |
int |
商品原价 |
amount |
int |
商品实际总价 |
origin_amount |
int |
商品原始总价 |
quantity |
int |
商品数量 |
status |
int |
状态 |
goods |
object |
商品信息 |
商品信息
字段名 |
类型 |
说明 |
id |
int |
文档ID |
title |
string |
文档标题 |
seo_title |
string |
文档SEO标题 |
url_token |
string |
文档URL别名 |
keywords |
string |
文档关键词 |
description |
string |
文档简介 |
module_id |
int |
文档模型ID |
category_id |
int |
文档分类ID |
views |
int |
文档浏览量 |
comment_count |
int |
文档评论量 |
images |
string[] |
文档组图 |
logo |
string |
文档Logo |
thumb |
string |
文档缩略图 |
canonical_url |
string |
canonical url |
fixed_link |
string |
文档固定链接 |
created_time |
int |
文档发布时间戳 |
updated_time |
int |
文档更新时间戳 |
status |
int |
文档显示状态 |
user_id |
int |
用户ID |
price |
int |
价格,单位分 |
stock |
int |
库存量 |
user_id |
int |
用户ID |
请求数据示例
参数 |
值 |
order_id |
202211232209080046 |
返回数据示例
{
"code": 0,
"data": {
"id": 46,
"created_time": 1669212548,
"updated_time": 1669212548,
"order_id": "202211232209080046",
"payment_id": "202211232209080016",
"user_id": 1000,
"address_id": 0,
"remark": "英文外贸响应式通用主题wzl-008等",
"type": "goods",
"status": 0,
"refund_status": 0,
"origin_amount": 9900,
"amount": 9900,
"paid_time": 0,
"end_time": 0,
"deliver_time": 0,
"finished_time": 0,
"discount_amount": 0,
"seller_id": 15,
"seller_amount": 7920,
"share_user_id": 0,
"share_parent_user_id": 0,
"share_amount": 0,
"share_parent_amount": 0,
"express_company": "",
"tracking_number": "",
"order_address": {
"id": 1,
"created_time": 1669212548,
"updated_time": 1669212548,
"user_id": 1000,
"name": "王先生",
"phone": "13888888888",
"province": "河南省",
"city": "郑州市",
"country": "中原区",
"address_info": "中原西路233号",
"postcode": "450000",
"status": 1
},
"is_updated": 0,
"details": [
{
"id": 16,
"created_time": 1669212548,
"updated_time": 1669212548,
"order_id": "202211232209080046",
"user_id": 1000,
"goods_id": 188,
"goods_item_id": 0,
"price": 9900,
"origin_price": 9900,
"amount": 9900,
"origin_amount": 9900,
"quantity": 1,
"status": 1,
"goods": {
"id": 188,
"created_time": 1669122751,
"updated_time": 1669122751,
"title": "英文外贸响应式通用主题wzl-008",
"seo_title": "",
"url_token": "ywwmxystyztw0-7",
"keywords": "英文外贸响应式通用主题wzl-008",
"description": "英文主题,外贸主题,响应式主题,通用英文企业站主题",
"module_id": 3,
"category_id": 36,
"views": 158,
"comment_count": 0,
"images": [
"/uploads/202211/22/6315f8a943b979a4.webp",
"/uploads/202211/22/c705ba844eb51aec.webp"
],
"template": "",
"status": 1,
"canonical_url": "",
"fixed_link": "",
"flag": "",
"user_id": 15,
"price": 9900,
"stock": 9999999,
"read_level": 0,
"password": "",
"sort": 0,
"has_pseudo": 0,
"keyword_id": 0,
"origin_url": "",
"origin_title": "",
"origin_id": 0,
"category": null,
"module_name": "",
"data": null,
"logo": "/uploads/202211/22/6315f8a943b979a4.webp",
"thumb": "/uploads/202211/22/thumb_6315f8a943b979a4.webp",
"extra": null,
"link": "/endesign/188.html",
"has_ordered": false,
"favorable_price": 0,
"has_password": false,
"category_titles": null,
"category_ids": null
},
"group": null,
}
]
},
"msg": ""
}
错误代码
错误码 |
说明 |
0 |
OK |
-1 |
错误,错误原因在msg中指出 |
1001 |
未登录 |
1002 |
未授权 |
200 |
API请求OK |