金鱼网


订单列表接口

[TOC]

简要描述
  • 订单列表接口
请求URL
  • http://api.magicalday.cn/order/list
请求方式
  • POST
参数
参数名 类型 说明
type string 订单状态 0全部、 1:待支付、2:待收货、3:待评价、4:退款/售后
返回示例
{
    "code":0,
    "msg":"",
    "count":0,
    "data":{
        "list":[
            {
                "order_id":"202211081837000001",
                "uid":"3",
                "total_amount":"9.90",
                "pay_amount":"9.90",
                "payment_deadline":"1667904736",
                "order_type":"1",
                "goods_list":[

                ],
                "create_date":"2022/11/08",
                "action":[

                ],
                "title":"已完成"
            },
            {
                "order_id":"202211081545000001",
                "uid":"3",
                "total_amount":"125.52",
                "pay_amount":"125.52",
                "payment_deadline":"1667894420",
                "order_type":"2",
                "goods_list":[
                    {
                        "goods_id":"67",
                        "img":"https://img.meituan.net/groceryimages/99ae963338f726592db365097280bb38168961.jpg",
                        "short_title":"正宗滇式",
                        "specifications":{
                            "name":"规格",
                            "text":"80g"
                        },
                        "number":2,
                        "selling_price":"3.99",
                        "pay_amount":"3.99",
                        "refund_number":1,
                        "refund_status_text":""
                    },
                    {
                        "goods_id":"69",
                        "img":"https://img.meituan.net/750.750/groceryimages/4066e1e3a69d165ae225609f489bbd5f1278936.png",
                        "short_title":"(张一山代言)金磨坊",
                        "specifications":{
                            "name":"规格",
                            "text":"270"
                        },
                        "number":2,
                        "selling_price":"9.99",
                        "pay_amount":"9.99",
                        "refund_number":0,
                        "refund_status_text":""
                    },
                    {
                        "goods_id":"70",
                        "img":"https://img.meituan.net/groceryimages/d12883cc12aca342753e9639b653831192549.jpg",
                        "short_title":"发范德萨范德萨",
                        "specifications":{
                            "name":"规格",
                            "text":"245g"
                        },
                        "number":2,
                        "selling_price":"6.98",
                        "pay_amount":"6.98",
                        "refund_number":0,
                        "refund_status_text":""
                    }
                ],
                "create_date":"2022/11/08",
                "action":[
                    "refund"
                ],
                "title":"已部分退款"
            }
        ]
    }
}
返回参数说明
参数名 类型 说明
order_id string 订单ID
uid string 用户uid
total_amount string 订单金额
pay_amount string 支付金额
payment_deadline int 支付截至时间戳
goods_list array 商品列表:goods_id、img、short_title、number、selling_price
action array 订单可操作行为数组:refund可退款、payment立即支付
title string 订单显示状态:未支付时需要前端自已拼接到计时、其他状态使用此字段
备注
  • 更多返回错误代码请看首页的错误代码描述

页面列表

ITEM_HTML