---
title: "Changes to Create a coupon"
method: POST
path: "/coupons.json"
---

# Changes to Create a coupon

`POST /coupons.json`

> Every recorded change to this endpoint, newest first.

## Timeline

Changed in 4 of 32 revisions.

- **2022-05-06** (v2) `c0668e260bdb` — 2 breaking, 14 info
- **2022-05-06** (v2) `e09b5fb757b2` — 5 info
- **2022-05-05** (v2) `38fea9f46439` — 1 info
- **2022-05-05** (v2) `95c52cb13f9a` — 1 breaking

## Changes

- **2022-05-06** (v2) `c0668e260bdb` — 2 breaking, 14 info
  - the request property `coupon/duration` became required
  - the response's body type changed from `array` to `object` for status `201`
  - added the optional property `all_new_customers` to the response with the `201` status
  - added the optional property `amount` to the response with the `201` status
  - added the optional property `created_at` to the response with the `201` status
  - added the optional property `discount_type` to the response with the `201` status
  - added the optional property `duration` to the response with the `201` status
  - added the optional property `expired` to the response with the `201` status
  - added the optional property `expires_at` to the response with the `201` status
  - added the optional property `fully_used` to the response with the `201` status
  - added the optional property `id` to the response with the `201` status
  - added the optional property `name` to the response with the `201` status
  - added the optional property `number_of_times_used` to the response with the `201` status
  - added the optional property `promocodes` to the response with the `201` status
  - added the optional property `status` to the response with the `201` status
  - added the optional property `total_number_of_uses` to the response with the `201` status
- **2022-05-06** (v2) `e09b5fb757b2` — 5 info
  - added the new optional request property `coupon/duration`
  - added the new optional request property `coupon/total_number_of_uses`
  - added the optional property `items/duration` to the response with the `201` status
  - added the optional property `items/number_of_times_used` to the response with the `201` status
  - added the optional property `items/total_number_of_uses` to the response with the `201` status
- **2022-05-05** (v2) `38fea9f46439` — 1 info
  - endpoint added
- **2022-05-05** (v2) `95c52cb13f9a` — 1 breaking
  - api path removed without deprecation

---

[Operation](https://skmtc.dev/jammed-org/apis/jammed-bookings-api/docs/coupons.json/post.md) · [API](https://skmtc.dev/jammed-org/apis/jammed-bookings-api.md) · [Page](https://skmtc.dev/jammed-org/apis/jammed-bookings-api/changes/coupons.json/post)
