API Release news from October 10, 2023
· 3 min read
Here’s what’s news in API Release, which is in production since October 10, 2023!
Upcoming Breaking changes:
- Please let’s remind breaking changes mentioned in our previous release news from Semptember 25, 2023
New features:
shippingDetails enriched by PPL
- The information in the
shippingDetailsattribute has been unified and now includes all carriers including PPL - It is recommended to take all branch information from the mentioned attribute, as the purpose of
additionalFieldswill change
Order detail is enriched by shippingCompanyCode
- Endpoint with
shippingCompanyCodeas a new property undershippingDetailsparent as a extended option for order identification or eligibility for further processing - List of orders and List of all orders are unhanged, so there is sustained just the possibility with advanced query filters by the mentioned
shippingCompanyCodeattribute
New mass:webhooks event type
- New mass webhooks (available in the API documentation in Webhook event types section) have been released and are sent when a mass change of entities is performed. Currently only
invoice:massUpdateandorder:massUpdateare supported - The payload contains a json serialised list of IDs of changed entities.
- for example
invoice:massUpdatein theinstancefield return [12345, 1234567, 123456789]
- for example
- The purpose of these webhooks is to reduce the number of requests while e.g. the administrator performs a mass change of order status at once, etc.
- Please note that for now, if some mass event is performed, we also sent “single” webhook event for every updated entity as usual. This will be changed in future, so please watch release changes for more information.
Job detail try counter
- As we announced in our previous release news from September 25, 2023, the GET Job detail endpoint is covered by try counter
- We have set a maximum of
50 attemptsfor unfinished jobs. - When you exceed the limit, you will receive an
error 403with the message:You have exceeded the limit of job detail request for unprocessed job "jobId". Please wait for job:finished event after job is completed! - If the job does not exist
error 404is going to be returned. - Please note, that we do not rule out the possibility that the maximum number of attempts on unfinished jobs will be significantly lower in the future. This will be announced in advance.
Bugfixes:
404 - mistakes not found– let’s celebrate 🙂 !