企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
# 订单详情 >[danger]接口认证:**需要认证** ##### 响应说明 | 字段名 | 字段类型 | 字段说明 | | --- | --- | --- | | id | int | 订单id | | order_sn | string | 订单单号 | | goods_amount | int | 商品总数量 | | pay_fee | string | 商品价格 | | shipping_fee | string | 快递价格 | | add_time | string | 下单时间 | | pay_time | string | 付款时间 | | pay_type | string | 支付方式,见下面 | | pay_type_trans | string | 翻译好的支付方式 | | pay_status | int | 支付状态,见下面 | | back_status | int | 支付状态,见下面 | | shipping_time | string | 发货时间 | | order_note | string | 订单备注 | | order_status | int | 订单状态 | | consignee | string | 收货人 | | full_address | string | 完整的收货地址 | | mobile | string | 收货电话 | | order_status_trans | string | 转化好的订单状态 | | order_goods | array[object] | 订单里的商品 | | order_goods.id | int | 订单商品的id | | order_goods.order_id | int | 订单的id | | order_goods.goods_id | int | 订单的商品id | | order_goods.goods_sku_ref_id| int | 订单的商品的sku_id | | order_goods.goods_name| string | 商品的名字 | | order_goods.sku_name| string | 商品的规格 | | order_goods.full_name| string | 商品的完整名字 | | order_goods.goods_number| int | 商品的数量 | | order_goods.goods_price_ori| string | 商品的原价 | | order_goods.goods_price| string | 商品付款的真实价格 | | order_goods.goods_image| string | 商品图片 | | order_goods.shipping_price| string | 快递费用| ##### 支付类型 > 1. `wechat`:微信 > 1. `alipay`:支付宝 > 1. `union_pay`:银联 ## 退款状态 ~~~ public const STATUS_MAP_TRANS = [ 0 => '无退款操作', 1 => '退款中', 2 => '退款成功', 3 => '退款失败', ]; ~~~ ##### 支付状态 ~~~ public const PAY_STATUS_MAP_TRANS = [ 0 => '待支付', 1 => '已支付', 2 => '已取消', ]; ~~~ ## 示例 ~~~[api] get:/order/detail *id#订单id <<< success { "code": 200, "msg": "成功", "data": { "id": 17, "order_sn": "202201171110252565", "user_id": 20, "goods_amount": 5, "pay_fee": "162.00", "shipping_fee": "31.00", "add_time": "2022-01-17 11:10:25", "pay_time": "", "shipping_time": "", "order_note": "备注备注", "order_status": 3, "total": "193.00", "consignee": "收货人", "full_address": "河北省 石家庄市 井陉矿区 我觉得剧情内一个小时换一个合集比较好,", "mobile": "13245124587", "pay_status": 0, "pay_type": "", "order_goods": [ { "id": 13, "order_id": 17, "goods_id": 22, "goods_sku_ref_id": 19, "goods_name": "0元-爱啡仕蓝山三合一速溶咖啡粉", "sku_name": "", "full_name": "0元-爱啡仕蓝山三合一速溶咖啡粉", "goods_number": 2, "goods_price_ori": "0.00", "goods_price": "0.00", "goods_image": "http://noobcoder.oss-cn-hangzhou.aliyuncs.com/letao/20220110/goods_image-61db97c188010.jpg", "shipping_price": "11.00", "activity_type": 3 }, { "id": 14, "order_id": 17, "goods_id": 30, "goods_sku_ref_id": 34, "goods_name": "普通-衣服-规格", "sku_name": "m 白", "full_name": "普通-衣服-规格 m 白", "goods_number": 3, "goods_price_ori": "54.00", "goods_price": "54.00", "goods_image": "http://noobcoder.oss-cn-hangzhou.aliyuncs.com/letao/20220112/goods_image-61de4c71a8374.png", "shipping_price": "20.00", "activity_type": 3 } ], "order_status_trans": "已完成", "pay_type_trans": "微信支付" } } <<< ~~~ ## 可能出现的错误码 > 不包含常见的请求方式错误,参数丢失,用户权限验证失败 ~~~ const ORDER_NOTE_FOUND = [ 'code' => 121006, 'msg' => '订单不存在' ]; ~~~ ~~~ const ORDER_NOT_YOURS = [ 'code' => 121004, 'msg' => '订单不属于你' ]; ~~~