Skip to main content

API Release news from April 11, 2023

· 2 min read
Marko Chytka

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 code and 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:change covering all the changes methods over the shipping methods – create, delete and update

Newly supported paymentMethods webhook​

  • we add a new webhook event type paymentMethod:change covering 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 code is not possible to edit
  • maximum count of custom flags is 999

Support of pricelists deletion in API​

  • new endpoint for DELETE operations 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, then error 422 is 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 product has at least one variant with atypicalBilling or atypicalShipping then at the product level is atypicalBilling or atypicalShipping returned with the value true

Bugfixes:​

  • 404 - mistakes not found – let’s celebrate 🙂 !