# API Release news from August 05, 2024

URL: https://shoptet.dev/news/api/api-release-news-from-august-05-2024

August 5, 2024 · 3 min read
Marko Chytka

Here's what's news in API Release that's been in production since August 05, 2024!

## Breaking Changes:

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

## New features:

#### *New brand unique identifier*

- To provide an even better integration environment, we have created a unique identifier for brands, in the form of `guid`
- **We currently support on endpoints both** – the original `code` and the new `guid`
**Please note:** We will no longer support for code *(as the primary identifier)* as of `01/11/2024` – so please make sure that new integrations already respect this statement

#### *Variant main image identifier*

- We made an improvement based on your feedback, where you pointed out that the variants have no direct identifier whether the main image is set at the variant level or inherited from the product, which complicates further operations
- We created here a new attribute for better and more straightforward identification
- This attribute is called `isProductDefaultImage` and you can find it on endpoints such as [Product Detail](https://api.docs.shoptet.com/shoptet-api/openapi/products/getproductdetail) , [Product List](https://api.docs.shoptet.com/shoptet-api/openapi/products/getlistofproducts) , [Product Snapshot](https://api.docs.shoptet.com/shoptet-api/openapi/products/getlistofallproducts)

#### *New endpoints for GET & PATCH X+Y settings*

- If you offer the option of X+Y discounts, we have enabled more detailed settings of such discounts, namely setting the checkout behaviour and setting the display in categories in two new endpoints
- [GET X+Y discounts settings](https://api.docs.shoptet.com/shoptet-api/openapi/xy-discounts/getxydiscountssettings)
- [PATCH X+Y discounts settings update](https://api.docs.shoptet.com/shoptet-api/openapi/xy-discounts/updatexydiscountsettings)
- **Please note here:** All settings are optional, but at least one should be present. When updating `enableInCashdesk` setting, on HU projects will throw an exception. If you're targeting a discount to a specific category, right now, we only include products that have that category as their primary one. If you want to include all products in that category in the discount, not just the ones in the primary category, please use `categoryTargeting` attribute with `all-categories` value.

## Improvements:

#### *Enriched GET Product reviews endpoint*

- We have enriched the endpoint GET Product reviews based on your feedbacks with attributes that better enable communication with customers who have added a review
- So now this endpoint includes `email` and `customerGuid`

```json
{
    "data": {
        "reviews": [
            {
                "date": "2024-07-17T12:20:40+0200",
                "rating": 1,
                "description": "Nebyl jsem spokojený, budu dávat na reklamaci.",
                "authorized": false,
                "visible": true,
                "fullName": "Jarda Houska",
                "productGuid": "94c6d6e3-7481-11e8-8216-002590dad85e",
                "productName": "Produkt s jednou variantou",
                "orderCode": null,
                "email": null,
                "customerGuid": null,
                "reaction": {
                    "reactionCreated": null,
                    "reactionFullName": null,
                    "reactionEmail": null,
                    "reactionText": null
                }
            }
        ]
    }
}
```

#### *Extendended response with images*

- we've extended response with a property mention, if the image in the images array is the `mainImage`
- this extension has been applied to the following endpoints:
- [Product detail](https://api.docs.shoptet.com/shoptet-api/openapi/products/getproductdetail)
- [List of all products](https://api.docs.shoptet.com/shoptet-api/openapi/products/getlistofallproducts)
- [List of product's images](https://api.docs.shoptet.com/shoptet-api/openapi/product-images/getlistofproductimages)
- [Product's images update](https://api.docs.shoptet.com/shoptet-api/openapi/product-images/getproductimagesupdate)

## Bugfixes:

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

## What we plan in upcoming days:

- *Simplify the identification of sold out and restocked goods – BETA*
- *Expand order management options*
- *Bring a improvement for easier work in case of inventory control*
***Please note: the above outlook for 14 days is subject to change due to unexpected events or changes in priorities – we do not commit to deliver these outputs and outcomes. Thank you for your understanding.***

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