Skip to main content

Get Points Balance

Authentication Required: Any authenticated user
GET /api/points/balance
string
Learner ID to get balance for (required for PARENT/ADMIN, defaults to authenticated user for LEARNER)

Authorization

  • LEARNER: Can only access their own balance
  • PARENT: Can access their children’s balances with learnerId param
  • ADMIN: Can access any learner’s balance

Response

Response Example

Error Codes

  • 400 - learnerId required
  • 403 - Forbidden

Get Points History

Authentication Required: Any authenticated user
GET /api/points/history
string
Learner ID to get history for (required for PARENT/ADMIN, defaults to authenticated user for LEARNER)
number
Maximum number of transactions to return (default: 50)

Authorization

Same as Get Points Balance.

Response

array
Array of point transaction records
Response Example

Error Codes

  • 400 - learnerId required
  • 403 - Forbidden

Get Current Balance (Simplified)

Authentication Required: Any authenticated user
GET /api/points
Returns the points balance for the authenticated user.

Response

Error Codes

  • 401 - Unauthorized

Points Source Types

Common source types in the points system:
  • QUIZ_CORRECT - Points earned from correct quiz answers
  • REWARD_SAVE - Points delegated to a reward savings goal
  • REWARD_REDEMPTION - Points used to redeem a reward
  • DOUBLE_OR_LOSS_DEDUCTION - Points deducted from wrong answers in double-or-loss mode
  • ADMIN_ADJUSTMENT - Manual adjustment by an administrator
All point transactions are immutable and stored with a complete audit trail including timestamps, source information, and running balance.