Autional Autional
API Reference GitHub autional.com →

GET /points/{user_id}/stats

Get comprehensive statistics for a user's points account: current balance, total earned/spent/expired, monthly data, points expiring within 30 days.

Points Service `bearerAuth` application/json

Request Parameters

NameInTypeRequiredDefaultExampleConstraintsDescription
user_id path string Yes User ID

Responses

StatusDescriptionSchema
200Points statistics datadto.PointStatsDetailResponse
400Bad requestgitee_com_linmes_authms_base_dto.SimpleResponse
401Unauthorizedgitee_com_linmes_authms_base_dto.SimpleResponse
404User not foundgitee_com_linmes_authms_base_dto.SimpleResponse
500Internal server errorgitee_com_linmes_authms_base_dto.SimpleResponse

Referenced Schemas

dto.PointStatsDetailResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
data dto.PointStatsResponse No
message string No
timestamp string No

dto.PointStatsResponse

FieldTypeRequiredExampleConstraintsDescription
current_balance integer No 1500
earned_this_month integer No 200
expiring_soon integer No 500
spent_this_month integer No 150
total_earned integer No 5000
total_expired integer No 100
total_spent integer No 3500
user_id string No usr_example_001

gitee_com_linmes_authms_base_dto.SimpleResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
message string No
timestamp string No