开发者社区> 问答> 正文

查询订单



QueryOrder


描述:根据传入订单编号查询订单信息。

请求参数


公共请求参数,详见 公共参数

名称类型是否必须描述
ActionString操作接口名,系统规定参数,取值:QueryOrder。
OrderIDString订单编号。


返回参数

名称类型描述
RequestIdString唯一请求识别码。
OrderIDString订单编号。
UserIDString用户编号。
MoneyString订单总金额。
OrderDateString订单创建时间,时间格式为yyyy-MM-dd HH:mm:ss。
CheckFlagBoolean订单结算标识。
CheckDateString订单结算时间。
CheckTypeBoolean订单是否自动结算标识。
ValidFlagBoolean订单是否有效标识。
OrderProductsSubOrderResultType子订单信息。


错误码


对于所有接口的通用性错误,请参考 错误代码表
错误代码描述HTTP 状态码语义
OrderInformationInvalidUnable to get a valid order information.400无法获取有效的订单信息


示例



请求示例

  1. [backcolor=transparent]http[backcolor=transparent]:[backcolor=transparent]//Domain.aliyuncs.com/?Action=QueryOrder
  2. [backcolor=transparent]&[backcolor=transparent]OrderID[backcolor=transparent]=[backcolor=transparent]D201600000000000
  3. [backcolor=transparent]&<公共请求参数>


返回示例


[backcolor=transparent]XML 示例
  1. [backcolor=transparent]<QueryOrder>
  2. [backcolor=transparent]    [backcolor=transparent]<ValidFlag>[backcolor=transparent]true[backcolor=transparent]</ValidFlag>
  3. [backcolor=transparent]    [backcolor=transparent]<OrderDate>[backcolor=transparent]2016-05-17 17:20:23[backcolor=transparent]</OrderDate>
  4. [backcolor=transparent]    [backcolor=transparent]<CheckFlag>[backcolor=transparent]true[backcolor=transparent]</CheckFlag>
  5. [backcolor=transparent]    [backcolor=transparent]<Money>[backcolor=transparent]8.0[backcolor=transparent]</Money>
  6. [backcolor=transparent]    [backcolor=transparent]<OrderProducts>
  7. [backcolor=transparent]        [backcolor=transparent]<SubOrderResult>
  8. [backcolor=transparent]            [backcolor=transparent]<Amount>[backcolor=transparent]1[backcolor=transparent]</Amount>
  9. [backcolor=transparent]            [backcolor=transparent]<OrderDate>[backcolor=transparent]2016-05-17 17:20:23[backcolor=transparent]</OrderDate>
  10. [backcolor=transparent]            [backcolor=transparent]<Money>[backcolor=transparent]4.0[backcolor=transparent]</Money>
  11. [backcolor=transparent]            [backcolor=transparent]<CheckFlag>[backcolor=transparent]true[backcolor=transparent]</CheckFlag>
  12. [backcolor=transparent]            [backcolor=transparent]<OrderID>[backcolor=transparent]D201600000000000[backcolor=transparent]</OrderID>
  13. [backcolor=transparent]            [backcolor=transparent]<SaleID>[backcolor=transparent]S201600000000000[backcolor=transparent]</SaleID>
  14. [backcolor=transparent]            [backcolor=transparent]<UserID>[backcolor=transparent]0000000000000000[backcolor=transparent]</UserID>
  15. [backcolor=transparent]            [backcolor=transparent]<TrackID>[backcolor=transparent]T201600000000000[backcolor=transparent]</TrackID>
  16. [backcolor=transparent]            [backcolor=transparent]<RelatedName>[backcolor=transparent]abcdefgh.site[backcolor=transparent]</RelatedName>
  17. [backcolor=transparent]            [backcolor=transparent]<BizStatus>[backcolor=transparent]0[backcolor=transparent]</BizStatus>
  18. [backcolor=transparent]            [backcolor=transparent]<ClassID>[backcolor=transparent]domain[backcolor=transparent]</ClassID>
  19. [backcolor=transparent]            [backcolor=transparent]<ValidFlag>[backcolor=transparent]true[backcolor=transparent]</ValidFlag>
  20. [backcolor=transparent]            [backcolor=transparent]<DeadDate>[backcolor=transparent]2017-05-17 17:20:38[backcolor=transparent]</DeadDate>
  21. [backcolor=transparent]            [backcolor=transparent]<ActionType>[backcolor=transparent]activate[backcolor=transparent]</ActionType>
  22. [backcolor=transparent]            [backcolor=transparent]<PeriodNum>[backcolor=transparent]12[backcolor=transparent]</PeriodNum>
  23. [backcolor=transparent]            [backcolor=transparent]<ProductName>[backcolor=transparent].site 域名[backcolor=transparent]</ProductName>
  24. [backcolor=transparent]            [backcolor=transparent]<UpdateDate>[backcolor=transparent]2016-05-17 17:20:39[backcolor=transparent]</UpdateDate>
  25. [backcolor=transparent]            [backcolor=transparent]<CheckDate>[backcolor=transparent]2016-05-17 17:20:29[backcolor=transparent]</CheckDate>
  26. [backcolor=transparent]            [backcolor=transparent]<PeriodUnit>[backcolor=transparent]3[backcolor=transparent]</PeriodUnit>
  27. [backcolor=transparent]        [backcolor=transparent]</SubOrderResult>
  28. [backcolor=transparent]    [backcolor=transparent]</OrderProducts>
  29. [backcolor=transparent]    [backcolor=transparent]<CheckType>[backcolor=transparent]true[backcolor=transparent]</CheckType>
  30. [backcolor=transparent]    [backcolor=transparent]<OrderID>[backcolor=transparent]D201600000000000[backcolor=transparent]</OrderID>
  31. [backcolor=transparent]    [backcolor=transparent]<RequestId>[backcolor=transparent]2C5964F4-A7F0-401B-9E45-585B17D34A4E[backcolor=transparent]</RequestId>
  32. [backcolor=transparent]    [backcolor=transparent]<UserID>[backcolor=transparent]0000000000000000[backcolor=transparent]</UserID>
  33. [backcolor=transparent]    [backcolor=transparent]<CheckDate>[backcolor=transparent]2016-05-17 17:20:29[backcolor=transparent]</CheckDate>
  34. [backcolor=transparent]</QueryOrder>

