List activity
GET/v1/members/{id}/activity
GET/v1/members/me/activity
Returns the member's activity, newest first. Use it for the points history screen.
Permissions: {id}: secret key with members:read. me: member token.
Guide
Points and rewardsPath parameters#
idstring (uuid)Required
Query parameters#
fromstring (date-time)RFC 3339 time. Entries created at or after it.tostring (date-time)RFC 3339 time. Entries created before it.typestringOne entry type, for exampleearn.One ofearn,bonus,redeem,adjust,reverse,expirelimitinteger1 to 100. Default 25.Min 1Max 100Default 25cursorstringnext_cursorfrom the previous page. Send the same filters with it. See Pagination.
The last two entries belong to one order: Maya spent 500 Beans on a free drip coffee, then earned 43 on what she paid for. Reading up the list, each balance_after is the one below it plus that entry's points: 265, 308, 358, 420.
Response fields#
Returns 200 with list of ActivityEntry
dataarray of ActivityEntryShow attributesActivityEntry
idstring (uuid)typestringWhat happened. See the table below. May grow.One ofearn,bonus,redeem,adjust,reverse,expirepointsintegerSigned change:62for an earn,-500for a redeem.balance_afterintegerThe member'spoints_balanceright after this entry.descriptionstringA short line you can show the guest, for exampleVisit at South CongressorFree drip coffee.order_idstring (uuid)NullableThe order that caused it, forearn,bonus,redeemandreverse.reward_idstring (uuid)NullableThe reward bought, forredeem.adjustment_reasonstringNullableForadjust:goodwill,correction,migrationorother.One ofgoodwill,correction,migration,othercreated_atstring (date-time)
has_morebooleanTrue when another page exists.next_cursorstringNullablePass ascursorto get the next page.
Error descriptions#
400Bad request
invalid_param
from or to isn't an RFC 3339 time, or type isn't an entry type.
401Unauthorized
token_expired
The member token expired. Get a new one from your server.
404Not found
member_not_found
No member with this id.
410Gone
member_deleted
The member was deleted.
Any endpoint can also return the common errors.