GET /billing/credit-transactions/{tenant_id}
Paginate the tenant's credit transaction details (double-entry bookkeeping, INSERT only, cannot be modified or deleted). Supports filtering by transaction source. Reference: GAAP/IFRS (Double-Entry Accounting Principles).
Billing Service `bearerAuth` application/json
Request Parameters
| Name | In | Type | Required | Default | Example | Constraints | Description |
tenant_id |
path |
string |
Yes |
|
|
|
Tenant ID |
page |
query |
integer |
No |
1 |
|
|
Page number |
page_size |
query |
integer |
No |
20 |
|
|
Items per page |
source |
query |
string |
No |
|
|
|
Transaction source (proration/refund/promo/manual_adjust) |
Responses
| Status | Description | Schema |
| 200 | Credit transaction query successful | dto.CreditTransactionListResponse |
| 400 | Invalid request parameters | object |
| 401 | Unauthorized | object |
| 500 | Internal server error | object |
Referenced Schemas
dto.CreditTransactionListResponse
| Field | Type | Required | Example | Constraints | Description |
code |
integer |
No |
|
|
|
items |
array of
See dto.CreditTransactionResponse |
No |
|
|
Use items uniformly |
message |
string |
No |
|
|
|
pagination |
object |
No |
|
|
Pagination information (nested object) |
timestamp |
string |
No |
|
|
|
total |
integer |
No |
|
|
Total count (flattened for direct reading) |
dto.CreditTransactionResponse
| Field | Type | Required | Example | Constraints | Description |
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 |
Plan downgrade prorated credit |
|
|
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
| Field | Type | Required | Example | Constraints | Description |
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 |