查询客户调账记录(旧)
URI
POST /v1.0/{partner_id}/partner/account-mgr/query-adjust-records
参数说明请参见下表。
参数 |
是否必选 |
取值范围 |
描述 |
---|---|---|---|
partner_id |
是 |
最大长度:64 |
合作伙伴ID(华为分配)。 获取方法请参见如何获取合作伙伴ID(partner_id)。 此参数暂不校验。 |
请求消息
请求参数
参数 |
是否必选 |
参数类型 |
取值范围 |
描述 |
---|---|---|---|---|
customer_id |
否 |
String |
最大长度:64 |
客户账号ID。获取方法请参见如何获取客户的customer_id/domain_id。
默认查询所有客户的调账记录。 |
transfer_type |
否 |
String |
最大长度:2 |
调账类型。
默认查询所有类型。 |
received_time_min |
否 |
String |
最大长度:20 |
查询条件:调账起始时间。 UTC时间,格式为:2016-03-28T14:45:38Z |
received_time_max |
否 |
String |
最大长度:20 |
查询条件:调账截止时间。 UTC时间,格式为:2016-03-28T14:45:38Z |
trans_id |
否 |
String |
最大长度:128 |
事务ID。 |
page_size |
否 |
Integer |
最大值:100 |
每页的显示条数,默认10,最多100。 |
page_no |
否 |
Integer |
- |
分页对应的页数,默认第1页。 |
请求示例
POST https://bss.myhuaweicloud.com/v1.0/{partner_id}/partner/account-mgr/query-adjust-records HTTP/1.1 Content-Type: application/json X-Auth-Token:MIIPAgYJKoZIhvcNAQcCo...ggg1BBIINPXsidG9rZ { "customer_id": "59*****e15", "transfer_type":"0", "received_time_min": "2017-09-01T07:11:33Z" }
响应消息
响应参数
参数 |
参数类型 |
描述 |
---|---|---|
error_code |
String |
状态码。 具体请参见状态码。 |
error_msg |
String |
错误描述信息。 |
total_size |
Integer |
返回总条数。 |
adject_records |
List<AdjustRecord> |
调账记录列表。 具体请参见表1。 |
参数 |
参数类型 |
描述 |
---|---|---|
customer_id |
String |
合作伙伴关联的客户的客户ID。 |
customer_name |
String |
合作伙伴关联的客户的客户名。 |
transfer_type |
String |
调账类型。
|
amount |
Double |
调账总额。 |
currency |
String |
币种。 当前固定为CNY。 |
apply_scene |
String |
使用场景。 |
received_time |
String |
调账时间。 UTC时间,格式为:2016-03-28T14:45:38Z |
measure_id |
Integer |
度量单位。 1:元 |
trans_id |
String |
事务ID,只有在调用向客户账户拨款或回收客户账户余额接口时,响应消息中返回的该记录存在事务ID“trans_id”字段,这个地方才可能有值。 |
响应示例
HTTP/1.1 200 OK Content-Type: application/json;charset=UTF-8 Content-Length: length Date: response time { "error_code": "CBC.0000", "error_msg": "success", "total_size": 3, "adject_records": [ { "amount": 100, "currency": "CNY", "customer_id": "59*****e15", "customer_name": "jiangtao_a_user2", "transfer_type": "0", "apply_scene": null, "received_time": "2017-09-05T07:11:33Z", "measure_id": 3 }, { "amount": 100, "currency": "CNY", "customer_id": "59*****e15", "customer_name": "jiangtao_a_user2", "transfer_type": "0", "apply_scene": null, "received_time": "2017-09-04T11:03:45Z", "measure_id": 3 }, { "amount": 100, "currency": "CNY", "customer_id": "59*****e15", "customer_name": "jiangtao_a_user2", "transfer_type": "0", "apply_scene": null, "received_time": "2017-09-04T09:26:04Z", "measure_id": 3 } ] }
