---
title: "Get Discount"
method: GET
path: "/api/v1/discounts/{id}"
tags: ["Discounts"]
---

# Get Discount

`GET /api/v1/discounts/{id}`

## Path parameters

- `id` string, required

## Response `200`

Successful response

- object
  - `discount` union, required
    - ForeverDiscountClientSelectSchema
      - `id` string, required
      - `createdAt` integer, required — Epoch milliseconds.
      - `updatedAt` integer, required — Epoch milliseconds.
      - `livemode` boolean, required
      - `organizationId` string, required
      - `name` string, required
      - `code` string, required — The discount code, must be unique and between 3 and 20 characters.
      - `amount` integer, required — A positive integer
      - `amountType` 'percent' | 'fixed', required
      - `active` boolean, required
      - `duration` 'forever', required
      - `numberOfPayments` unknown
    - NumberOfPaymentsDiscountClientSelectSchema
      - `id` string, required
      - `createdAt` integer, required — Epoch milliseconds.
      - `updatedAt` integer, required — Epoch milliseconds.
      - `livemode` boolean, required
      - `organizationId` string, required
      - `name` string, required
      - `code` string, required — The discount code, must be unique and between 3 and 20 characters.
      - `amount` integer, required — A positive integer
      - `amountType` 'percent' | 'fixed', required
      - `active` boolean, required
      - `duration` 'number_of_payments', required
      - `numberOfPayments` integer, required — A positive integer
    - DefaultDiscountClientSelectSchema
      - `id` string, required
      - `createdAt` integer, required — Epoch milliseconds.
      - `updatedAt` integer, required — Epoch milliseconds.
      - `livemode` boolean, required
      - `organizationId` string, required
      - `name` string, required
      - `code` string, required — The discount code, must be unique and between 3 and 20 characters.
      - `amount` integer, required — A positive integer
      - `amountType` 'percent' | 'fixed', required
      - `active` boolean, required
      - `duration` 'once', required
      - `numberOfPayments` unknown

## Other responses

- `400` — Invalid input data
- `401` — Authorization not provided
- `403` — Insufficient access
- `404` — Not found
- `500` — Internal server error

## Changes

- **2025-10-18** `a1eeb4fac4d6` — 7 info
  - added the non-success response with the status `400`
  - added the non-success response with the status `401`
  - added the non-success response with the status `403`
  - added the non-success response with the status `404`
  - …3 more
- **2025-04-28** `00982324965d` — 2 info
  - added `subschema #1, subschema #2, subschema #3` to the `discount` response property `anyOf` list for the response status `200`
  - removed `subschema #1, subschema #2, subschema #3` from the `discount` response property `anyOf` list for the response status `200`
- **2025-03-24** `085889adb3c1` — 2 info
  - added `subschema #1, subschema #2, subschema #3` to the `discount` response property `anyOf` list for the response status `200`
  - removed `subschema #1, subschema #2, subschema #3` from the `discount` response property `anyOf` list for the response status `200`
- **2025-03-13** `713a8ec048a7` — 2 info
  - added `subschema #1, subschema #2, subschema #3` to the `discount` response property `anyOf` list for the response status `200`
  - removed `subschema #1, subschema #2, subschema #3` from the `discount` response property `anyOf` list for the response status `200`

[Change history](https://skmtc.dev/flowglad/apis/flowglad-api/changes/api/v1/discounts/:id/get.md)

---

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