WalletD developers
Rewards and loyalty

List a user's reward grants, newest first

A user's reward grants, newest first, each naming the rule that made it and the transaction it credited.

GET/v1/users/{userId}/rewards

A user's reward grants, newest first, each naming the rule that made it and the transaction it credited. Requires rewards:read; a user token may read only itself (forbidden, 403) and an unknown id gives user_not_found (404). limit is clamped to 1-100.

Authorization

bearerAuth
AuthorizationBearer <token>

A tenant API key (sk_{env}_{id}_{secret}), a wallet user token, or an IdP access token. Which principal the credential resolves to decides the scopes it carries; see the authentication guide.

In: header

Path Parameters

userId*string
Formatuuid

Query Parameters

limit?integer
Range1 <= value <= 100
Default50

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

curl -X GET "https://example.com/v1/users/497f6eca-6276-4993-bfeb-53cbbbba6f08/rewards"
[  {    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "rule_id": "728c1541-d6d1-4290-9a53-cdf01dd32d60",    "kind": "string",    "user_id": "a169451c-8525-4352-b8ca-070dd449a1a5",    "source_txn": "935b1748-a1db-4a2a-a331-a24ac858b260",    "amount": 0,    "txn_id": "3dd6ecc9-94bf-4fc7-98ae-cdbe5b6f62e4",    "created_at": "2019-08-24T14:15:22Z"  }]