Retrieving Rewards for Program Memberships
You can retrieve all of the rewards for a specific program membership by making a GET
request to the /v2/program-memberships/:program_membership_id/rewards
endpoint.
Request Parameters
program_membership_id
(required): The ID of the program membership for which to retrieve the rewards.
Example Request
Response
If successful, the API will return a 200 OK
status along with a JSON object containing an array of rewards associated with the specified program membership.
Example Response
Reward Properties
Each reward in the returned list will have the following properties:
uuid
: Unique identifier of the rewardname
: The name of the rewardredemption_instruction
: Instructions on how to redeem the rewardredemption_method
: Method to use for redeeming the reward (e.g., 'code', 'store_link')redemption_count
: Number of times this reward has been redeemedinterval
: How often the reward can be redeemed, in days. A value of0
indicates no limitlimit
: Maximum number of redemptions, if applicablestart_date
: Epoch time indicating when the reward becomes available for redemptionend_date
: Epoch time indicating the expiration date of the rewardreward_type
: The type of the reward (e.g., 'redemption', 'discount_percent_based')last_redeemed_at
: Epoch time indicating the last time the reward was redeemedimage_url
: URL of the reward's imageachievement_id
: ID of the achievement related to the rewardcan_be_combined_with_other_rewards
: Whether this reward can be combined with other rewardsapplicable_menu_item_multi_location_ids:
A list of all the items multi location IDs a reward applies to (used for toast merchants)applicable_menu_group_multi_location_ids:
A list of all the groups multi location IDs a reward applies to (used for toast merchants)minimum_quantity:
Integer used for the minimum number of the item/group required for a reward to be applied.metadata:
Open JSON field for any metadata you want to add to the reward
Last updated