调用 DescribeOrder 用于查询对应订单的详细信息。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

请求参数

名称 类型 是否必选 示例值 描述
Action String DescribeOrder

系统规定参数。取值:DescribeOrder

OrderId String 202*********415

订单ID

返回数据

名称 类型 示例值 描述
ProductName String saas服务产品

订购商品名称

SupplierCompanyName String **科技股份有限公司

卖家公司名称

OriginalPrice Float 10.0

订单原价(元)

AliUid Long 190311111111****

阿里云用户唯一标识(aliyunPK)

CouponPrice Float 0.0

已使用代金券金额(元)

AccountQuantity Long 0

账号数

PeriodType String MONTH

预付费的时间单位。取值:

  • MONTH:单月
  • SEASON:季度
  • HALFYEAR:半年
  • YEAR:一年
  • TWOYEARS:两年
  • ONCE:单次
RequestId String 6EF60BEC-0242-43AF-BB20-270359FB54A7

请求 ID

PayStatus String PAID

付款状态。取值:

  • PAID 已支付
  • UNPAID 未支付
PaymentPrice Float 0.0

实际支付金额(元)

OrderStatus String NORMAL

订单状态。取值:

  • NORMAL 正常
  • REFUND 退款
  • DELETE 作废
ProductSkuCode String cmgj02****-prepay

订购商品规格 Code

PaidOn Long 1531191675000

付款时间

Components Map

订单模块信息。示例中的参数说明如下:

  • package_quantity: 使用次数(API 商品特有模块)
  • package_version:版本
  • ord_time: 时长
  • order_num: 数量
  • code:模块 Code
  • globarKey: 模块 key
  • name: 模块名称
  • value: 模块值
CreatedOn Long 1531191564000

下单时间

OrderType String NEW

订单类型。取值:

  • NEW 新购订单
  • RENEW 续费订单
  • TRIAL 试用订单
TotalPrice Float 0.0

订单应收金额(元)

Quantity Integer 1

订购数量

OrderId Long 202211111111111

订单ID

ProductCode String cmgj02****

商品Code

SupplierTelephones Array of String {139*****950, 139*****831}

卖家客服热线

InstanceIds Array of String {1597985, 1227195}

订单关联业务实例 ID

示例

请求示例

https://market.aliyuncs.com/?Action=DescribeOrder
&OrderId=202******415
&<公共请求参数>

正常返回示例

XML格式

HTTP/1.1 200 OK
Content-Type:application/xml

<DescribeOrderResponse>
    <PaidOn>1531191675000</PaidOn>
    <PeriodType>MONTH</PeriodType>
    <CouponPrice>0.0</CouponPrice>
    <PayStatus>PAID</PayStatus>
    <OriginalPrice>10.0</OriginalPrice>
    <ProductName>saas服务产品</ProductName>
    <RequestId>6EF60BEC-0242-43AF-BB20-270359FB54A7</RequestId>
    <ProductCode>cmgj02****</ProductCode>
    <SupplierCompanyName>**科技股份有限公司</SupplierCompanyName>
    <Quantity>1</Quantity>
    <OrderId>202211111111111</OrderId>
    <SupplierTelephones>
        <Telephone>{139*****950, 139*****831}</Telephone>
    </SupplierTelephones>
    <Components>{ "package_quantity": { "code": "package_quantity", "globarKey": "cmapi014302_package_quantity_package_quantity_10000", "name": "10000次", "value": "10000" }, "package_version": { "code": "package_version", "globarKey": "cmapi014302_package_version_package_version_yuncode830200000", "name": "0元/10000次", "value": "yuncode830200000" }, "ord_time": { "code": "ord_time", "globarKey": "cmapi014302_ord_time_ord_time_6:Month", "name": "6个月", "value": "6:Month" }, "order_num": { "code": "order_num", "globarKey": "cmapi014302_order_num_order_num_1", "name": "1", "value": "1" } }</Components>
    <OrderStatus>NORMAL</OrderStatus>
    <OrderType>NEW</OrderType>
    <TotalPrice>0.0</TotalPrice>
    <ProductSkuCode>cmgj02****-prepay</ProductSkuCode>
    <CreatedOn>1531191564000</CreatedOn>
    <PaymentPrice>0.0</PaymentPrice>
    <InstanceIds>
        <InstanceId>{1597985, 1227195}</InstanceId>
    </InstanceIds>
    <AccountQuantity>0</AccountQuantity>
    <AliUid>190311111111****</AliUid>
</DescribeOrderResponse>

JSON格式

HTTP/1.1 200 OK
Content-Type:application/json

{
  "PaidOn" : "1531191675000",
  "PeriodType" : "MONTH",
  "CouponPrice" : "0.0",
  "PayStatus" : "PAID",
  "OriginalPrice" : "10.0",
  "ProductName" : "saas服务产品",
  "RequestId" : "6EF60BEC-0242-43AF-BB20-270359FB54A7",
  "ProductCode" : "cmgj02****",
  "SupplierCompanyName" : "**科技股份有限公司",
  "Quantity" : "1",
  "OrderId" : "202211111111111",
  "SupplierTelephones" : {
    "Telephone" : "{139*****950, 139*****831}"
  },
  "Components" : "{ \"package_quantity\": { \"code\": \"package_quantity\", \"globarKey\": \"cmapi014302_package_quantity_package_quantity_10000\", \"name\": \"10000次\", \"value\": \"10000\" }, \"package_version\": { \"code\": \"package_version\", \"globarKey\": \"cmapi014302_package_version_package_version_yuncode830200000\", \"name\": \"0元/10000次\", \"value\": \"yuncode830200000\" }, \"ord_time\": { \"code\": \"ord_time\", \"globarKey\": \"cmapi014302_ord_time_ord_time_6:Month\", \"name\": \"6个月\", \"value\": \"6:Month\" }, \"order_num\": { \"code\": \"order_num\", \"globarKey\": \"cmapi014302_order_num_order_num_1\", \"name\": \"1\", \"value\": \"1\" } }",
  "OrderStatus" : "NORMAL",
  "OrderType" : "NEW",
  "TotalPrice" : "0.0",
  "ProductSkuCode" : "cmgj02****-prepay",
  "CreatedOn" : "1531191564000",
  "PaymentPrice" : "0.0",
  "InstanceIds" : {
    "InstanceId" : "{1597985, 1227195}"
  },
  "AccountQuantity" : "0",
  "AliUid" : "190311111111****"
}

错误码

HttpCode 错误码 错误信息 描述
500 UnknownError An error occurred while processing your request. 未知错误

访问错误中心查看更多错误码。