---
title: "Create a referral"
method: POST
path: "/referrals"
tags: ["Referrals"]
---

# Create a referral

`POST /referrals`

## Request

- Base URL: `https://api.presscart.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.presscart.com/referrals`
- Auth: HTTP bearer

Refer the signed-in user's team to the team that owns the referral code.

## Request body

- object
  - `referral_code` string, required

## Response `201`

Referral created successfully

- Referral
  - `id` string, uuid, required
  - `referrer_id` string, uuid, nullable, required
  - `referee_id` string, uuid, nullable, required
  - `referrer_team_id` string, uuid, nullable, required
  - `referee_team_id` string, uuid, nullable, required
  - `registration_date` union, required
    - string, nullable
    - string
    - unknown
  - `created_at` union, required
    - string, nullable
    - string
    - unknown
  - `updated_at` union, required
    - string, nullable
    - string
    - unknown
  - `deleted_at` union, required
    - string, nullable
    - string
    - unknown

---

[API](https://skmtc.dev/presscart/apis/presscart-prod-api.md) · [All operations](https://skmtc.dev/presscart/apis/presscart-prod-api/llms.txt) · [OpenAPI document](https://skmtc.dev/presscart/apis/presscart-prod-api/revisions/2154581d845e?raw)
