文档中心 > API类目 > 天猫优品

tmall.tmyp.ai.queryorderdetail (优品AI查询订单信息)

优品AI查询订单信息

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
openid String 必须 11 用户id
trade_order_center_query_param TradeOrderCenterQueryParam 可选 查询参数
  • └ sub_trade_order_id_list
  • Number []
  • 必须
  • 4501731024002019129,4501731024002019128
  • 子订单号
  • └ trade_order_query_scene
  • String []
  • 必须
  • fullOrder
  • 查询场景
  • └ main_trade_order_id
  • Number
  • 可选
  • 4501731024002019129
  • 主订单号

响应参数

名称 类型 示例值 描述
suc Boolean true success
model AllTradeOrderDTO model
  • sell_out_trade_order_dto
  • TradeOrderCenterDTO
  • C单对象
  • tp_trade_order_dto
  • TpTradeOrderDTO
  • 订单对象
  • └ state
  • String
  • WAIT_BUYER_CONFIRM_GOODS
  • 状态
  • └ last_modify_date
  • Date
  • 1767060607000
  • 最后修改时间
  • └ delivery_date_change
  • Boolean
  • false
  • 预约时效
  • └ reduce_inv
  • String
  • 2
  • 是否扣减库存
  • └ taobao_order_id
  • Number
  • 4977240589155755000
  • 订单id
  • └ mail_n_o
  • String
  • SF3268560601392
  • 运单号
  • └ ct_guide_info
  • String
  • xxx
  • 导购信息
  • └ parent_taobao_order_id
  • Number
  • 4977240589155755000
  • 父订单号
  • └ refund_status
  • Number
  • 9
  • 退款状态
  • └ logistic_status
  • Number
  • 2
  • 物流状态
  • └ zfbt_ysf
  • String
  • 1
  • 国补云闪付标
  • └ shop_ali_w_w
  • String
  • 天猫优品官方旗舰店
  • 优品客服信息
  • └ create_date
  • Date
  • 1767023850000
  • 创建时间
  • └ post_fee
  • Number
  • 0
  • 运费
  • └ os_date
  • String
  • 2025-11-11
  • 预约时间
  • └ division_code
  • String
  • 321203
  • 地址码
  • └ cuntao
  • String
  • 2
  • cuntao标
  • └ insurance_fee
  • Number
  • 0
  • 保险费用
  • └ os_range
  • String
  • 09:00
  • 预约时间
  • └ discount_fee
  • Number
  • 0
  • 优惠金额
  • └ pay_time
  • Date
  • 1767023857000
  • 支付时间
  • └ part_confirm_fee
  • Number
  • 0
  • 确认收货金额
  • └ ct_tm_yp_order
  • String
  • 1
  • 优品订单标
  • └ consign_time
  • Date
  • 1767060075000
  • 发货时间
  • details
  • Details []
  • 订单详情
  • └ outer_id_p
  • String
  • 8009971681487
  • 外部单号
  • └ root_cat_name
  • String
  • 111
  • 类目名称
  • └ inv_store_type
  • String
  • 6
  • 库存类型
  • └ ext_service_biz_id
  • String
  • 111
  • 关联服务单号
  • └ item_name
  • String
  • 【优品自营】任天堂Nintendo switch 2游戏主机新款二代单机版NS2港版体感多语言家用游戏机便携掌机
  • 商品名称
  • └ item_actual_price
  • Number
  • 367900
  • 商品价格
  • └ store_coupon_type
  • String
  • 1
  • 门店券类型
  • └ brand_name
  • String
  • xx
  • 品类名称
  • └ promotion_source
  • String
  • xx
  • 优惠来源
  • └ yp_ori_sp_t
  • String
  • xx
  • ypOriSpT标
  • └ est_con_time
  • String
  • 2_2
  • 到货时效
  • └ sc_item_id
  • String
  • 11
  • 货品id
  • └ real_root_cat_name
  • String
  • xx
  • 根类目名称
  • └ service_order_tag
  • String
  • xx
  • 服务标签
  • └ real_root_cat
  • String
  • 20
  • 类目
  • └ taobao_order_id
  • Number
  • 4977240589155755000
  • 订单号
  • └ item_id
  • Number
  • 975036147762
  • 商品id
  • └ brand_id
  • Number
  • 1548011117
  • 品牌id
  • └ ct_guide_info
  • String
  • xx
  • 导购信息
  • └ supplier_id
  • String
  • 11
  • 供应商id
  • └ ctg_sto_id
  • String
  • xx
  • 门店id
  • └ parent_taobao_order_id
  • Number
  • 4977240589155755000
  • 父订单号
  • └ ct_re_id
  • String
  • xx
  • 关联单号
  • └ after_refund_status
  • Number
  • 0
  • 售后退款状态
  • └ refund_status
  • Number
  • 9
  • 退款状态
  • └ order_status
  • String
  • WAIT_BUYER_CONFIRM_GOODS
  • 订单状态
  • └ logistic_status
  • Number
  • 2
  • 物流状态
  • └ root_cat
  • Number
  • 50017906
  • 类目
  • └ item_s_k_u_desc
  • String
  • 版本类型:港版;颜色分类:Switch 2游戏机【单机 标准版】
  • sku描述
  • └ yp_arr_tm
  • String
  • 11
  • ypArrTm标
  • └ amount
  • Number
  • 367900
  • 金额
  • └ quantity
  • Number
  • 1
  • 数量
  • └ post_fee
  • Number
  • 0
  • 运费
  • └ poid
  • String
  • 106737450998139-106737450998139
  • 一盘货履约id
  • └ item_sku_id
  • Number
  • 5929018560310
  • SkuId
  • └ ct_guider
  • String
  • xx
  • 导购信息
  • └ item_price
  • Number
  • 499900
  • 价格
  • └ pay_status
  • Number
  • 2
  • 支付状态
  • └ item_image_url
  • String
  • i4/3402329517/O1CN01fSE8mQ2KAqRmjxck1_!!3402329517.png
  • 商品图片
  • └ fsst
  • String
  • 1_2026-01-01
  • 兜底发货时效
  • └ estime
  • String
  • 1
  • 发货时效
  • └ ct_org_sta_id
  • Number
  • 0
  • 到货时效
  • └ zfbt_zt
  • String
  • FIN_TMYPTK7
  • 国补主体
  • └ est_con_time
  • String
  • 2_2
  • 到货时效
  • └ ttid
  • String
  • 10001401@taobao_android_10.56.3
  • 设备id
  • └ total_amount
  • Number
  • 367900
  • 总金额
  • └ store_code
  • String
  • SZXZ0001
  • 仓code
  • └ biz_type
  • Number
  • 200
  • 订单类型
  • └ zfbt22
  • String
  • 2
  • 国补22标
  • └ shop_name
  • String
  • 天猫优品官方旗舰店
  • 店铺名称
  • └ second_post_fee
  • Number
  • 0
  • 运费
  • └ ending_time
  • Date
  • 205-11-11
  • 结束时间
  • └ transport_type
  • String
  • EXPRESS
  • 发货方式
  • └ fsst
  • String
  • 2_2
  • 兜底发货时效
  • └ logistic_status_desc
  • String
  • CONSIGNED
  • 物流状态描述
  • └ out_logistics_id
  • String
  • 788290998779
  • 外部物流单号
  • └ mail_company
  • String
  • 顺丰速运
  • 物流公司
  • └ mail_company_code
  • String
  • SF
  • 物流公司code
  • └ total_fee
  • Number
  • 367900
  • 总金额
  • └ zfbt09
  • String
  • 14716
  • 国补09标
  • └ pay_status
  • Number
  • 2
  • 支付状态
  • └ zfbt06
  • String
  • 1
  • 国补06标
  • └ zfbt07
  • String
  • 14716
  • 国补07标
  • └ promotion
  • String
  • Tmall$tmallDPromotion-121128561488_2612863170199
  • 优惠id
  • └ fulfil_order_dto_map
  • String
  • xxx
  • 履约单信息
  • └ attributes
  • String
  • xxx
  • 扩展字段
  • └ logistics_detail_dto_map
  • String
  • xx
  • 物流信息
  • warehouse_dto
  • WarehouseDTO
  • 仓信息
  • └ code
  • String
  • cc
  • 仓code
  • └ name
  • String
  • xx
  • 仓名称
  • └ area
  • String
  • xx
  • 仓地址
