Skip to main content

Get all user rewards by rewardId

GET 

/userRewards/by/reward/:rewardId

Get all user rewards by rewardId

Request

Path Parameters

    rewardId rewardIdrequired

    The unique identifier for the reward

Query Parameters

    state userRewardState

    Possible values: [pending, redeemed, cancelled]

    The state to filter by

    startDate date-time

    Search by start date since claimedAt

    endDate date-time

    Search by end date until claimedAt

    page integer

    Possible values: >= 1

    Default value: 1

    Specify the page number for pagination (default is 1).

    limit integer

    Default value: 10

    Specify the number of projects per page (default is 10, 0 gets all results).

    sortBy string

    Possible values: [createdAt, numMonthlyUsers, name]

    Field to order the results by (e.g., 'createdAt', 'numMonthlyUsers'). Default is 'createdAt'.

    sortOrder string

    Possible values: [asc, desc]

    Default value: desc

    'asc' for ascending or 'desc' for descending order. Default is 'desc'.

Responses

UserRewards retrieved successfully

Schema

  • Array [

  • expiresAt date-time
    state userRewardState (string)

    Possible values: [pending, redeemed, cancelled]

    rewardId string
    userId string
    remainingUses integer
    id userRewardId (string)

    Unique identifier for UserReward

    createdAt date-time
  • ]

Loading...