# API Release news from December 04, 2024

URL: https://shoptet.dev/news/api/api-release-news-from-december-04-2024

December 4, 2024 · 2 min read
Marko Chytka

API Release news from December 04, 2024

Here's what's new in API Release that's been in production since December 04, 2024!

## Breaking Changes:

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

## New features:

### *New discountCoupons:webhooks*

- We have prepared a new set of webhooks for discount coupons
- You can use both detailed single [webhooks](https://api.docs.shoptet.com/shoptet-api/openapi/section/code-lists/webhook-event-types) and [massWebhooks](https://api.docs.shoptet.com/shoptet-api/openapi/section/code-lists/mass-webhooks) , which cover bulk actions such as deleting or creating

### *New option to upload images to articles*

- We have brought the long-awaited option of uploading images to articles.
- You can use our existing [File Upload](https://api.docs.shoptet.com/shoptet-api/openapi/files) for this, and then you can add image names to articles in 2 new fields – `sourceImageName` and `sourceOgImageName`
- When set to `null` , the image will be removed.

### *New single file upload endpoint*

- We also added a [single file upload endpoint](https://api.docs.shoptet.com/shoptet-api/openapi/files/uploadfile) to the above functionality *(images to articles)* , making work more convenient and efficient.
- **Please, do not use this endpoint for batch file upload!**

### *New ability to copy orders via API*

- Based on your feedback, we are introducing a new option to copy orders to the API, for example, for subscription purposes.
- This option allows you to choose the scope in which the order will be copied. The scope can be
- `all` – copy the order with all its items
- `no-billing-shipping` – copy the order without billing and shipping items
- `contact-only` – copy the order without any items
- **Please note, that copy order creates stock demand***(if the stock module is active and a negative stock amount is not allowed).*
- If this demand overflows the stock amount, the order will be fully created with error order-duplication-stock-overflow.

## Bugfixes:

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

## What we plan in the upcoming days:

- **In the upcoming days and weeks, we will focus primarily on stability, so we are postponing the major release until January 13, 2025, at the earliest. Thank you for your understanding.**🎄

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