---
title: "Get a single discount"
method: GET
path: "/v1/discounts/{discount_id}"
tags: ["Discount codes"]
---

# Get a single discount

`GET /v1/discounts/{discount_id}`

## Request

- Base URL: `https://api.tickettailor.com`
- URL: `https://api.tickettailor.com/v1/discounts/{discount_id}`
- Auth: HTTP basic
- TypeScript: <https://skmtc.dev/tickettailor/apis/ticket-tailor-api/docs/v1/discounts/:discount_id/get.ts> (a function with typed inputs; its response is checked against the schema)

Returns existing discount by ID

## Path parameters

- `discount_id` string, required

## Response `200`

Successfully returned the discount

- DiscountResponse
  - `object` string
  - `id` string: A unique identifier for the discount
  - `booking_fee` integer, nullable: Booking fee amount in cents. Could be null.
  - `booking_fee_percent` integer, nullable: Percent of the booking fee. Could be null.
  - `code` string: Discount code
  - `expires` object, nullable: Discount code's expiry date
    - `date` string: ISO-8601 date for the start of the event
    - `formatted` string: A formatted date string for the start of the event
    - `iso` string: ISO-8601 date and time for the start of the event
    - `time` string: Time for the start of the event
    - `timezone` string: Timezone offset for the start of the event
    - `unix` integer: Unix timestamp for the start of the event
  - `max_redemptions` integer, nullable: The maximum number of times this discount can be used.
  - `name` string: A descriptive name given to the discount
  - `price` integer, nullable: Price in cents. Could be null.
  - `price_percent` integer, nullable: Percent of the price. Could be null.
  - `ticket_types` string[]: An array of associated ticket types.
  - `products` string[]: An array of associated products.
  - `times_redeemed` integer, nullable: The number of times that the discount was used
  - `type` 'fixed_amount' | 'percentage': Type of discount. Either a fixed amount or a percentage

## Other responses

- `default`: Error schema

---

[API](https://skmtc.dev/tickettailor/apis/ticket-tailor-api.md) - [All operations](https://skmtc.dev/tickettailor/apis/ticket-tailor-api/llms.txt) - [OpenAPI document](https://skmtc.dev/tickettailor/apis/ticket-tailor-api/revisions/b10f60afda54?raw)
