Users
The users you enroll, their balances and their rewards.
Read a user's balance
GET
/v1/users/{userId}/balanceWhat the user has, per asset: expected from open authorizations, pending until
the holding period ends, claimable now, paid out, and owed back after a refund
of a reward already paid.
Enroll a user
PUT
/v1/users/{userId}Enrolls a user, or replaces their attributes: one left out is cleared. Gave takes spend events and claims only for enrolled users.
Programs read the attributes as they stood at each purchase's time: a change applies
from when it's stored. referredBy is set once, at enrollment, to a user enrolled
before; later, leave it out or repeat it. The same request again changes nothing.
List a user's rewards
GET
/v1/users/{userId}/rewardsThe user's rewards, newest first, each as its latest webhook event describes it. With it, an app that missed webhooks can catch up.