> ## Documentation Index
> Fetch the complete documentation index at: https://minestorev3-api.ci.batlify.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Referrals

> Using referrals

## Example of usage

```ts theme={null}
import { referrals } from '@batlify/mscms-api'

async function use(code: string) {
    await referrals.apply(code)
        .then((result) => {

            // Returns apply result (success/failed)
            console.log(result)
        })
        .catch((e) => {

            // Applying referral failed
            console.log("Oops! Something went wrong :/", e)
        })
}

async function unUse() {
    await referrals.remove()
        .then((result) => {

            // Returns remove result (success/failed)
            console.log(result)
        })
        .catch((e) => {

            // Removing referral failed
            console.log("Oops! Something went wrong :/", e)
        })
}
```
