---
title: "Deactivate Promo Code"
method: POST
path: "/api/v1/admin/promo/codes/{code}/deactivate"
tags: ["Admin - Promo Codes", "Admin - Promo Codes"]
---

# Deactivate Promo Code

`POST /api/v1/admin/promo/codes/{code}/deactivate`

## Request

- Base URL: `https://api.gemstoneaiapp.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.gemstoneaiapp.com/api/v1/admin/promo/codes/{code}/deactivate`
- Auth: none declared

Kill a code. Already-granted premium is untouched.

## Path parameters

- `code` string, required

## Headers

- `x-admin-key` string, nullable

## Response `200`

Successful Response

- PromoCodeResponse
  - `id` integer, required
  - `code` string, required
  - `campaign` string, nullable
  - `note` string, nullable
  - `premium_days` integer, nullable
  - `bonus_scans` integer, required
  - `max_redemptions` integer, required
  - `redemption_count` integer, required
  - `restricted_email` string, nullable
  - `expires_at` string, date-time, nullable
  - `is_active` boolean, required
  - `created_at` string, date-time, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/gemstoneaiapp/apis/gemstoneai-api.md) · [All operations](https://skmtc.dev/gemstoneaiapp/apis/gemstoneai-api/llms.txt) · [OpenAPI document](https://skmtc.dev/gemstoneaiapp/apis/gemstoneai-api/revisions/fcb441f55161?raw)
