获取收支明细列表 | 大装置帮助中心
跳到主要内容

获取收支明细列表

接口描述

GET /v1/incomeStatements 获取收支明细列表

请求头(Request Header)

参考认证(authentication)

请求参数(Request Parameters)

名称位置类型必须描述
filterquerystringfalse筛选条件 支持计费账号、流水编号、订单/账单号,如:billing_account_id= xxx AND id = yyy AND order_bill_id= zzz
order_byquerystringfalse排序
page_sizequeryinteger(int32)false分页大小
page_tokenquerystringfalse分页

请求体(Request Body)

请求示例(Request Example)

curl --request GET \
--url https://finance.sensecoreapi.dev/boss/account/v1/incomeStatements \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {access-token}'

响应参数(Response Parameters)

StatusMeaningDescriptionSchema
200OKOKListIncomeStatementsResponse

响应示例(Response Example)

200 Response

{
"income_statements": [
{
"id": "string",
"trade_time": "2019-08-24T14:15:22Z",
"trade_type": "RECHARGE",
"trade_channel": "BALANCE",
"trade_channel_id": "string",
"order_bill_id": "string",
"adjust_amount": 0,
"balance": 0,
"comment": "string",
"trade_direction": "TD_IN",
"billing_account_id": "string",
"billing_account_display_name": "string"
}
],
"next_page_token": "string",
"total_size": 0,
"page_number": 0,
"page_size": 0
}

数据结构(Schemas)

IncomeStatement

名称类型必须限制描述
idstringfalsenone流水编号
trade_timestring(date-time)falsenone交易时间
trade_typestring(enum)falsenone交易类型
trade_channelstring(enum)falsenone交易渠道
trade_channel_idstringfalsenone渠道流水号
order_bill_idstringfalsenone订单号/账单号
adjust_amountnumber(double)falsenone变动金额
balancenumber(double)falsenone账户余额
commentstringfalsenone备注
trade_directionstring(enum)falsenone收支类型 TD_IN: 收入, TD_OUT: 支出
billing_account_idstringfalsenone计费账户ID
billing_account_display_namestringfalsenone计费账户名称

trade_type Enumerated Values

枚举值
RECHARGE
CONSUMPTION
REFUND
ADJUST
WITHDRAW
BALANCE
OFFLINE_REMITTANCE
THIRD_PARTY_ACCOUNT
TD_IN
TD_OUT

ListIncomeStatementsResponse

名称类型必须限制描述
income_statements[IncomeStatement]falsenone收支明细记录
next_page_tokenstringfalsenone下一页 more results in the list
total_sizeinteger(int32)falsenone总页数
page_numberinteger(int32)falsenone页码
page_sizeinteger(int32)falsenone分页大小