# API Release news from November 06, 2023

URL: https://shoptet.dev/news/api/api-release-news-from-november-06-2023

November 8, 2023 · One min read
Marko Chytka

Here's what's news in API Release, which is in production since November 06, 2023!

## Upcoming Breaking changes:

- Fortunately, none! Let's have a toast!

## New features:

#### **X+Y discounts available in API**

- We have added the possibility of conditional sales promotions (e.g. " `buy 3 books and get 1 additional book of your choice for free` " promotions) to the API
- We support complete CRUD management of these discounts, including the detail and list endpoints
- Full endpoints spectrum can be find in our API documentation [here](https://api.docs.shoptet.com/shoptet-api/openapi/xy-discounts)
- **Please note that the set of endpoints is only available with the X+Y module active**
- A more detailed business description can be found on our official support site [here](https://podpora.shoptet.cz/hc/cs/articles/13681474046098-Slevy-X-Y)

## Improvements:

#### **Alternative and related product improvement**

- We have created the ability to delete alternative and related products
- This behavior is achieved by sending the alternative and related product fields as `empty array` on the PUT endpoints
- [PUT Set alternative products](https://api.docs.shoptet.com/shoptet-api/openapi/alternative-products/setalternativeproducts)
- [PUT Set related products](https://api.docs.shoptet.com/shoptet-api/openapi/related-products/setrelatedproducts)

## Bugfixes:

- `404 - mistakes not found` – let's celebrate 🙂 !

**Tags:**
- [API](/news/tags/api/)
