---
title: "Add an offering discount to a coupon"
method: POST
path: "/shop/coupons/{couponId}/offering-discounts"
tags: ["Coupons"]
---

# Add an offering discount to a coupon

`POST /shop/coupons/{couponId}/offering-discounts`

This endpoint adds an offering discount to a coupon.

## Path parameters

- `couponId` string, object-id, required

## Request body

- object
  - `offerings` SchemasOffering[], required — An array of offerings which this discount applies to
    - `offering_type` 'appointment' | 'package' | 'product' | 'session' | 'area_booking' — The type of offering
    - `offering_id` string, object-id — The ID of the offering
  - `discount_type` 'fixed_amount' | 'percentage', required — The type of discount to be applied
  - `fixed_amount` integer — The amount of discount to apply as an integer of the smallest unit of currency.
  - `percentage` integer — The percentage of discount to apply

## Response `201`

The offering discount was successfully retrieved

- object
  - `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
- `422` — The request didn't pass validation

---

[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)
