> ## Documentation Index
> Fetch the complete documentation index at: https://gnosispay-feat-changelog-feature.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Get or create user's referral code

> Returns existing referral code or generates a new one if none exists.

The referral code can be used in two formats:

- For OG NFT holders: `https://gnosispay.com/oginvite?rcc=${referrerCode}&utm_source=referral&utm_campaign=${userId}`
- For non-OG NFT holders: `https://gnosispay.com/nonoginvite?rcc=${referrerCode}&utm_source=referral&utm_campaign=${userId}`

[Learn more about how the referral program works](https://help.gnosispay.com/en/articles/9278537-gnosis-pay-referral-program-faq)


