简体中文
简体中文
English
联系我们
注册
登录

获取订单详情

更新时间:2023-01-31 08:36:35

本文介绍获取订单详情的 API。

接口描述

根据订单 ID 获取订单详情。

接口地址

GET: /v1.0/sellercenter/order/{order_id}

请求参数

参数名类型参数位置是否必填说明
order_idStringuritrue订单 ID
mall_codeStringquerytrue商城编码
site_codeStringquerytrue站点编码
langStringqueryfalse语种编码

返回参数

参数名类型说明
resultOrderDetailOpenVO查询结果

result 说明

参数名类型说明
order_idString订单唯一编号
order_type_codeString订单类型编码
order_statusString订单状态
amount_originBigDecimal订单原价
amount_tradeBigDecimal订单成交价
amount_paidBigDecimal订单已支付金额
amount_restBigDecimal剩余要支付的金额
price_trade_listList订单总价明细
gmt_order_createLong订单创建时间
gmt_order_payLong订单支付时间
commodity_listList订单商品列表
currencyString货币单位
payment_listList订单支付流水
refund_statusInteger订单退款状态
amount_refundBigDecimal订单退款金额
addressAddressVO收货地址信息
delivery_listList包裹单信息
order_flow_listList订单状态流水
customerCustomerVO买家信息
remarkString卖家备注
buyer_remarkString买家备注

commodity_list 说明

参数名类型说明
commodity_codeString商品编码
specification_codeString商品SKU
commodity_nameString商品名称
icon_urlString商品图片
currencyString货币单位
unit_price_originBigDecimal单价原价
unit_price_tradeBigDecimal单价成交价
unit_nameString单价单位。片、件、次等
quantityInteger商品数量
attach_jsonJSONObject商品附加信息

address 说明

参数名类型说明
address_idString地址 ID
nameString收货人
phoneString联系电话
countryString国家
country_codeString国家编码
provinceString省份
cityString城市
districtString区、县
address_detailString详细地址
addressString整个地址
is_defaultByte是否默认
post_codeString邮编
siteString站点
address_typeInteger类型

delivery_list 说明

参数名类型说明
delivery_idString包裹 ID
delivery_statusInteger包裹状态
gmt_out_stockLong发货时间
logistics_companyString物流公司编码
logistics_company_nameString物流公司名称
logistics_noString物流单号
delivery_quantityInteger包裹SKU总数
delivery_detail_listList包裹发货详情

order_flow_list 说明

参数名类型说明
order_flow_idString订单业务流水表主键
order_idString订单 ID
creator_idString操作者 ID
order_status_bossString主订单状态,标准订单状态
order_statusString订单状态
gmt_createLong创建时间
gmt_modifiedLong修改时间

price_trade_list 说明

参数名类型说明
keyString价格明细编码
price_detail_nameString价格明细名称
amountBigDecimal售价
amount_originBigDecimal原价
amount_couponBigDecimal优惠金额
attachJSONObject附加信息

payment_list 说明

参数名类型说明
trade_amountBigDecimal支付金额
currencyString货币单位
paid_providerString支付提供商
paid_typeString支付类型
transaction_noString交易号
gmt_createLong创建时间
trade_statusString支付状态

customer 说明

参数名类型说明
uidString买家id
nameString昵称
mobileString电话
emailString邮箱

delivery_detail_list 说明

参数名类型说明
commodity_codeString订单商品 ID
sku_codeString商品 SKU
delivery_quantityInteger出库数量

请求示例

GET: /v1.0/sellercenter/order/test_order_id?mall_code=MALL_CODE&site_code=SITE_CODE

返回示例

