---
title: "Validate Discount Code"
method: POST
path: "/api/v1/discount-codes/validate"
tags: ["Discount Codes"]
---

# Validate Discount Code

`POST /api/v1/discount-codes/validate`

## Request

- Base URL: `https://api.compteam.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api.compteam.io/api/v1/discount-codes/validate`
- Auth: HTTP bearer

## Request body

- DiscountCodeValidation
  - `code` string, required
  - `category` 'membership' | 'gear' | 'seminar', required
  - `target_ids` string[]
  - `gross_amount` union, required
    - number
    - string
  - `currency` string, required
  - `existing_discount_amount` union
    - number
    - string

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/compteam/apis/c-team-api.md) · [All operations](https://skmtc.dev/compteam/apis/c-team-api/llms.txt) · [OpenAPI document](https://skmtc.dev/compteam/apis/c-team-api/revisions/4bd27c892655?raw)
