Skip to main content

294 posts tagged with "API"

Release notes and breaking changes for the Shoptet API.

View All Tags

Basic product update endpoint

· One min read
Pavel Husa

Today we have introduced a new endpoint to modify basic product attributes, such as name, description, meta tags, visibility and similar. For products without variants it is also possible to change various codes, such as EAN, ISBN, MPN and similar. The product can be specified by a GUID or by code. For detailed description of all modifiable items including examples, check the request body schema in the API documentation.

Change to the /changes endpoints

· One min read
Pavel Husa

For many entities we have /changes endpoint which informs about recently added, modified or deleted entities, so you can read and keep latest version of each entity. Currently we are producing three change types (add, edit, delete) whichever is the latest.

Update order head

· One min read
Pavel Husa

We have introduced a new update endpoint Order head modification. It makes it possible to change most of the attributes of an order, such as dates, billing and contact information, client identification etc. For complete information of modifiable fields and their format, see the API documentation, especially its request body schema. After successful update API will return the updated order detail, equivalent to the Order detail endpoint.

Surcharge Parameters

· One min read
Pavel Husa

There is a new endpoint List of surcharge parameters, which returns all available product surcharge parameters defined in the eshop (see Help pages for more info on surcharge parameters). The response contains all parameters and available values along with names, description, price and other attributes. Within a few days we will also extend the Product Detail endpoint to show surcharge parameters available for each product.

Orders can be looked up by phone number

· One min read
Pavel Husa

Minor enhancement was made to Orders List endpoint. A new parameter (filter) ?phone= was introduced – as expected, it will show orders with the given phone number. The number has to be specified in the international format +420604600444 (as the GET parameter it has to be encoded %2B420604600444, of course). The quality of the search might be dependent on the quality of phone numbers in the eshop – the endpoint tries to match number with and without the international prefix (+420604600444 and 604600444).

Order insertion more tolerant

· One min read
Pavel Husa

When Order insertion was introduced, we defined set of validations to allow only reasonable orders consistent for for further regular processing. One of those was to check, if the order has at least one product, one shipping and and one payment method (for non-cashdesk orders). This however turned out to be sometimes an obstacle, especially when historical orders from other eshops or external systems were imported. Therefore we decided to relax the validation and we do not require the order to have a shipping and a payment method now – at least one product (or service, bazaar item etc.) is however still required.