---
title: "Update Promotion Endpoint"
method: PATCH
path: "/admin/pricing/promotions/{promotion_id}"
tags: ["internal", "Admin - Pricing"]
---

# Update Promotion Endpoint

`PATCH /admin/pricing/promotions/{promotion_id}`

## Request

- Base URL: `https://api.companydata.dk` (the document declares no server; this is the origin it was published from)
- URL: `https://api.companydata.dk/admin/pricing/promotions/{promotion_id}`
- Auth: none declared

Update a promotion.

## Path parameters

- `promotion_id` string, required

## Request body

- PromotionUpdate
  - `name` string, nullable
  - `description` string, nullable
  - `applicable_tiers` string[], nullable
  - `discount_type` 'percentage' | 'fixed_amount', nullable
  - `discount_value` integer, nullable
  - `stripe_coupon_id` string, nullable
  - `starts_at` string, date-time, nullable
  - `ends_at` string, date-time, nullable
  - `max_uses` integer, nullable
  - `promo_code` string, nullable
  - `is_active` boolean, nullable

## Response `200`

Successful Response

- PromotionResponse
  - `promotion` Promotion, required: Time-limited promotional pricing.
    - `promotion_id` string, required
    - `name` string, required
    - `description` string, nullable
    - `applicable_tiers` string[]
    - `discount_type` 'percentage' | 'fixed_amount'
    - `discount_value` integer, required
    - `stripe_coupon_id` string, nullable
    - `starts_at` string, date-time, required
    - `ends_at` string, date-time, required
    - `max_uses` integer, nullable
    - `current_uses` integer
    - `promo_code` string, nullable
    - `is_active` boolean
    - `created_at` string, date-time
    - `updated_at` string, date-time

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/companydata/apis/companydata-dk-api.md) · [All operations](https://skmtc.dev/companydata/apis/companydata-dk-api/llms.txt) · [OpenAPI document](https://skmtc.dev/companydata/apis/companydata-dk-api/revisions/1cc6c361ae64?raw)
