---
title: "Use a referral code for the authenticated user"
method: PATCH
path: "/points/referral-code/use"
tags: ["points"]
---

# Use a referral code for the authenticated user

`PATCH /points/referral-code/use`

Uses a referral code for the authenticated user. The code must be valid and not already used.

## Request body

- UseReferralCodeDto
  - `code` string, required — Referral code
  - `chainId` number — Chain ID

## Response `200`

Referral code used successfully

## Other responses

- `401` — Unauthorized
- `404` — Referral code not found

---

[API](https://skmtc.dev/dre/apis/dre-api.md) · [All operations](https://skmtc.dev/dre/apis/dre-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/dre/dre-api/revisions/5d14beb9482b/schema)
