获取订单信息

最近更新时间:2018-07-06 15:35:54

查看pdf

1. 接口描述

域名:trade.api.qcloud.com
接口名:DescribeDealsByCond

获取订单信息(新)

2. 输入参数

参数名称 必选 类型 描述
startTime datetime 开始时间
endTime datetime 结束时间
page Int 第多少页,从0开始,默认是0
pageSize Int 一页多少条数据,默认是20条
status Int 订单状态,默认为4(成功的订单)
订单的状态
1:未支付
2:已支付3:发货中
4:已发货
5:发货失败
6:已退款
7:已关单
8:订单过期
9:订单已失效
10:产品已失效
11:代付拒绝
12:支付中
dealId Int 订单ID
dealName String 订单号

3. 输出参数

参数名称 类型 描述
code Int 错误码, 0: 成功, 其他值: 失败
message String 错误信息
data Array
data.deals Array
data.deals.goodsCategoryId Int 产品分类ID
data.deals.goodsDetail Array 产品配置信息
data.deals.taskDetail Array 部分产品信息,新购时产品ID存在此字段
data.deals.realTotalCost Int 总消耗(单位分)
data.deals.voucherDecline Int 代金卷消耗(单位分)
data.deals.projectId Int 项目ID

4. 示例

输入

https://trade.api.qcloud.com/v2/index.php?Action=DescribeDealsByCond
&startTime=2016-01-01 00:00:00
&endTime=2016-02-01 00:00:00
&pageSize=2
&page=0
&COMMON_PARAMS

输出

{
    "code":"0",
    "message":"",
    "data":{
        "totalNum":"76",
        "deals":[
            {
                "dealName":"1",
                "dealId":"11",
                "goodsCategoryId":"75",
                "goodsDetail":{
                    "domain":"dnspod.cn",
                    "years":"1",
                    "service":"DR_CN_NEW"
                },
                "creatTime":"2016-01-07 15:47:34",
                "billId":"20160107030000032133684280",
                "taskDetail":{
                    "flowId":"3333"
                },
                "realTotalCost":"1024",
                "voucherDecline":null,
                "projectId":"0"
            },
            {
                "dealName":"1",
                "dealId":"1",
                "goodsCategoryId":"70",
                "goodsDetail":{
                    "type":"tdsql",
                    "action":"renewTDsql",
                    "appId":"1351000042",
                    "Memory":"6000",
                    "Storage":"100",
                    "Ids":"40590",
                    "instanceNames":"name40590",
                    "curDeadline":"2016-02-07",
                    "timeSpan":"4",
                    "timeUnit":"d",
                    "ProjectId":"0",
                    "userType":"1",
                    "operator":"909619400"
                },
                "creatTime":"2016-01-07 16:55:24",
                "billId":"2016010703000003213219435981",
                "taskDetail":{
                    "Ids":[
                        "40590"
                    ]
                },
                "realTotalCost":"10000",
                "voucherDecline":null,
                "projectId":"0"
            }
        ]
    }
}

如果有其他疑问,您也可以在问答社区中寻求帮助。前往问答社区 >