# Assign a reward to member This endpoint is used to assign a reward to a specific member. It requires both the reward ID and member ID, along with details about the assignment, such as the source type. Successful assignments enable businesses to track which rewards have been issued and manage member benefits effectively. Endpoint: POST /rewards/{{reward_id}}/users/{{member_id}}/assign Version: 3.0.0 Security: ## Path parameters: - `reward_id` (string, required) Enter the unique identifier for the reward being assigned. - `member_id` (string, required) Enter the user ID of the member to whom the reward is awarded. ## Request fields (application/json): - `reward_id` (string, required) Enter the unique identifier for the reward being assigned. Example: "Reward1" - `user_id` (string, required) Enter the user ID of the member to whom the reward is awarded. Example: "XYZ@annexcloud.com" - `issuance_details` (object) Enter the details about how the reward was issued. - `issuance_details.source_type` (string) Enter the method by which the reward was awarded. Possible values include "manual" and "journey". Example: "manual" - `issuance_details.source_details` (object) Enter detailed information about the reward assignment. - `issuance_details.source_details.source_id` (string) Enter the unique identifier for the source of the reward issuance. Example: "ADM-789" - `issuance_details.source_details.source_name` (string) Enter the name associated with the source of the reward issuance. Example: "John Doe" - `issuance_details.source_details.notes` (string) Enter any additional information or comments about the assignment. Example: "Test rewards" ## Response 200 fields (application/json): - `site_id` (string) Displays the unique identifier of the site where the reward was assigned. Example: "95233740" - `status` (string) Displays the status of the reward assignment operation. Example: "Success" - `message` (string) Displays a descriptive message confirming the assignment status. Example: "Reward awarded successfully" - `assign_id` (string) Displays the unique identifier for the assignment operation. Example: "cd96b234-d3e0-11ef-a871-026bc940cf4b" - `reward` (object) Displays details of the awarded reward. - `reward.reward_id` (string) Displays the unique identifier of the awarded reward. Example: "Reward1" - `reward.reward_name` (string) Displays the name of the awarded reward. Example: "Test Reward 1" - `reward.reward_category_id` (string) Displays the unique identifier for the reward’s category. Example: "543" - `reward.reward_category_name` (string) Displays the name of the reward’s category. Example: "Sports Shoes" - `reward.user_id` (string) Displays the user ID of the member to whom the reward was awarded. Example: "xyz@annexcloud.com" - `reward.member_reward_status` (string) Displays the updated status of the reward for the member. Example: "Used" - `reward.benefit_details` (object) Displays the benefit details associated with the reward. - `reward.benefit_details.products` (array) Displays a list of product IDs the reward applies to. Example: ["P1","P2"] - `reward.benefit_details.discount_amount` (string) Displays the discount value offered by the reward. Example: "10.00" - `reward.benefit_details.reward_code` (string) Displays the code assigned to the member, if the reward requires a code. Example: "BIRTHDAY" - `reward.benefit_details.code_expiration` (string) Displays the code expiry duration in YYYY-MM-DD HH:mm:ssZ format. Example: "2024-01-01T00:00:00Z" - `reward.issuance_details` (object) Displays detailed information about the reward issuance. - `reward.issuance_details.issue_date` (string) Displays the date and time when the reward was issued. Example: "01/16/2025 13:36:34" - `reward.issuance_details.debit_points` (integer) Displays the number of points deducted (if any) to issue the reward. Example: 5 - `reward.issuance_details.source_type` (string) Displays the method by which the reward was issued. Example: "Manual" - `reward.issuance_details.source_details` (object) Displays additional details about the issuance. - `reward.issuance_details.source_details.source_id` (string) Displays the unique identifier for the source of the reward issuance. If the reward is triggered via a journey, this field displays the journey ID. If issued manually, it displays the admin user ID. Example: "ADM-789" - `reward.issuance_details.source_details.source_name` (string) Displays the name associated with the source of the reward issuance. If the reward is triggered via a journey, this field displays the journey name. If issued manually, it displays the admin user name. Example: "John Doe" - `reward.issuance_details.source_details.notes` (string) Displays any additional comments or information about the assignment. Example: "Test rewards"