---
title: "Get the offering discount for a coupon code"
method: GET
path: "/shop/coupon-codes/{code}/offering-discounts"
tags: ["CouponCodes"]
---

# Get the offering discount for a coupon code

`GET /shop/coupon-codes/{code}/offering-discounts`

Returns the primary `OfferingDiscount` configured on the coupon
behind the given redemption `code`. Useful at point of sale when
you want to preview the offerings a coupon code applies to before
asking the customer to commit it to a basket.

The lookup is scoped to the organisation derived from the caller's
site context: if the code exists in another organisation the
endpoint returns `404`.

Requires the `CUSTOMERS_VIEW` permission.

## Response `200`

The first `OfferingDiscount` configured on the coupon backing the
given code. Returned as a singleton (not an array) because the
endpoint surfaces the primary discount eligibility for point-of-sale
UIs.

- object — Single-item envelope mixin. `allOf` this into any show response that wraps its `data` payload in an outer object; the concrete schema (e.g. `ShowUser`) adds its own `data` property with the appropriate `$ref` and keeps its own title so the SDK surface is unchanged.
  - `data` OfferingDiscount, required
    - `id` string, object-id, required — ID of the offering discount
    - `offerings` OfferingDiscountItem[], required
      - `offering_type` 'appointment' | 'package' | 'product' | 'session' | 'area_booking', required — The type of offering
      - `offering_id` string, object-id, required — The ID of the offering
      - `offering_name` string, required — The name of the offering
    - `discount_type` 'fixed_amount' | 'percentage', required — The type of discount to be applied
    - `fixed_amount` integer, required — The amount of discount to apply as an integer of the smallest unit of currency.
    - `percentage` integer, required — The percentage of discount to apply

## Other responses

- `401` — The user is unauthenticated
- `403` — The authenticated user does not have permission.
- `404` — The resource couldn't be found

---

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