订单详情
GET
/order/{order_id}
请求参数
Path 参数
order_id
string
订单号
示例值:
wx273866852013178880
Header 参数
authori-zation
string
token
示例值:
Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJ0ZXN0LnByby53dWh0Lm5ldCIsImF1ZCI6InRlc3QucHJvLnd1aHQubmV0IiwiaWF0IjoxNjQ5NzQ2MjAyLCJuYmYiOjE2NDk3NDYyMDIsImV4cCI6MTY1MDM1MTAwMiwianRpIjp7ImlkIjoxLCJ0eXBlIjoiYWRtaW4ifX0.-xDXOdYfBNsu3IqF3nMO_E_fop2lxkwNw25fdQpzGVQ
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET '/order/wx273866852013178880' \
--header 'authori-zation: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJ0ZXN0LnByby53dWh0Lm5ldCIsImF1ZCI6InRlc3QucHJvLnd1aHQubmV0IiwiaWF0IjoxNjQ5NzQ2MjAyLCJuYmYiOjE2NDk3NDYyMDIsImV4cCI6MTY1MDM1MTAwMiwianRpIjp7ImlkIjoxLCJ0eXBlIjoiYWRtaW4ifX0.-xDXOdYfBNsu3IqF3nMO_E_fop2lxkwNw25fdQpzGVQ'
返回响应
🟢200成功
application/json
Body
status
integer
状态码
msg
string
信息描述
data
object
返回值
id
integer
订单ID
pid
integer
父类订单ID
order_id
string
订单号
trade_no
string
交易流水号
uid
integer
用户ID
freight_price
string
运费金额
real_name
string
用户姓名
user_phone
string
用户电话
user_address
string
详细地址
total_num
integer
订单商品总数
total_price
string
订单总价
total_postage
string
邮费
pay_price
string
实际支付金额
coupon_price
string
优惠券金额
deduction_price
string
抵扣金额
paid
integer
支付状态
pay_time
integer
支付时间
pay_type
string
支付方式
add_time
integer
下单时间
shipping_type
integer
配送方式
status
integer
订单状态
refund_status
integer
退款状态
delivery_name
string
快递名称/送货人姓名
delivery_code
string
快递公司编码
delivery_id
string
快递单号/手机号
delivery_type
string
发货类型
use_integral
string
积分使用
back_integral
string
回退积分
invoice
object
发票
items
array [object {8}]
商品数据
pay_type_name
string
支付方式名称
status_name
string
订单状态名称
vip_true_price
string
会员商品优惠
示例
{
"status": 200,
"msg": "success",
"data": {
"id": 25,
"pid": 0,
"order_id": "wx273148789135507456",
"trade_no": "",
"uid": 2,
"freight_price": "0.00",
"real_name": "张三",
"user_phone": "18354876351",
"user_address": "福建省 宁德市 福安市 测试",
"total_num": 1,
"total_price": "25.90",
"total_postage": "0.00",
"pay_price": "25.90",
"coupon_price": "0.00",
"deduction_price": "0.00",
"paid": 1,
"pay_time": 1656410146,
"pay_type": "yue",
"add_time": 1656410146,
"shipping_type": 1,
"status": 1,
"refund_status": 0,
"delivery_name": "泰捷达国际物流",
"delivery_code": "ztjieda",
"delivery_id": "28",
"delivery_type": "express",
"use_integral": "0.00",
"back_integral": "0.00",
"invoice": {
"invoice_id": 1,
"header_type": 1,
"type": 1,
"name": "西巴尔",
"duty_number": "ssdh",
"drawer_phone": "15289381074",
"email": "123@qq.com",
"tell": "4001162626",
"address": "注册地址",
"bank": "开户行",
"card_number": "62242419955121501",
"is_pay": 1,
"is_refund": 0,
"is_invoice": 1,
"invoice_number": "33333333",
"remark": "remark222",
"invoice_time": 1656476718
},
"items": [
{
"cart_id": 2273148592808525800,
"store_name": "欧育 儿童发夹发饰韩国女童发夹宝宝头饰发卡婴幼儿甜美小女孩可爱刘海bb夹25件装 B1461",
"suk": "卡通布艺",
"image": "https://data44.wuht.net/uploads/attach/2022/01/15/84133cb0a566849eae417ef7ac789afd.jpg",
"price": "25.90",
"cart_num": 1,
"surplus_num": 0,
"refund_num": 0
}
],
"pay_type_name": "余额支付",
"status_name": "待收货",
"vip_true_price": "0.00"
}
}
修改于 2022-07-14 02:30:16