---
title: "Update coupon"
method: PUT
path: "/coupons/{id}"
tags: ["Coupons"]
---

# Update coupon

`PUT /coupons/{id}`

Use when changing coupon config (e.g. value, validity, or usage limits).

## Path parameters

- `id` string, required

## Request body

- UpdateCouponRequest
  - `metadata` object
  - `name` string

## Response `200`

OK

- CouponResponse
  - `amount_off` string
  - `cadence` 'once' | 'repeated' | 'forever'
  - `created_at` string, date-time
  - `created_by` string
  - `currency` string
  - `duration_in_periods` integer
  - `environment_id` string
  - `id` string
  - `max_redemptions` integer
  - `metadata` object
  - `name` string
  - `percentage_off` string
  - `redeem_after` string
  - `redeem_before` string
  - `rules` object
  - `status` 'published' | 'deleted' | 'archived'
  - `tenant_id` string
  - `total_redemptions` integer
  - `type` 'fixed' | 'percentage'
  - `updated_at` string, date-time
  - `updated_by` string

## Other responses

- `400` — Invalid request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Resource not found
- `500` — Server error

## Changes

- **2026-05-18** `8ec2edea6b20` — 10 warning
  - removed the optional property `details` from the response with the `400` status
  - removed the optional property `details` from the response with the `401` status
  - removed the optional property `details` from the response with the `403` status
  - removed the optional property `details` from the response with the `404` status
  - …6 more
- **2026-04-06** `95af41a12111` — 10 warning, 20 info
  - removed the optional property `error` from the response with the `400` status
  - removed the optional property `error` from the response with the `401` status
  - removed the optional property `error` from the response with the `403` status
  - removed the optional property `error` from the response with the `404` status
  - …26 more

[Change history](https://skmtc.dev/flexprice/apis/flexprice-api/changes/coupons/:id/put.md)

---

[API](https://skmtc.dev/flexprice/apis/flexprice-api.md) · [All operations](https://skmtc.dev/flexprice/apis/flexprice-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/flexprice/flexprice-api/revisions/2a40f94de722/schema)
