Skip to main content

Get all rewardTypes

GET 

/rewardTypes

Get all rewardTypes

Request

Query Parameters

    name string

    Search for rewardTypes by name

    startDate date-time

    Search by start date

    endDate date-time

    Search by end date

    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 rewardTypes per page (default is 10, 0 gets all results).

    sortBy string

    Possible values: [createdAt, name, category]

    Field to order the results by, default is 'createdAt'.

    sortOrder string

    Possible values: [asc, desc]

    Default value: desc

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

Responses

rewardTypes retrieved successfully

Schema

  • Array [

  • data stringrequired

    JSON string containing metadata, actions, and functions associated with the reward.

    singleUse boolean

    Boolean to specify if the rewardType can reeemed once.

    thumbnail stringnullable

    URL of the thumbnail for the reward type.

    description string

    Detailed description of the reward type.

    createdAt date-time

    The date and time when the reward type was created.

    title stringrequired

    Title of the reward type.

    id rewardTypeId (string)

    Unique identifier for RewardType

    name stringrequired

    Name of the reward type.

    category stringrequired

    Category of the reward type.

  • ]

Loading...