---
title: "Gets discount code details."
method: GET
path: "/api/discount/{code}"
tags: ["Premium"]
---

# Gets discount code details.

`GET /api/discount/{code}`

## Request

- Base URL: `https://sky.coflnet.com` (the document declares no server; this is the origin it was published from)
- URL: `https://sky.coflnet.com/api/discount/{code}`
- Auth: none declared

## Path parameters

- `code` string, required

## Query parameters

- `isSubscription` boolean
- `provider` string

## Response `200`

OK

- ValidatedDiscount
  - `code` string, nullable
  - `id` string, nullable
  - `amount` number, double, required
  - `periodAmounts` object, nullable
  - `amountType` string, nullable
  - `name` string, nullable
  - `isValid` boolean, required
  - `isLimitedToProducts` boolean, required
  - `isSubscriptionOnly` boolean, required
  - `duration` string, nullable
  - `durationInMonths` integer, required

## Changes

- **2026-11-17** `6d0f7da6fff7`: 5 info
  - added the new optional `query` request parameter `isSubscription`
  - added the new optional `query` request parameter `provider`
  - added the optional property `periodAmounts` to the response with the `200` status (media type: text/plain)
  - added the optional property `periodAmounts` to the response with the `200` status (media type: application/json)
  - …1 more
- **2026-08-04** `41f7cdd4406b`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/coflnet/apis/skyapi/changes/api/discount/:code/get.md)

---

[API](https://skmtc.dev/coflnet/apis/skyapi.md) - [All operations](https://skmtc.dev/coflnet/apis/skyapi/llms.txt) - [OpenAPI document](https://skmtc.dev/coflnet/apis/skyapi/revisions/c787372dc7a2?raw)