[backcolor=transparent]JSON 示例
  1. [backcolor=transparent]{
  2. [backcolor=transparent]    [backcolor=transparent]"ValidFlag"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]true[backcolor=transparent],
  3. [backcolor=transparent]    [backcolor=transparent]"OrderDate"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]"2016-05-17 17:20:23"[backcolor=transparent],
  4. [backcolor=transparent]    [backcolor=transparent]"CheckFlag"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]true[backcolor=transparent],
  5. [backcolor=transparent]    [backcolor=transparent]"Money"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]"8.0"[backcolor=transparent],
  6. [backcolor=transparent]    [backcolor=transparent]"OrderProducts"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]{
  7. [backcolor=transparent]        [backcolor=transparent]"SubOrderResult"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent][
  8. [backcolor=transparent]                [backcolor=transparent]{
  9. [backcolor=transparent]                [backcolor=transparent]"Amount"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]1[backcolor=transparent],
  10. [backcolor=transparent]                [backcolor=transparent]"OrderDate"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]"2016-05-17 17:20:23"[backcolor=transparent],
  11. [backcolor=transparent]                [backcolor=transparent]"Money"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]"4.0"[backcolor=transparent],
  12. [backcolor=transparent]                [backcolor=transparent]"CheckFlag"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]true[backcolor=transparent],
  13. [backcolor=transparent]                [backcolor=transparent]"OrderID"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]"D201600000000000"[backcolor=transparent],
  14. [backcolor=transparent]                [backcolor=transparent]"SaleID"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]"S201600000000000"[backcolor=transparent],
  15. [backcolor=transparent]                [backcolor=transparent]"UserID"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]"0000000000000000"[backcolor=transparent],
  16. [backcolor=transparent]                [backcolor=transparent]"TrackID"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]"T201600000000000"[backcolor=transparent],
  17. [backcolor=transparent]                [backcolor=transparent]"RelatedName"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]"abcdefgh.site"[backcolor=transparent],
  18. [backcolor=transparent]                [backcolor=transparent]"BizStatus"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]0[backcolor=transparent],
  19. [backcolor=transparent]                [backcolor=transparent]"ClassID"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]"domain"[backcolor=transparent],
  20. [backcolor=transparent]                [backcolor=transparent]"ValidFlag"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]true[backcolor=transparent],
  21. [backcolor=transparent]                [backcolor=transparent]"DeadDate"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]"2017-05-17 17:20:38"[backcolor=transparent],
  22. [backcolor=transparent]                [backcolor=transparent]"ActionType"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]"activate"[backcolor=transparent],
  23. [backcolor=transparent]                [backcolor=transparent]"PeriodNum"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]12[backcolor=transparent],
  24. [backcolor=transparent]                [backcolor=transparent]"ProductName"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]".site 域名"[backcolor=transparent],
  25. [backcolor=transparent]                [backcolor=transparent]"UpdateDate"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]"2016-05-17 17:20:39"[backcolor=transparent],
  26. [backcolor=transparent]                [backcolor=transparent]"CheckDate"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]"2016-05-17 17:20:29"[backcolor=transparent],
  27. [backcolor=transparent]                [backcolor=transparent]"PeriodUnit"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]3
  28. [backcolor=transparent]            [backcolor=transparent]}
  29. [backcolor=transparent]        [backcolor=transparent]]
  30. [backcolor=transparent]    [backcolor=transparent]},
  31. [backcolor=transparent]    [backcolor=transparent]"CheckType"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]true[backcolor=transparent],
  32. [backcolor=transparent]    [backcolor=transparent]"OrderID"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]"D201600000000000"[backcolor=transparent],
  33. [backcolor=transparent]    [backcolor=transparent]"RequestId"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]"2C5964F4-A7F0-401B-9E45-585B17D34A4E"[backcolor=transparent],
  34. [backcolor=transparent]    [backcolor=transparent]"UserID"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]"0000000000000000"[backcolor=transparent],
  35. [backcolor=transparent]    [backcolor=transparent]"CheckDate"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]"2016-05-17 17:20:29"
  36. [backcolor=transparent]}

展开
收起
boxti 2017-10-17 15:05:48 2626 0
1 条回答
写回答
取消 提交回答
  • Re查询订单
    你好你那是怎么做的啊!

    -------------------------

    Re查询订单
    公共参数是怎么做到的呢
    2017-12-16 10:42:17
    赞同 展开评论 打赏
问答分类:
问答地址:
问答排行榜
最热
最新

相关电子书

更多
低代码开发师(初级)实战教程 立即下载
冬季实战营第三期:MySQL数据库进阶实战 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载