
How to implement Name Sharing
Call the Referee API
Call the Referee API passing parameters about the customer (if you know any details) and touchpoint. See the reference instructions for the Referee API.
Handle the response
Mention Me returns a URL to the web view and a piece of text which you can use to create a call to action. This would typically say “Been referred by a friend?” and can be edited via the Mention Me platform.If we return an HTTP error code (e.g. 404) you should not show anything - name sharing is not available for that customer, your account, or that touchpoint.
Return to app
When the user has finished entering the name of a referrer, they may be asked to register their own email address to earn a reward or the promise of one. After this they will close the web view to return to the app.If you can support it, we can enable an app-specific deep link call-to-action to go back to your app. Alternatively, the customer can close the web view to return to your app.For some use cases, we also offer a Javascript postMessage to return the customer from this journey. To learn more, see our instructions on postMessage.