简要描述:

  • 返回订单详情

请求域名:

返回示例:

正确时返回:

{
    "result": 1,
    "msg": "订单详情",
    "data": {
        "id": 910,
        "uniacid": 6,
        "uid": 2455,
        "order_sn": "SN22040710030CC27C",
        "price": "0.00",
        "goods_price": "158.00",
        "goods_total": 2,
        "status": 1,
        "create_time": "2022-04-07 10:03:12",
        "is_deleted": 0,
        "is_member_deleted": 0,
        "finish_time": "1970-01-01 08:00:00",
        "pay_time": "2022-04-07 10:03:18",
        "send_time": "1970-01-01 08:00:00",
        "cancel_time": "1970-01-01 08:00:00",
        "created_at": 1649296992,
        "updated_at": 1649296998,
        "deleted_at": 0,
        "cancel_pay_time": "1970-01-01 08:00:00",
        "cancel_send_time": "1970-01-01 08:00:00",
        "dispatch_type_id": 1,
        "dispatch_price": "0.00",
        "discount_price": "20.00",
        "pay_type_id": 54,
        "order_goods_price": "158.00",
        "deduction_price": "138.00",
        "refund_id": 0,
        "is_plugin": 0,
        "change_price": "0.00",
        "change_dispatch_price": "0.00",
        "comment_status": 0,
        "order_pay_id": "58387",
        "plugin_id": 0,
        "is_virtual": 0,
        "mark": "",
        "is_pending": 0,
        "note": null,
        "cost_amount": "100.00",
        "shop_name": "哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈",
        "no_refund": 0,
        "need_address": 0,
        "invoice_type": null,
        "rise_type": null,
        "collect_name": null,
        "company_number": null,
        "invoice": null,
        "auto_receipt": 0,
        "fee_amount": "0.00",
        "service_fee_amount": "0.00",
        "is_all_send_goods": 0,
        "close_reason": null,
        "vip_order_goods_price": "138.00",
        "oid": 910,
        "status_name": "待发货",
        "pay_type_name": "确认",
        "process": [],
        "order_goods": [
            {
                "id": 908,
                "uniacid": 6,
                "goods_id": 199,
                "pay_sn": "",
                "total": 2,
                "create_at": 0,
                "price": "158.00",
                "goods_sn": "",
                "uid": 2455,
                "thumb": "http://demo.yun.cn/static/upload/images/6/2021/12/cezhi.jpg",
                "title": "订单抵扣测试",
                "goods_price": "158.00",
                "goods_option_id": 0,
                "goods_option_title": "",
                "product_sn": "",
                "created_at": "2022-04-07 10:03:12",
                "updated_at": "2022-04-07 10:03:12",
                "discount_price": "0.00",
                "comment_status": 0,
                "change_price": "0.00",
                "comment_id": 0,
                "goods_market_price": "100.00",
                "goods_cost_price": "100.00",
                "vip_price": "138.00",
                "coupon_price": "0.00",
                "payment_amount": "0.00",
                "deduction_amount": "138.00",
                "need_address": 0,
                "order_express_id": null,
                "is_refund": 0,
                "order_goods_id": 908,
                "goods_thumb": "http://demo.yun.cn/static/upload/images/6/2021/12/cezhi.jpg",
                "order_goods_deductions": [
                    {
                        "id": 21,
                        "uid": 2455,
                        "order_id": 910,
                        "order_goods_id": 908,
                        "code": "love",
                        "name": "爱心值",
                        "usable_amount": "96.60",
                        "usable_coin": "96.60",
                        "updated_at": "2022-04-07 10:03:13",
                        "created_at": "2022-04-07 10:03:13",
                        "deleted_at": null,
                        "used_amount": "96.60",
                        "used_coin": "96.60"
                    },
                    {
                        "id": 22,
                        "uid": 2455,
                        "order_id": 910,
                        "order_goods_id": 908,
                        "code": "balance",
                        "name": "余额",
                        "usable_amount": "41.40",
                        "usable_coin": "41.40",
                        "updated_at": "2022-04-07 10:03:13",
                        "created_at": "2022-04-07 10:03:13",
                        "deleted_at": null,
                        "used_amount": "41.40",
                        "used_coin": "41.40"
                    }
                ],
                "order_goods_discounts": [
                    {
                        "id": 375,
                        "uid": 2455,
                        "order_goods_id": 908,
                        "discount_code": "independentGoodsMemberLevel",
                        "name": "商品会员等级优惠",
                        "amount": "20.00",
                        "is_indirect": 0,
                        "updated_at": "2022-04-07 10:03:13",
                        "created_at": "2022-04-07 10:03:13",
                        "deleted_at": null
                    }
                ]
            }
        ],
        "order_address": {
            "address": "北京 北京市 东城区 测试",
            "mobile": "15219025049",
            "realname": "测试",
            "updated_at": "2022-04-07 10:03:12",
            "created_at": "2022-04-07 10:03:12",
            "province_id": 110000,
            "city_id": 110100,
            "district_id": 110101,
            "note": null,
            "street_id": 0,
            "zipcode": "",
            "longitude": "",
            "latitude": ""
        },
        "has_one_refund_apply": null,
        "order_deductions": [
            {
                "order_id": 910,
                "code": "love",
                "name": "爱心值",
                "amount": "96.60",
                "coin": "96.60"
            },
            {
                "order_id": 910,
                "code": "balance",
                "name": "余额",
                "amount": "41.40",
                "coin": "41.40"
            }
        ],
        "order_discounts": [
            {
                "order_id": 910,
                "discount_code": "independentGoodsMemberLevel",
                "name": "商品会员等级优惠",
                "amount": "20.00"
            }
        ],
        "order_fees": [
			 {
                "order_id": 910,
                "fee_code": "fee_aaa",
                "name": "手续费",
                "amount": "20.00"
            }
		],
        "order_service_fees": [
			 {
                "order_id": 910,
                "code": "service_fee_aaa",
                "name": "服务费",
                "amount": "20.00"
            }
		]
    }
}

错误时返回:

  • 缺少访问参数 -- order_id
{
    "result": 0,
    "msg": "缺少访问参数",
    "data": []
}
  • 未找到数据
{
	"result": 0,
	"msg": "未找到数据",
	"data": []
}

返回参数说明:

参数名 类型 说明
id int 订单 ID
order_sn string 订单号
price decimal 订单金额(实际支付)
vip_order_goods_price decimal 订单会员价
dispatch_price decimal 运费金额
discount_price decimal 优惠金额
deduction_price decimal 抵扣金额
goods_price decimal 订单商品现价金额
cost_amount decimal 订单商品成本价
goods_total int 所有商品的数量
service_fee_amount decimal 服务费金额
fee_amount decimal 手续费金额
is_virtual int 是否虚拟订单1是0否
no_refund int 是否可售后0是1否
status int 订单状态 -1关闭,0未支付,1已支付,2已发货,3完成
status_name string 订单状态名称
pay_type_name string 支付类型名称
dispatch_type_id int 订单配送方式(1快递)
invoice_type int 发票类型(0:电子发票,1:纸质发票)
rise_type int 发票抬头(0:单位,1:个人)
call string 称呼
ncompany_numberote string 单位识别号
invoice_state int 发票状态 (0:未开启,1:已开启)
create_time string 订单创建时间
pay_time string 订单支付时间
send_time string 订单发货时间
finish_time string 订单收货时间
cancel_time string 订单关闭时间
order_goods array 订单商品列表
order_address obj 订单收货地址
order_invoice obj 订单发票信息
has_one_refund_apply obj 订单进行中的售后信息
order_deductions array 订单抵扣列表
order_discounts array 订单优惠列表
order_fees array 订单手续费列表
order_service_fees array 订单服务费列表
order_goods 类型 说明
id int 订单商品ID
goods_id int 商品 ID
payment_amount decimal 订单商品分摊金额(实付金额)
goods_price decimal 商品现价
goods_market_price decimal 商品原价
goods_cost_price decimal 商品成本价
vip_price decimal 商品会员价
deduction_amount decimal 商品抵扣金额
discount_price decimal 商品优惠金额
coupon_price decimal 商品优惠券优惠金额
total int 订单中该商品的数量
goods_option_title int 订单中该商品的规格标题
price int 商品实际支付初始金额
title string 商品名称
thumb string 商品图片
comment_status int 评论状态:0未评论1已评论
order_goods_deductions array 商品抵扣列表
order_goods_discounts array 商品优惠列表
order_goods_deductions 类型 说明
name string 抵扣名称
used_amount decimal 抵扣金额
used_coin decimal 抵扣值
order_goods_discounts 类型 说明
discount_code string 优惠名称
amount decimal 优惠金额
order_fees 类型 说明
name int 手续费名
amount float 手续费金额
order_service_fees 类型 说明
name int 服务费名
amount float 服务费金额
order_address 类型 说明
address string 地址
realname string 姓名
mobile string 手机号
order_deductions 类型 说明
name string 抵扣名称
amount decimal 抵扣金额
coin decimal 抵扣值
order_discounts 类型 说明
discount_code string 优惠名称
amount decimal 优惠金额