Trying to build out a loyalty program for my application and have run into a major issue with loyalty accounts.
Once an account is created with a phone number and customerID there is no way to update the phone number associated with that account.
workflow - a user enrolls a customer in loyalty with their customerID and phone number. The customer has a phone number change and when I call search loyalty account based on the customer new phone number it finds no account. If I then wanted to enroll the customer to a new account and transfer points manually I receive a square error saying that customerID already has a loyalty account associated with a different phone number.
Without an ability to update or delete a loyalty account, loyalty accounts are stuck in this state of being created as is forever and you cannot create a new account using the same customerID causing loyalty to be unusable for customers who have had a phone number change.
Seems a simple solution to this would be if square were to link the customer objects phone number parameter to update the loyalty account phone number when customerID is also associated then it would automagically update the loyalty account phone number and seemlessly work without creating issue for anything already in place.