# API Release news from May 23, 2023

URL: https://shoptet.dev/news/api/api-release-news-from-may-23-2023

May 23, 2023 · 3 min read
Marko Chytka

Here's what's news in API Release, which is in production since May 09, 2023!

## Breaking changes:

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

## New features:

#### **New credit-notes snapshot is ready to use**

- API is enriched by new available snapshot covering [GET List of all credit-notes](https://api.docs.shoptet.com/shoptet-api/openapi/credit-notes/getlistofallcreditnotes)
- `job:finished` webhook also cover this new job type and is emitted immediatelly when job finished
- **please note:** query filters for more granular snapshot data will be released in upcoming weeks

#### **New invoices snapshot is ready to use**

- API is enriched by new available snapshot covering [GET List of all invoices](https://api.docs.shoptet.com/shoptet-api/openapi/invoices/getlistofallinvoices)
- `job:finished` webhook also cover this new job type and is emitted immediatelly when job finished
- **please note:** query filters for more granular snapshot data will be released in upcoming weeks

#### **Order detail currently contains EAN also** – `will be released during 24/05 or 25/05`

- GET [Order detail](https://api.docs.shoptet.com/shoptet-api/openapi/orders/getorderdetail) currently contains items EAN also
- attribute can be found in `data.order.items`
- **please note** : historical order data will be migrated and EAN column will be fulfilled – based on current product EANs and their codes pairing

## Improvements:

#### **E-shop info is enriched by new attribute**

- [E-shop info](https://api.docs.shoptet.com/shoptet-api/openapi/eshop/geteshopinfo) endpoint is now eriched by default e-shop invoicing currency
- `eshop:currencies` webhook is also extended by mentioned attribute with respect to expected behavior

#### **Support for 100% discount coupons was added**

- on POST [discount coupons set creation](https://api.docs.shoptet.com/shoptet-api/openapi/discount-coupons/creatediscountcouponsset) and [POST discount coupons](https://api.docs.shoptet.com/shoptet-api/openapi/discount-coupons/creatediscountcoupons) API currently allow to set `ratio` property value with 1.0000 value included (but not higher)
- **please note:** value must be from 0.0 to 1.0. Values in range 0.0000 to 1.0000 must pass – rule is the same for both endpoints

## Bugfixes:

#### **Fixed difference between the definition and the example in the documentation for adding a new traffic**

- we fix a documentation for creating a new shipment, where the minimum shipping price was given as a string, but in the request definition, a number was given

#### **Fixed sorting behavior of last changes endpoints**

- we found an situation where some data on Last changes endpoints was missing
- `all the Last changes` endpoints was improved in the sorting:
- GET [Last proforma invoice changes](https://api.docs.shoptet.com/shoptet-api/openapi/proforma-invoices/getlastproformainvoicechanges) sort primarily by `changeTime` newly secondarily by the proforma `code` also
- GET [Last invoice changes](https://api.docs.shoptet.com/shoptet-api/openapi/invoices/getlastinvoicechanges) sort primarily by `changeTime` newly secondarily by by the invoice `code` also
- GET [Last customer changes](https://api.docs.shoptet.com/shoptet-api/openapi/customers/getlastcustomerchanges) sort primarily by `changeTime` newly secondarily by the customer `guid` also
- GET [Last changes in distribution list](https://api.docs.shoptet.com/shoptet-api/openapi/e-mail-distribution-lists/getlastchangesindistributionlist) sort primarily by `changeTime` newly secondarily by the `email`
- GET [Last order changes](https://api.docs.shoptet.com/shoptet-api/openapi/orders/getlastorderchanges) sort primarily by `changeTime` newly secondarily by the order `code`
- GET [Last credit-note changes](https://api.docs.shoptet.com/shoptet-api/openapi/credit-notes/getlastcreditnotechanges) sort primarily by `changeTime` newly secondarily by the credit-note `code`

#### **Fixed language code data in e-shop info**

- GET [E-shop info](https://api.docs.shoptet.com/shoptet-api/openapi/eshop/geteshopinfo) currently returns selected language in administration settings on `/admin/nastaveni-obchodu-obecne/`

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