msg_info String xxx msgInfo
msg_code String xx msgCode

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
TmallTmypAiQueryorderdetailRequest req = new TmallTmypAiQueryorderdetailRequest();
req.setOpenid("11");
TmallTmypAiQueryorderdetailRequest.TradeOrderCenterQueryParam obj1 = new TmallTmypAiQueryorderdetailRequest.TradeOrderCenterQueryParam();
obj1.setSubTradeOrderIdList(new Long[] { 4501731024002019129,4501731024002019128 };
);
obj1.setTradeOrderQueryScene("fullOrder");
obj1.setMainTradeOrderId(4501731024002019129L);
req.setTradeOrderCenterQueryParam(obj1);
TmallTmypAiQueryorderdetailResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<tmall_tmyp_ai_queryorderdetail_response>
    <suc>true</suc>
    <model>
        <sell_out_trade_order_dto>
            <tp_trade_order_dto>
                <state>WAIT_BUYER_CONFIRM_GOODS</state>
                <last_modify_date>1767060607000</last_modify_date>
                <delivery_date_change>false</delivery_date_change>
                <reduce_inv>2</reduce_inv>
                <taobao_order_id>4977240589155755000</taobao_order_id>
                <mail_n_o>SF3268560601392</mail_n_o>
                <ct_guide_info>xxx</ct_guide_info>
                <parent_taobao_order_id>4977240589155755000</parent_taobao_order_id>
                <refund_status>9</refund_status>
                <logistic_status>2</logistic_status>
                <zfbt_ysf>1</zfbt_ysf>
                <shop_ali_w_w>天猫优品官方旗舰店</shop_ali_w_w>
                <create_date>1767023850000</create_date>
                <post_fee>0</post_fee>
                <os_date>2025-11-11</os_date>
                <division_code>321203</division_code>
                <cuntao>2</cuntao>
                <insurance_fee>0</insurance_fee>
                <os_range>09:00</os_range>
                <discount_fee>0</discount_fee>
                <pay_time>1767023857000</pay_time>
                <part_confirm_fee>0</part_confirm_fee>
                <ct_tm_yp_order>1</ct_tm_yp_order>
                <consign_time>1767060075000</consign_time>
                <details>
                    <details>
                        <outer_id_p>8009971681487</outer_id_p>
                        <root_cat_name>111</root_cat_name>
                        <inv_store_type>6</inv_store_type>
                        <ext_service_biz_id>111</ext_service_biz_id>
                        <item_name>【优品自营】任天堂Nintendo switch 2游戏主机新款二代单机版NS2港版体感多语言家用游戏机便携掌机</item_name>
                        <item_actual_price>367900</item_actual_price>
                        <store_coupon_type>1</store_coupon_type>
                        <brand_name>xx</brand_name>
                        <promotion_source>xx</promotion_source>
                        <yp_ori_sp_t>xx</yp_ori_sp_t>
                        <est_con_time>2_2</est_con_time>
                        <sc_item_id>11</sc_item_id>
                        <real_root_cat_name>xx</real_root_cat_name>
                        <service_order_tag>xx</service_order_tag>
                        <real_root_cat>20</real_root_cat>
                        <taobao_order_id>4977240589155755000</taobao_order_id>
                        <item_id>975036147762</item_id>
                        <brand_id>1548011117</brand_id>
                        <ct_guide_info>xx</ct_guide_info>
                        <supplier_id>11</supplier_id>
                        <ctg_sto_id>xx</ctg_sto_id>
                        <parent_taobao_order_id>4977240589155755000</parent_taobao_order_id>
                        <ct_re_id>xx</ct_re_id>
                        <after_refund_status>0</after_refund_status>
                        <refund_status>9</refund_status>
                        <order_status>WAIT_BUYER_CONFIRM_GOODS</order_status>
                        <logistic_status>2</logistic_status>
                        <root_cat>50017906</root_cat>
                        <item_s_k_u_desc>版本类型:港版;颜色分类:Switch 2游戏机【单机 标准版】</item_s_k_u_desc>
                        <yp_arr_tm>11</yp_arr_tm>
                        <amount>367900</amount>
                        <quantity>1</quantity>
                        <post_fee>0</post_fee>
                        <poid>106737450998139-106737450998139</poid>
                        <item_sku_id>5929018560310</item_sku_id>
                        <ct_guider>xx</ct_guider>
                        <item_price>499900</item_price>
                        <pay_status>2</pay_status>
                        <item_image_url>i4/3402329517/O1CN01fSE8mQ2KAqRmjxck1_!!3402329517.png</item_image_url>
                        <fsst>1_2026-01-01</fsst>
                    </details>
                </details>
                <estime>1</estime>
                <ct_org_sta_id>0</ct_org_sta_id>
                <zfbt_zt>FIN_TMYPTK7</zfbt_zt>
                <est_con_time>2_2</est_con_time>
                <ttid>10001401@taobao_android_10.56.3</ttid>
                <total_amount>367900</total_amount>
                <store_code>SZXZ0001</store_code>
                <biz_type>200</biz_type>
                <zfbt22>2</zfbt22>
                <shop_name>天猫优品官方旗舰店</shop_name>
                <second_post_fee>0</second_post_fee>
                <ending_time>205-11-11</ending_time>
                <transport_type>EXPRESS</transport_type>
                <fsst>2_2</fsst>
                <logistic_status_desc>CONSIGNED</logistic_status_desc>
                <out_logistics_id>788290998779</out_logistics_id>
                <mail_company>顺丰速运</mail_company>
                <mail_company_code>SF</mail_company_code>
                <total_fee>367900</total_fee>
                <zfbt09>14716</zfbt09>
                <pay_status>2</pay_status>
                <zfbt06>1</zfbt06>
                <zfbt07>14716</zfbt07>
                <promotion>Tmall$tmallDPromotion-121128561488_2612863170199</promotion>
            </tp_trade_order_dto>
            <fulfil_order_dto_map>xxx</fulfil_order_dto_map>
            <attributes>xxx</attributes>
            <logistics_detail_dto_map>xx</logistics_detail_dto_map>
            <warehouse_dto>
                <code>cc</code>
                <name>xx</name>
                <area>xx</area>
            </warehouse_dto>
        </sell_out_trade_order_dto>
    </model>
    <msg_info>xxx</msg_info>
    <msg_code>xx</msg_code>
</tmall_tmyp_ai_queryorderdetail_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

返回
顶部