Skip to main content

News

API and frontend release news for developers building on Shoptet.

Categories: API news · Frontend news

Subscribe: RSS · Atom · JSON

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).

IDs for filter inputs

· One min read
Pavel Husa

We have added id attributes for inputs in filter also for older templates of 1st and 2nd generation. These IDs holds unique identificator of filtering parameter.

jQuery versions unified

· One min read
Martin Stehlík

We have upgraded jQuery version on older templates – Swing, Jazz, Funk, Pop, Rock, Soul and Echo – from 1.5.1 to 1.11.3. This means that all templates now use the same version, 1.11.3. For backwards compatibility, we do still support (and plan to support in the future) scripts written for 1.5.1, so no changes in custom codes or addons are neccessary.

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.