# API Release news from January 15, 2024

URL: https://shoptet.dev/news/api/api-release-news-from-january-15-2024

January 18, 2024 · 2 min read
Marko Chytka

## Upcoming Breaking changes:

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

## Improvements:

#### **Stock movements endpoint is enriched by orderCode**

- since the last release, the existing endpoint providing stock movements now contains an option to include the specific orderCode under which the stock movement occurred using the `include orderCode` url parameter
- more details can be found in the API documentation, specifically in [GET Stock movements](https://api.docs.shoptet.com/shoptet-api/openapi/stocks/getstockmovements) endpoint description
- **example:**

```json
"movements": [
  {
    "id": 126222,
    "productCode": "6547",
    "actualAmount": "21.505",
    "amountChange": "0.505",
    "changedBy": "novak@shoptet.cz",
    "changeTime": "2018-05-28T14:17:00+02:00",
    "orderCode": "2017000049"
  }
]
```

#### **Product detail endpoint is enriched by perStockAmounts**

- since the last release, the existing endpoint for receiving product details now includes the option to include the quantity split at the level of a specific stock, including all necessary details, using the `include` parameter `perStockAmounts`
- more details can be found in the API documentation, specifically in [GET Product detail](https://api.docs.shoptet.com/shoptet-api/openapi/products/getproductdetail) endpoint description
- **please note that the stock diversification option is available only when project has active module " [Velkoobchod](https://doplnky.shoptet.cz/velkoobchod) "**
- **example:**

```json
"perStockAmounts": [
  {
    "stockId": "1",
    "amount": 10,
    "claim": 0,
    "location": "Location 4",
    "lastAmountUpdate": "2024-01-04T10:55:55+0100"
  }
]
```

## Bugfixes:

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

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