查询收支明细

最近更新时间:2017-10-11 10:10:52

查看pdf

1. 接口描述

域名: feecenter.api.qcloud.com
接口名: DescribeBills

查询收入和支出的详细信息。

2. 输入参数

参数名称 必选 类型 描述
payerUin UInt 支付者账号ID
payType String 支付类型 默认all。all:查询所有 recharge:充值 cash:提现 deduct:扣费 return:退款 block:冻结 unblock:解冻 agentout:转出 agentin:转入
startTime String 待查询数据起始时间(yyyy-mm-dd)
endTime String 待查询数据结束时间(yyyy-mm-dd)
order String 以operationTime(出参)为序排序数据 默认ASC。DESC:降序 ASC:升序

3. 输出参数

参数名称 类型 描述
out Int 账户支出
in Int 账户入账
total Int 记录数,数据域记录条数
data Array 数据域
feeId Int 费用ID
billId String 账单ID
status Int 冻结单执行状态
payMode String 支付模式 all:不区分 postPay:后付费 prePay:预付费
payType String 支付类型
operationTime String 操作时间
operationInfo String 操作信息
amount Int 操作金额,可为负,单位分
balance Int 余额
calcUnit String 结算周期
actionType String 动作类型
productCode String 产品编码
subProductCode String 子产品编码

4. 示例

输入

  https://feecenter.api.qcloud.com/v2/index.php?Action=DescribeBills
  &payerUin=12345678
  &startTime=2017-07-15
  &endTime=2017-08-04
  https://feecenter.api.qcloud.com/v2/index.php?Action=DescribeBills
  &公共请求参数

输出


{
    "code": 0,
    "message": "",
    "codeDesc": "Success",
    "data": {
        "data": [
            {
                "feeId": "606143",
                "billId": "20170716020000063599467658320052",
                "status": "3",
                "payMode": "postPay",
                "payType": "deduct",
                "operationTime": "2017-07-16 01:37:32",
                "operationInfo": "云服务器按量-07月扣费",
                "amount": "-25",
                "balance": "4941",
                "calcUnit": "h",
                "actionType": "deduct",
                "productCode": "cvm",
                "subProductCode": "cvm_hour",
            },
            {
                "feeId": "606196",
                "billId": "20170716020000063613350065222965",
                "status": "3",
                "payMode": "postPay",
                "payType": "deduct",
                "operationTime": "2017-07-16 02:08:58",
                "operationInfo": "云服务器流量按量-07月扣费",
                "amount": "0",
                "balance": "4941",
                "calcUnit": "h",
                "actionType": "deduct",
                "productCode": "idc",
                "subProductCode": "traffic_hour",
            },
            {
                "feeId": "606247",
                "billId": "20170716020000063624890659006234",
                "status": "3",
                "payMode": "postPay",
                "payType": "deduct",
                "operationTime": "2017-07-16 02:38:27",
                "operationInfo": "云服务器按量-07月扣费",
                "amount": "-34",
                "balance": "4907",
                "calcUnit": "h",
                "actionType": "deduct",
                "productCode": "cvm",
                "subProductCode": "cvm_hour",
            },
        ],
        "total": "3",
        "out": ,
        "in": 
    }
}

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