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

查询订单详情

更新时间:2022-09-27 06:13:00

本文介绍查询订单详情的 API。

接口描述

根据商城 code、店铺 code、买家 UID 和订单 ID,查询订单详情信息。

接口地址

GET: /v1.0/mall/plugin/order/{order_id}

请求参数

参数名类型参数位置是否必填说明
mall_codeStringquerytrue商城 code
shop_codeStringquerytrue店铺 code
user_idStringquerytrue买家 UID
order_idStringuritrue订单号

返回参数

参数名类型说明
resultOrderDetailOpenApiVO返回结果

result 说明

参数名类型说明
mall_codeString商城 code
shop_codeString店铺 code
order_idString订单号
pay_statusString支付状态
delivery_statusString发货状态
created_timeLong创建时间
current_total_priceBigDecimal当前总价格
total_shipping_priceBigDecimal总邮费
total_tax_priceBigDecimal总税费
total_priceBigDecimal总价格
currencyString币种
delivery_listList物流信息
cancel_reasonString订单取消原因
canceled_timeLong订单取消时间
commodity_listList订单商品行信息
billing_addressAddressModelOpenApiVO支付人账单地址
shipping_addressAddressModelOpenApiVO支付人收货地址

commodity_list 说明

参数名类型说明
titleString商品名称
skuStringSKU code
availableBoolean商品是否在售
pricePriceModelOpenApiVO价格
weightBigDecimal重量
quantityInteger购买数量
imageString商品图片链接
selected_optionsList商品属性

delivery_list 说明

参数名类型说明
logistics_companyString快递公司
logistics_noString快递单号
logistics_urlString链接

billing_address 说明

参数名类型说明
country_codeString国家或地区 code
province_codeString省份 code
countryString国家或地区名称
provinceString省份名称
cityString城市名称
addressString详细地址
zipString邮编
latitudeString纬度
longitudeString经度
nameString名字
first_nameString
last_nameString
phoneString手机号码

shipping_address 说明

参数名类型说明
country_codeString国家或地区 code
province_codeString省份 code
countryString国家或地区名称
provinceString省份名称
cityString城市名称
addressString详细地址
zipString邮编
latitudeString纬度
longitudeString经度
nameString名字
first_nameString
last_nameString
phoneString手机号码

selected_options 说明

参数名类型说明
nameString属性名称
valueString属性值

price 说明

参数名类型说明
amountBigDecimal金额
currencyString币种

请求示例

GET: /v1.0/mall/plugin/order/1234567?mall_code=MALL_CODE&shop_code=SHOP_CODE&user_id=USER_ID&order_id=ORDER_ID
{
  "mall_code": "testMallCode",
  "shop_code": "testShopCode",
  "user_id": "testUserId",
  "order_id": "testOrderId"
}

返回示例

{
    "created_time": "20220901",
    "subtotal_price": 2,
    "canceled_time": "20220902",
    "total_price": 2,
    "shop_code": "testShopCode",
    "delivery_list": [
        {
            "logistics_no": "1Z2345",
            "logistics_url": "https://tools.usps.com/go/TrackConfirmAction_input?qtc_tLabels1=1Z2***",
            "logistics_company": "USPS"
        }
    ],
    "total_tax_price": 1,
    "billing_address": {
        "zip": "40202",
        "country": "United States",
        "address": "Chestnut Street ***",
        "city": "Louisville",
        "latitude": "45.41634",
        "last_name": "Norman",
        "province_code": "KY",
        "country_code": "US",
        "province": "Kentucky",
        "phone": "555-625-11**",
        "name": "Bob Norman",
        "first_name": "Bob",
        "longitude": "-75.6868"
    },
    "total_shipping_price": 1,
    "commodity_list": [
        {
            "image": "xxx",
            "quantity": 1,
            "selected_options": [
                {
                    "name": "颜色",
                    "value": "蓝色"
                }
            ],
            "available": true,
            "weight": 10,
            "title": "IPod Nano - 8gb",
            "price": {
                "amount": 2,
                "currency": "USD"
            },
            "id": 466157049,
            "sku": "IPOD2008*****"
        }
    ],
    "pay_status": "paid",
    "cancel_reason": "取消原因",
    "mall_code": "testMallCode",
    "current_total_price": 10,
    "currency": "USD",
    "shipping_address": {
        "zip": "40202",
        "country": "United States",
        "address": "Chestnut Street **",
        "city": "Louisville",
        "latitude": "45.41634",
        "last_name": "Norman",
        "province_code": "KY",
        "country_code": "US",
        "province": "Kentucky",
        "phone": "555-625-11**",
        "name": "Bob Norman",
        "first_name": "Bob",
        "longitude": "-75.6868"
    },
    "order_id": "testOrderId",
    "delivery_status": "shipped"
}

错误码

参考 错误码