---
title: "Get coupon by code"
method: GET
path: "/coupons/code/{code}"
tags: ["Coupons"]
---

# Get coupon by code

`GET /coupons/code/{code}`

Use when resolving a coupon by promo code (e.g. checkout or validation).

## Path parameters

- `code` string, required

## Response `200`

OK

- CouponResponse
  - `amount_off` string
  - `cadence` 'once' | 'repeated' | 'forever'
  - `coupon_code` string
  - `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
- `404` — Resource not found
- `500` — Server error

## Changes

- **2026-07-15** `f8ecf435d25d` — 3 warning
  - added the new `not_implemented` enum value to the `code` response property for the response status `400`
  - added the new `not_implemented` enum value to the `code` response property for the response status `404`
  - added the new `not_implemented` enum value to the `code` response property for the response status `500`
- **2026-07-09** `7d57386313c7` — 1 breaking, 3 warning
  - the `status` response's property type/format changed from ``/`` to `string`/`` for status `200`
  - added the new `archived` enum value to the `status` response property for the response status `200`
  - added the new `deleted` enum value to the `status` response property for the response status `200`
  - added the new `published` enum value to the `status` response property for the response status `200`
- **2026-07-09** `4b1a811c4179` — 3 breaking, 3 info
  - the `created_at` response's property type/format changed from `string`/`date-time` to `string`/`` for status `200`
  - the `status` response's property type/format changed from `string`/`` to ``/`` for status `200`
  - the `updated_at` response's property type/format changed from `string`/`date-time` to `string`/`` for status `200`
  - removed the `archived` enum value from the `status` response property for the response status `200`
  - …2 more
- **2026-06-16** `257509e66883` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/flexprice/apis/flexprice-api/changes/coupons/code/:code/get.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/9cd0dab91f5c/schema)
