get
https://beta.froogal.in/api/referral/v1/user/profile
Intended to fetch details about a specific user's profile in relation to a referral program. The API can retrieve additional context such as brandId and merchantAccessToken from the provided bearer token. It then validates the provided programId against the customer profile. If the programId is not specified in the request, it defaults to fetching the first active program associated with the brand. Subsequently, it retrieves the user's success and pending referral counts, and ensures the existence of a program referrer. It compiles these details into a structured userInfo array, which includes the user's name, referral code, referrer's name, success referral count, pending referral count, and total referral count.
