API Release news from April 11, 2023
· 2 min read
Here’s what’s news in API Release, which is in production since April 11, 2023!
Breaking changes:
- Fortunately, none! Let’s have a toast!
New features:
Re-stock of credit-note enrichment in API
- via API is currently possible to POST specific credit-note re-stock call by its
codeand all the items included in this specific credit-note - after re-stock operation will be credit-note locked for all further edit operation or changes and error message is returned in case of repeatedly request for edit / re-stock / update
- new attribute
restocked(boolean) in response and then in credit-note detail
Newly supported shippingMethods webhook
- we add a new webhook event type
shippingMethod:changecovering all the changes methods over the shipping methods – create, delete and update
Newly supported paymentMethods webhook
- we add a new webhook event type
paymentMethod:changecovering all the changes methods over the payments methods – create, delete and update
CRUD support for productFlags in API
- in API can be currently find new spectrum of endpoints for product flags which support POST, PATCH and DELETE
- attribute
codeis not possible to edit - maximum count of custom flags is
999
Support of pricelists deletion in API
- new endpoint for
DELETEoperations over the pricelists, can be found in our API documentation "Hlavní ceník"is excluded from the deleting option, because is set as default – when you try to delete it, thenerror 422is returned
Improvements:
New logic of atypical attributes
- based on our administration changes where atypical attributes were moved on variant level we enrich returned attributes in GET Product detail endpoint
- when the
producthas at least one variant withatypicalBillingoratypicalShippingthen at the product level isatypicalBillingoratypicalShippingreturned with the valuetrue
Bugfixes:
404 - mistakes not found– let’s celebrate 🙂 !