OpenapiExt
Get_balance_ext
GET
api_keyheader
X-API-Key<token>Client-app API key (third-party external API).
realmId*stringRealm ID
userId?stringUser ID (optional)
Balance retrieved successfully
application/json- response
Balance response (SDK-compatible)
balance*integerFormat
int64currency*stringexpiresAt?|Earliest upcoming pool expiry (RFC3339) within this balance's scope
(all buckets, or the client app's covered buckets for a bound key) —
MIN(points_credit_ledger.expires_at) over the same predicate as the
typed balances. null ⟺ no expiring pool balance. PRD points.md §4.1
「用户可查看即将过期的池子类型积分」; mirrors the api-points wallet
surfaces and the grant write response's expiresAt.
freePeriodicBalance*integerFormat
int64grantedBalance*integerFormat
int64registrationBalance*integerFormat
int64subscriptionBalance*integerFormat
int64topupBalance*integerFormat
int64totalConsumed*integerFormat
int64totalPaidGranted*integerTotal points granted through paid topups and subscription entitlements.
Format
int64totalRecharged*integerDeprecated compatibility alias for total_paid_granted.
Format
int64unit*stringupdatedAt*stringuserId*stringcurl -X GET 'https://example.com/api/ext/points/string/balance'Example Response
{
"balance": 0,
"currency": "string",
"expiresAt": "string",
"freePeriodicBalance": 0,
"grantedBalance": 0,
"registrationBalance": 0,
"subscriptionBalance": 0,
"topupBalance": 0,
"totalConsumed": 0,
"totalPaidGranted": 0,
"totalRecharged": 0,
"unit": "string",
"updatedAt": "string",
"userId": "string"
}