---
title: "Archive a promotion code"
method: POST
path: "/coupons/promotion-codes/{id}/archive"
tags: ["Coupons"]
---

# Archive a promotion code

`POST /coupons/promotion-codes/{id}/archive`

## Request

- Base URL: `https://api.cavuno.com/v1`
- URL: `https://api.cavuno.com/v1/coupons/promotion-codes/{id}/archive`
- Auth: HTTP bearer

## Path parameters

- `id` string, required: The promotion code id.

## Response `200`

Archived promotion code.

- PromotionCode
  - `id` string, required
  - `object` 'promotion_code', required
  - `code` string, required
  - `couponId` string, required
  - `active` boolean, required
  - `created` string, required

## Other responses

- `default`: An error. Every non-2xx response uses the same envelope; see the Errors section of the introduction.

## Changes

- **2026-10-19** `c34152c38176`: 1 info
  - added the optional property `error/upgrade` to the response with the `default` status

[Operation history](https://skmtc.dev/cavuno/apis/cavuno-v1-rest-api/changes/coupons/promotion-codes/:id/archive/post.md)

---

[API](https://skmtc.dev/cavuno/apis/cavuno-v1-rest-api.md) · [All operations](https://skmtc.dev/cavuno/apis/cavuno-v1-rest-api/llms.txt) · [OpenAPI document](https://skmtc.dev/cavuno/apis/cavuno-v1-rest-api/revisions/d5974dabff14?raw)
