---
title: "Validate Referral Code Name"
method: POST
path: "/organization/validate/referral-code-name/{event_id}/"
tags: ["organization"]
---

# Validate Referral Code Name

`POST /organization/validate/referral-code-name/{event_id}/`

## Request

- Base URL: `https://api.myticketpartner.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.myticketpartner.com/organization/validate/referral-code-name/{event_id}/`
- Auth: none declared

Validate if a referral code name is valid (does not already exist for the event).

Path Parameters:
- event_id: The event ID to validate the referral code name against

Returns:
- Success response if the referral code name is valid (does not exist)
- Error response if the referral code name already exists or event is invalid

## Path parameters

- `event_id` integer, required

## Request body

- CheckReferralCodeNameSchema
  - `referral_code_name` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `404`: Not found
- `422`: Validation Error

## Changes

- **2026-09-03** `43ba83e1f2fe`: 2 info
  - added the optional property `detail/items/ctx` to the response with the `422` status
  - added the optional property `detail/items/input` to the response with the `422` status

[Operation history](https://skmtc.dev/myticketpartner/apis/white-labelling-booking-api/changes/organization/validate/referral-code-name/:event_id/post.md)

---

[API](https://skmtc.dev/myticketpartner/apis/white-labelling-booking-api.md) - [All operations](https://skmtc.dev/myticketpartner/apis/white-labelling-booking-api/llms.txt) - [OpenAPI document](https://skmtc.dev/myticketpartner/apis/white-labelling-booking-api/revisions/338d5dfbdf4c?raw)
