文档中心 > API类目 > MMC五盘货项目

alibaba.mmc.order.query (MMC五盘货交易域精确查询正向订单查询)

MMC五盘货交易域精确查询正向订单查询

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
param WphTradeQuery 可选 入参
  • └ out_trace_id
  • String
  • 可选
  • 1212dsaf12234324
  • 外部traceId,方便后期排查问题
  • └ merchant_code
  • String
  • 可选
  • CSMMC
  • 商家编码
  • └ biz_order_id
  • Number
  • 可选
  • 12345
  • 主订单id
  • options
  • WphTradeQueryOptions
  • 必须
  • 查询条件
  • └ need_sub_orders
  • Boolean
  • 必须
  • true
  • 是否需要子订单信息
  • └ need_promotion
  • Boolean
  • 必须
  • true
  • 是否需要优惠信息
  • └ need_receiver
  • Boolean
  • 必须
  • true
  • 是否需要收货人
  • └ source
  • String
  • 可选
  • RT
  • 调用来源
  • └ sub_order_id_list
  • Number []
  • 可选
  • [123,456]
  • 子订单列表
  • └ ext_info
  • String
  • 可选
  • {"key":"value"}
  • 拓展字段

响应参数

名称 类型 示例值 描述
result ResultDto 异步获取历史数据接口返回结果
  • content
  • WphTradeMainOrder
  • 返回对像
  • └ actual_pay_fee
  • Number
  • 0
  • 买家实付金额
  • └ arrive_time
  • String
  • 2021/07/02 12:00-20:00
  • 预计送达时间 展示时间范围,后期可能会变
  • └ attributes
  • String
  • {"test":"1"}
  • 订单标 标准Json格式
  • └ biz_order_id
  • Number
  • 12345
  • 主单Id
  • └ biz_type
  • String
  • 1
  • 业务类型
  • └ buyer_id
  • String
  • 1
  • 买家Id(加密)
  • └ consign_time
  • Date
  • 1
  • 发货时间
  • └ deliver_status
  • Number
  • 1
  • 履约状态
  • └ end_time
  • Date
  • 1
  • 完结时间
  • └ extra_coupon_fee
  • Number
  • 1
  • 外部渠道优惠
  • └ logistics_status
  • Number
  • 1
  • 物流状态
  • └ order_source
  • String
  • 1
  • 订单来源
  • └ pay_status
  • Number
  • 1
  • 支付状态
  • └ pay_time
  • Date
  • 1
  • 支付时间
  • promotion_info_list
  • WphTradePromotionInfo []
  • 优惠详情列表
  • └ active_detail_id
  • String
  • 1
  • 活动详情id
  • └ active_id
  • String
  • 1
  • 活动id
  • └ discount
  • String
  • 1
  • 优惠金额 单位:分
  • └ key
  • String
  • 1
  • 优惠key
  • └ name
  • String
  • 1
  • 活动名称
  • └ type
  • String
  • 1
  • 优惠类型
  • └ val
  • String
  • 1
  • 优惠详情
  • └ refund_status
  • Number
  • 1
  • 退款状态
  • └ scenario_group
  • String
  • 1
  • 场景
  • self_take_station
  • WphTradeSelfTakeStation
  • 自提点信息
  • └ warehouse_code
  • String
  • 1
  • 中心仓code
  • sub_order_list
  • WphTradeSubOrder []
  • 子订单列表
  • └ actual_pay_fee
  • Number
  • 1
  • 实际支付价格
  • └ allowance_amount
  • Number
  • 1
  • 铺底结算价
  • └ attributes
  • String
  • 1
  • 子订单标 Json标准格式
  • └ auction_id
  • Number
  • 1
  • 商品id
  • └ auction_pict_url
  • String
  • 1
  • 商品图片
  • └ auction_price
  • Number
  • 1
  • 商品单价
  • └ auction_title
  • String
  • 1
  • 商品名称
  • └ biz_order_id
  • Number
  • 1
  • 子订单id
  • └ buy_amount
  • Number
  • 1
  • 购买数量
  • └ consign_time
  • Date
  • 1
  • 发货时间
  • └ end_time
  • Date
  • 1
  • 结束时间
  • └ pmd
  • Number
  • 1
  • 优惠券分摊金额
  • └ logistics_status
  • Number
  • 1
  • 物流状态
  • └ source
  • String
  • 1
  • 调用来源
  • └ pay_status
  • Number
  • 1
  • 支付状态
  • └ pay_time
  • Date
  • 1
  • 支付时间
  • └ pmti
  • Number
  • 1
  • 红包分摊金额
  • promotion_info_list
  • WphTradePromotionInfo []
  • 子订单维度优惠列表
  • └ active_detail_id
  • String
  • 1
  • 活动详情id
  • └ active_id
  • String
  • 1
  • 活动id
  • └ discount
  • String
  • 1
  • 优惠金额 单位:分
  • └ key
  • String
  • 1
  • 优惠key
  • └ name
  • String
  • 1
  • 活动名称
  • └ type
  • String
  • 1
  • 优惠类型
  • └ val
  • String
  • 1
  • 优惠详情
  • └ refund_status
  • Number
  • 1
  • 退款状态
  • └ stl_price
  • Number
  • 1
  • 一口结算价
  • └ total_fee
  • Number
  • 1
  • 总价
  • └ sku_code
  • String
  • 1
  • MMC内部商品编码
  • └ out_sku_code
  • String
  • 1
  • 外部商品编码
  • └ gmt_modified
  • Date
  • 1
  • 子订单修改时间
  • └ gmt_create
  • Date
  • 1
  • 子订单创建时间
  • └ supplier_discount_fee
  • Number
  • 0
  • 商家出资金额
  • └ sys_time
  • Date
  • 1
  • 当前系统时间
  • └ terminal
  • String
  • 1
  • 设备来源
  • └ total_fee
  • Number
  • 1
  • 总价
  • └ gmt_modified
  • Date
  • 1
  • 主订单修改时间
  • └ gmt_create
  • Date
  • 1
  • 主订单创建时间
  • └ error_code
  • String
  • 1
  • 错误码
  • └ error_message
  • String
  • 1
  • 错误码
  • └ success
  • Boolean
  • true
  • 执行结果

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaMmcOrderQueryRequest req = new AlibabaMmcOrderQueryRequest();
AlibabaMmcOrderQueryRequest.WphTradeQuery obj1 = new AlibabaMmcOrderQueryRequest.WphTradeQuery();
obj1.setOutTraceId("1212dsaf12234324");
obj1.setMerchantCode("CSMMC");
obj1.setBizOrderId(12345L);
AlibabaMmcOrderQueryRequest.WphTradeQueryOptions obj2 = new AlibabaMmcOrderQueryRequest.WphTradeQueryOptions();
obj2.setNeedSubOrders(true);
obj2.setNeedPromotion(true);
obj2.setNeedReceiver(true);
obj1.setOptions(obj2);
obj1.setSource("RT");
obj1.setSubOrderIdList(new Long[] { 123,456 };
);
obj1.setExtInfo("{\"key\":\"value\"}");
req.setParam(obj1);
AlibabaMmcOrderQueryResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_mmc_order_query_response>
    <result>
        <content>
            <actual_pay_fee>0</actual_pay_fee>
            <arrive_time>2021/07/02 12:00-20:00</arrive_time>
            <attributes>{&quot;test&quot;:&quot;1&quot;}</attributes>
            <biz_order_id>12345</biz_order_id>
            <biz_type>1</biz_type>
            <buyer_id>1</buyer_id>
            <consign_time>1</consign_time>
            <deliver_status>1</deliver_status>
            <end_time>1</end_time>
            <extra_coupon_fee>1</extra_coupon_fee>
            <logistics_status>1</logistics_status>
            <order_source>1</order_source>
            <pay_status>1</pay_status>
            <pay_time>1</pay_time>
            <promotion_info_list>
                <wph_trade_promotion_info>
                    <active_detail_id>1</active_detail_id>
                    <active_id>1</active_id>
                    <discount>1</discount>
                    <key>1</key>
                    <name>1</name>
                    <type>1</type>
                    <val>1</val>
                </wph_trade_promotion_info>
            </promotion_info_list>
            <refund_status>1</refund_status>
            <scenario_group>1</scenario_group>
            <self_take_station>
                <warehouse_code>1</warehouse_code>
            </self_take_station>
            <sub_order_list>
                <wph_trade_sub_order>
                    <actual_pay_fee>1</actual_pay_fee>
                    <allowance_amount>1</allowance_amount>
                    <attributes>1</attributes>
                    <auction_id>1</auction_id>
                    <auction_pict_url>1</auction_pict_url>
                    <auction_price>1</auction_price>
                    <auction_title>1</auction_title>
                    <biz_order_id>1</biz_order_id>
                    <buy_amount>1</buy_amount>
                    <consign_time>1</consign_time>
                    <end_time>1</end_time>
                    <pmd>1</pmd>
                    <logistics_status>1</logistics_status>
                    <source>1</source>
                    <pay_status>1</pay_status>
                    <pay_time>1</pay_time>
                    <pmti>1</pmti>
                    <promotion_info_list>
                        <wph_trade_promotion_info>
                            <active_detail_id>1</active_detail_id>
                            <active_id>1</active_id>
                            <discount>1</discount>
                            <key>1</key>
                            <name>1</name>
                            <type>1</type>
                            <val>1</val>
                        </wph_trade_promotion_info>
                    </promotion_info_list>
                    <refund_status>1</refund_status>
                    <stl_price>1</stl_price>
                    <total_fee>1</total_fee>
                    <sku_code>1</sku_code>
                    <out_sku_code>1</out_sku_code>
                    <gmt_modified>1</gmt_modified>
                    <gmt_create>1</gmt_create>
                    <supplier_discount_fee>0</supplier_discount_fee>
                </wph_trade_sub_order>
            </sub_order_list>
            <sys_time>1</sys_time>
            <terminal>1</terminal>
            <total_fee>1</total_fee>
            <gmt_modified>1</gmt_modified>
            <gmt_create>1</gmt_create>
        </content>
        <error_code>1</error_code>
        <error_message>1</error_message>
        <success>true</success>
    </result>
</alibaba_mmc_order_query_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

返回
顶部