Daily Earnings
Promotions
Daily Earnings
How many tokens a customer has earned in the current 24-hour window
GET
Daily Earnings
Returns how much of the daily cap a customer has used up in their current rolling 24-hour window. Use this to show “you’ve earned X / Y today” in your UI, or to predict when a customer will hit the cap.
Query Parameters
Your unique identifier for this customer
Response
Tokens this customer has earned since their window started
Unix timestamp (seconds) when the current 24-hour window started. Add 86400 to know when it resets.
Current per-day cap (same value as
daily-cap-settings.cap)