API Release news from January 15, 2024
· 2 min read
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 orderCodeurl parameter - more details can be found in the API documentation, specifically in GET Stock movements endpoint description
- example:
"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
includeparameterperStockAmounts - more details can be found in the API documentation, specifically in GET Product detail endpoint description
- please note that the stock diversification option is available only when project has active module “Velkoobchod”
- example:
"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 🙂 !