文档中心 > API类目 > 五道口API

alibaba.wdkopen.order.get (五道口商户订单获取)

商户通过五道口订单id获取订单信息

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
store_id String 必须 SH001 经营店id
biz_order_id Number 可选 500031414182214 五道口主订单id
out_order_id String 可选 102411212401001 外部主订单ID

响应参数

名称 类型 示例值 描述
top_base_result TopBaseResult 结果对象
  • └ success
  • Boolean
  • true
  • 表示拆单是否成功
  • └ return_code
  • String
  • SUCCESS
  • 返回码
  • └ return_msg
  • String
  • 调用成功
  • 返回码说明
  • model
  • WdkOrderSyncBo
  • 订单对象
  • └ biz_order_id
  • Number
  • 500031414182214
  • 五道口订单ID
  • └ out_order_id
  • String
  • 102411212401001
  • 外部订单ID
  • └ store_id
  • String
  • ASH001
  • 经营店ID
  • └ shop_id
  • String
  • ASHOP001
  • 渠道店ID
  • └ merchant_code
  • String
  • CSSJ
  • 商户编码
  • └ order_from
  • Number
  • 4
  • 订单来源, 如 TAOBAO (4, "TC自营渠道"),
  • └ open_uid
  • String
  • 123456
  • 买家open_uid
  • └ pay_fee
  • Number
  • 500
  • 用户订单支付金额,分
  • └ origin_fee
  • Number
  • 600
  • 订单原价,分
  • └ discount_fee
  • Number
  • 100
  • 订单优惠金额,分
  • └ post_fee
  • Number
  • 0
  • 订单配送费,分
  • └ order_status
  • Number
  • 2
  • 订单状态,如PAID_DONE(2, "已付款"), TRADE_SUCCESS(6, "交易成功")
  • └ pay_time
  • String
  • 2020-04-23 10:00:00
  • 支付时间
  • └ expect_arrive_time
  • String
  • 2020-04-23 11:00:00~2020-04-23 11:30:00
  • 期望送达时间段
  • └ arrive_type
  • Number
  • 1
  • 配送方式, 如InTime(1, "即时达"), SetTime(2, "定时达"),TopSpeed(3,"极速达"),NoNeedSend(4,"无需配送")
  • sub_orders
  • Suborders []
  • 子单列表
  • └ biz_sub_order_id
  • Number
  • 500031414182215
  • 五道口子订单id
  • └ out_sub_order_id
  • String
  • 102411212401002
  • 外部子订单id
  • └ sku_code
  • String
  • 1111111
  • 商品code
  • └ auction_title
  • String
  • 测试商品
  • 商品名称
  • └ auction_price
  • Number
  • 600
  • 商品价格
  • └ buy_amount_sale
  • Number
  • 1
  • 销售单位购买数量
  • └ buy_amount_stock
  • String
  • 1.0
  • 库存单位购买数量
  • └ sale_unit
  • String
  • 销售单位
  • └ stock_unit
  • String
  • 库存单位
  • └ pay_fee
  • Number
  • 500
  • 子订单用户支付金额
  • └ origin_fee
  • Number
  • 600
  • 子订单原价
  • └ discount_fee
  • Number
  • 100
  • 子订单优惠金额
  • └ discount_merchant_fee
  • Number
  • 100
  • 商家优惠分摊
  • └ discount_platform_fee
  • Number
  • 100
  • 平台优惠分摊
  • └ price
  • Number
  • 500
  • 子单价格
  • └ combine_item
  • Boolean
  • true
  • 是否为组合品
  • combine_item_list
  • CombineItem []
  • []
  • 组合品列表
  • └ sku_code
  • String
  • 102411212
  • 商品编码
  • └ auction_title
  • String
  • 测试商品
  • 商品名称
  • └ bar_code
  • String
  • 102411212
  • 商品条码
  • └ buy_amount_sale
  • Number
  • 1
  • 销售单位购买数量
  • └ buy_amount_stock
  • String
  • 1.0
  • 库存单位购买数量
  • └ sale_unit
  • String
  • 销售单位
  • └ stock_unit
  • String
  • 库存单位
  • └ auction_price
  • Number
  • 1
  • 商品价格
  • promotions
  • Promotions []
  • 订单优惠信息
  • └ discount_fee
  • String
  • 100
  • 活动优惠金额
  • └ activity_name
  • String
  • 活动名称
  • 活动名称
  • └ activity_type
  • String
  • 满减
  • 活动类型
  • └ activity_id
  • String
  • 112420412
  • 活动id
  • └ discount_merchant_fee
  • Number
  • 100
  • 商家优惠分摊
  • └ discount_platform_fee
  • Number
  • 100
  • 平台优惠分摊
  • └ order_no
  • String
  • 1
  • 订单小号
  • └ package_fee
  • Number
  • 1
  • 包装费

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaWdkopenOrderGetRequest req = new AlibabaWdkopenOrderGetRequest();
req.setStoreId("SH001");
req.setBizOrderId(500031414182214L);
req.setOutOrderId("102411212401001");
AlibabaWdkopenOrderGetResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_wdkopen_order_get_response>
    <top_base_result>
        <success>true</success>
        <return_code>SUCCESS</return_code>
        <return_msg>调用成功</return_msg>
        <model>
            <biz_order_id>500031414182214</biz_order_id>
            <out_order_id>102411212401001</out_order_id>
            <store_id>ASH001</store_id>
            <shop_id>ASHOP001</shop_id>
            <merchant_code>CSSJ</merchant_code>
            <order_from>4</order_from>
            <open_uid>123456</open_uid>
            <pay_fee>500</pay_fee>
            <origin_fee>600</origin_fee>
            <discount_fee>100</discount_fee>
            <post_fee>0</post_fee>
            <order_status>2</order_status>
            <pay_time>2020-04-23 10:00:00</pay_time>
            <expect_arrive_time>2020-04-23 11:00:00~2020-04-23 11:30:00</expect_arrive_time>
            <arrive_type>1</arrive_type>
            <sub_orders>
                <suborders>
                    <biz_sub_order_id>500031414182215</biz_sub_order_id>
                    <out_sub_order_id>102411212401002</out_sub_order_id>
                    <sku_code>1111111</sku_code>
                    <auction_title>测试商品</auction_title>
                    <auction_price>600</auction_price>
                    <buy_amount_sale>1</buy_amount_sale>
                    <buy_amount_stock>1.0</buy_amount_stock>
                    <sale_unit>个</sale_unit>
                    <stock_unit>个</stock_unit>
                    <pay_fee>500</pay_fee>
                    <origin_fee>600</origin_fee>
                    <discount_fee>100</discount_fee>
                    <discount_merchant_fee>100</discount_merchant_fee>
                    <discount_platform_fee>100</discount_platform_fee>
                    <price>500</price>
                    <combine_item>true</combine_item>
                    <combine_item_list>
                        <combine_item>
                            <sku_code>102411212</sku_code>
                            <auction_title>测试商品</auction_title>
                            <bar_code>102411212</bar_code>
                            <buy_amount_sale>1</buy_amount_sale>
                            <buy_amount_stock>1.0</buy_amount_stock>
                            <sale_unit>个</sale_unit>
                            <stock_unit>个</stock_unit>
                            <auction_price>1</auction_price>
                        </combine_item>
                    </combine_item_list>
                </suborders>
            </sub_orders>
            <promotions>
                <promotions>
                    <discount_fee>100</discount_fee>
                    <activity_name>活动名称</activity_name>
                    <activity_type>满减</activity_type>
                    <activity_id>112420412</activity_id>
                </promotions>
            </promotions>
            <discount_merchant_fee>100</discount_merchant_fee>
            <discount_platform_fee>100</discount_platform_fee>
            <order_no>1</order_no>
            <package_fee>1</package_fee>
        </model>
    </top_base_result>
</alibaba_wdkopen_order_get_response>

异常示例

  • XML示例
  • JSON示例
<error_response>
    <code>50</code>
    <msg>Remote service error</msg>
    <sub_code>isv.invalid-parameter</sub_code>
    <sub_msg>非法参数</sub_msg>
</error_response>

错误码解释

错误码 错误描述 解决方案

API工具

如何获得此API

FAQ

返回
顶部