{
    "result": {
        "amount_paid": {
            "Value": "1.04"
        },
        "address": {
            "country": "中国",
            "address": "北京市市辖区东城区gdichakjcn",
            "address_type": 0,
            "city": "市辖区",
            "address_id": "7a33441805a4934a8",
            "is_default": 1,
            "address_detail": "gdichakjcn",
            "country_code": "86",
            "site": "CN",
            "province": "北京市",
            "phone": "136****6837",
            "scope_id": "SO2110258K167O5C",
            "district": "东城区",
            "name": "ewfdjfutjghsnewfdjfutjghsnewfdjfutjghr",
            "scope_type": "order"
        },
        "refund_status": -2,
        "delivery_list": [
            {
                "logistics_no": "1111",
                "delivery_id": "142837559e57c000",
                "gmt_out_stock": 0,
                "logistics_company": "agopost",
                "delivery_status": 2,
                "logistics_company_name": "全程快递",
                "delivery_detail_list": [
                    {
                        "commodity_code": "CMar68c6bxxgs4",
                        "delivery_quantity": 1,
                        "sku_code": "SKar68c6djd4q0"
                    }
                ]
            },
            {
                "logistics_no": "1235YT",
                "delivery_id": "14283767dbb78000",
                "gmt_out_stock": 0,
                "logistics_company": "annto",
                "delivery_status": 2,
                "logistics_company_name": "安得物流",
                "delivery_detail_list": [
                    {
                        "commodity_code": "CMaowxikwzdohw",
                        "delivery_quantity": 1,
                        "sku_code": "SKaowxikzha0y3"
                    },
                    {
                        "commodity_code": "CMa1kxmeidi592",
                        "delivery_quantity": 1,
                        "sku_code": "SKa1kxmekswldn"
                    }
                ]
            }
        ],
        "order_flow_list": [
            {
                "gmt_create": 1635131166548,
                "order_flow_id": "1452471502836826112",
                "gmt_modified": 1635131166548,
                "order_status": "created",
                "creator_id": "sh1620790178699Ms6LM",
                "order_status_boss": "created",
                "order_id": "SO2110258K167O5C"
            },
            {
                "gmt_create": 1635131169674,
                "order_flow_id": "1452471515946139648",
                "gmt_modified": 1635131169674,
                "order_status": "paid",
                "creator_id": "sh1620790178699Ms6LM",
                "order_status_boss": "paid",
                "order_id": "SO2110258K167O5C"
            },
            {
                "gmt_create": 1635131169720,
                "order_flow_id": "1452471516139077632",
                "gmt_modified": 1635131169720,
                "order_status": "pending_audit_paid",
                "creator_id": "sh1620790178699Ms6LM",
                "order_status_boss": "",
                "order_id": "SO2110258K167O5C"
            },
            {
                "gmt_create": 1635131193523,
                "order_flow_id": "1452471615976095744",
                "gmt_modified": 1635131193523,
                "order_status": "paid",
                "creator_id": "sh15408881429088tZ2u",
                "order_status_boss": "paid",
                "order_id": "SO2110258K167O5C"
            },
            {
                "gmt_create": 1635131218863,
                "order_flow_id": "1452471722259759104",
                "gmt_modified": 1635131218863,
                "order_status": "part_delivered",
                "creator_id": "sh15408881429088tZ2u",
                "order_status_boss": "",
                "order_id": "SO2110258K167O5C"
            },
            {
                "gmt_create": 1635131237380,
                "order_flow_id": "1452471799927767040",
                "gmt_modified": 1635131237380,
                "order_status": "delivered",
                "creator_id": "sh15408881429088tZ2u",
                "order_status_boss": "delivered",
                "order_id": "SO2110258K167O5C"
            },
            {
                "gmt_create": 1635131538982,
                "order_flow_id": "1452473064938242048",
                "gmt_modified": 1635131538982,
                "order_status": "finished",
                "creator_id": "system",
                "order_status_boss": "finished",
                "order_id": "SO2110258K167O5C"
            }
        ],
        "amount_origin": {
            "Value": "1.04"
        },
        "amount_rest": {
            "Value": "0.00"
        },
        "price_trade_list": [
            {
                "amount": {
                    "Value": "1.00"
                },
                "amount_coupon": {
                    "Value": "0.00"
                },
                "amount_origin": {
                    "Value": "100.000000"
                },
                "price_detail_name": "运费",
                "key": "POSTAGE"
            },
            {
                "amount": {
                    "Value": "0.03"
                },
                "amount_coupon": {
                    "Value": "0.00"
                },
                "amount_origin": {
                    "Value": "3.000000"
                },
                "price_detail_name": "商品总价",
                "key": "COMMODITY"
            },
            {
                "amount": {
                    "Value": "0.01"
                },
                "amount_coupon": {
                    "Value": "0.00"
                },
                "amount_origin": {
                    "Value": "1.000000"
                },
                "price_detail_name": "安装费",
                "key": "INSTALL"
            }
        ],
        "amount_trade": {
            "Value": "1.04"
        },
        "payment_list": [
            {
                "gmt_create": 1635131169624,
                "paid_type": "cod",
                "paid_provider": "offline_pay",
                "trade_amount": {
                    "Value": "1.04"
                },
                "trade_status": "TRADE_SUCCESS",
                "currency": "CNY"
            }
        ],
        "order_type_code": "INT_OEM_APP_MALL",
        "buyer_remark": "",
        "commodity_list": [
            {
                "icon_url": "ecommerce/162633217319c17fa480b.png",
                "commodity_code": "CMar68c6bxxgs4",
                "quantity": 1,
                "unit_price_origin": {
                    "Value": "0.01"
                },
                "attach_json": {
                    "amount_after_coupon": {
                        "Value": "0.01"
                    },
                    "commodity_amount_origin": {
                        "Value": "0.01"
                    },
                    "install_type": "2",
                    "price_detail": [
                        {
                            "amount": {
                                "Value": "0.01"
                            },
                            "amount_coupon": 0,
                            "amount_origin": {
                                "Value": "0.01"
                            },
                            "price_detail_name": "商品总价",
                            "key": "COMMODITY"
                        },
                        {
                            "amount": {
                                "Value": "0.01"
                            },
                            "amount_coupon": 0,
                            "amount_origin": {
                                "Value": "0.01"
                            },
                            "price_detail_name": "安装费",
                            "key": "INSTALL"
                        },
                        {
                            "amount": {
                                "Value": "0.33"
                            },
                            "amount_coupon": 0,
                            "amount_origin": {
                                "Value": "0.33"
                            },
                            "price_detail_name": "运费",
                            "key": "POSTAGE"
                        }
                    ],
                    "sku_value_list": [
                        "1M",
                        "干电池"
                    ],
                    "extend_sku_code": ""
                },
                "unit_price_trade": {
                    "Value": "0.35"
                },
                "specification_code": "SKar68c6djd4q0",
                "currency": "CNY",
                "commodity_name": "安装费+运费"
            },
            {
                "icon_url": "ecommerce/886c9816-4785-4e92-8883-51e2da1603ee.png",
                "commodity_code": "CMaowxikwzdohw",
                "quantity": 1,
                "unit_price_origin": {
                    "Value": "0.01"
                },
                "attach_json": {
                    "amount_after_coupon": {
                        "Value": "0.01"
                    },
                    "commodity_amount_origin": {
                        "Value": "0.01"
                    },
                    "install_type": "1",
                    "price_detail": [
                        {
                            "amount": {
                                "Value": "0.01"
                            },
                            "amount_coupon": 0,
                            "amount_origin": {
                                "Value": "0.01"
                            },
                            "price_detail_name": "商品总价",
                            "key": "COMMODITY"
                        },
                        {
                            "amount": {
                                "Value": "0.00"
                            },
                            "amount_coupon": 0,
                            "amount_origin": {
                                "Value": "0.00"
                            },
                            "price_detail_name": "安装费",
                            "key": "INSTALL"
                        },
                        {
                            "amount": {
                                "Value": "0.00"
                            },
                            "amount_coupon": 0,
                            "amount_origin": {
                                "Value": "0.00"
                            },
                            "price_detail_name": "运费",
                            "key": "POSTAGE"
                        }
                    ],
                    "sku_value_list": [
                        "白色",
                        "S"
                    ],
                    "extend_sku_code": ""
                },
                "unit_price_trade": {
                    "Value": "0.01"
                },
                "specification_code": "SKaowxikzha0y3",
                "currency": "CNY",
                "commodity_name": "无安装费+运费"
            },
            {
                "icon_url": "ecommerce/16226962402ab330a5cfd.png",
                "commodity_code": "CMa1kxmeidi592",
                "quantity": 1,
                "unit_price_origin": {
                    "Value": "0.01"
                },
                "attach_json": {
                    "amount_after_coupon": {
                        "Value": "0.01"
                    },
                    "commodity_amount_origin": {
                        "Value": "0.01"
                    },
                    "install_type": "1",
                    "price_detail": [
                        {
                            "amount": {
                                "Value": "0.01"
                            },
                            "amount_coupon": 0,
                            "amount_origin": {
                                "Value": "0.01"
                            },
                            "price_detail_name": "商品总价",
                            "key": "COMMODITY"
                        },
                        {
                            "amount": {
                                "Value": "0.00"
                            },
                            "amount_coupon": 0,
                            "amount_origin": {
                                "Value": "0.00"
                            },
                            "price_detail_name": "安装费",
                            "key": "INSTALL"
                        },
                        {
                            "amount": {
                                "Value": "0.00"
                            },
                            "amount_coupon": 0,
                            "amount_origin": {
                                "Value": "0.00"
                            },
                            "price_detail_name": "运费",
                            "key": "POSTAGE"
                        }
                    ],
                    "sku_value_list": [
                        "绿色"
                    ],
                    "extend_sku_code": ""
                },
                "unit_price_trade": {
                    "Value": "0.01"
                },
                "specification_code": "SKa1kxmekswldn",
                "currency": "CNY",
                "commodity_name": "mll包邮活动测试商品"
            }
        ],
        "order_status": "finished",
        "amount_refund": {
            "Value": "0.00"
        },
        "currency": "CNY",
        "gmt_order_create": 1635131166093,
        "order_id": "SO2110258K167O5C",
        "customer": {
            "mobile": "86-159****9374",
            "uid": "sh1**************6LM",
            "name": "",
            "email": "nai********@tuya.com"
        }
    },
    "t": 1635167709597,
    "success": true
}

错误码

参考 错误码