Referral page
Last updated
Last updated
Creating a referral page for your mobile app involves using several Perkville API endpoints. Below are the components you'll need to consider when building your referral page.
The details of the referral offer are accessible via the Promotion endpoint. This endpoint will provide you with the information about the offers available for sharing, which can be displayed on your referral page. Promotions are location specific. Therefore, you will want to filter this endpoint based on the customer's currently selected location using the location
parameter. If your app does not support selecting a location then you may use a Connection's home location.
The Connection endpoint provides the referral_offer_url
that members will share.
If you want to submit referrals on behalf of members, you can do so using the Referrals endpoint. At the bottom of the referral page, you can include a form that captures necessary information for submitting a referral.