put
https://api.froogal.ai/loyalty//cards//signup
Updates loyalty card sign-up information. First, it ensures the presence of a card number if the loyalty card type is secondary and that the provided card number exists in the secondary user loyalty records. The function then retrieves the user associated with the request and checks for their existence. If the loyalty card type is secondary, it queries looks for an active secondary loyalty record matching the user ID, card number, loyalty ID, loyalty card ID, and active status. If no active secondary loyalty is found, it returns an error message. Finally, it does the update operation.
