A AuthMS API Wiki API Reference iam.tianv.com →

GET /billing/credit-transactions/{tenant_id}

分页查询租户的信用交易明细(复式记账,仅 INSERT,不可修改删除)。支持按交易来源过滤。参考:GAAP/IFRS (Double-Entry Accounting Principles)。

计费服务 `bearerAuth` application/json

Request Parameters

NameInTypeRequiredDefaultExampleConstraintsDescription
tenant_id path string Yes 租户ID
page query integer No 1 页码
page_size query integer No 20 每页条数
source query string No 交易来源 (proration/refund/promo/manual_adjust)

Responses

StatusDescriptionSchema
200信用交易记录查询成功dto.CreditTransactionListResponse
400请求参数错误object
401未授权object
500服务器内部错误object

Referenced Schemas

dto.CreditTransactionListResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
items array of

See dto.CreditTransactionResponse

No 统一使用 items
message string No
pagination object No 分页信息(嵌套对象)
timestamp string No
total integer No 总条数(平铺,便于直接读取)

dto.CreditTransactionResponse

FieldTypeRequiredExampleConstraintsDescription
amount number No 50
balance number No 150
created_at string No 2026-05-12T10:00:00Z
id string No ctr_001
remark string No 套餐降级按比例信用
source string No proration
source_id string No sub_xyz789
tenant_id string No tnt_xyz789
type string No credit

gitee_com_linmes_authms_base_dto.PageInfo

FieldTypeRequiredExampleConstraintsDescription
has_next boolean No HasNext indicates whether there is a next page
has_prev boolean No HasPrev indicates whether there is a previous page
page integer No Page is the current page number (1-based)
page_size integer No PageSize is the number of items per page
total integer No Total is the total number of items across all pages
total_pages integer No TotalPages is the total number of pages