Capturing the Referring Member's ID

By selecting the Collect member ID check box, our system will add the referrerId query parameter to your custom URL (for example, www.yourgymwebsite.com?referrerId=8ca7fa67611d4ac695d6bbb23b207ba5).

Make sure to capture this referrerId and pass it in the prospect creation EAPI endpoint to create a link between the referring member (referrer) and newly joined prospect (referee) in M&O/DataTrak.

EAPI endpoint:POST /rest/{ClubNumber}/prospects

The following is an example of the API request body with the referrerId parameter.

CURL: