Retrieving Rewards for Program Memberships
Request Parameters
Example Request
curl -X GET 'https://loyalty.hang.xyz/partner-api/v2/program-memberships/12345/rewards' \
-H 'X-API-KEY: YOUR_API_KEY'Response
Example Response
{
"rewards": [
{
"uuid": "reward-uuid-123",
"name": "10% Discount",
"priority": 1,
"description": "Enjoy 10% off some item",
"redemption_instruction": "Use this code at checkout",
"redemption_method": "code",
"redemption_count": 10,
"interval": 30,
"limit": 100,
"start_date": 1633046400,
"end_date": 1635648400,
"reward_type": "discount_percent_based",
"reward_value": 10,
"maximum_discount_value": 15.25,
"last_redeemed_at": 1633050000,
"image_url": "https://yourdomain.com/images/reward.jpg",
"video_url": "https://yourdomain.com/images/reward.mp4",
"terms_and_conditions": "Cannot be combined with other rewards. Only valid ...",
"achievement_id": 1,
"can_be_combined_with_other_rewards": false,
"minimum_purchase_amount": 12.0,
"applicable_menu_item_multi_location_ids": ["guid", "guid"],
"applicable_menu_group_multi_location_ids": ["guid", "guid"],
"minimum_quantity": 1,
"metadata": { internal_info: "anything" }
},
// More rewards
]
}
Reward Properties
Last updated