Skip to main content

294 posts tagged with "API"

Release notes and breaking changes for the Shoptet API.

View All Tags

Order items modification

· One min read
Pavel Husa

We have introduced a new endpoint to modify order items. Endpoint URL is /api/orders/{code}/item/{id} where code is an existing order code and id identifies the order item. Currently only product items can be modified, however billing and shipping will follow soon.

Rights to endpoints by groups

· One min read
Pavel Husa

We are about to simplify access control to API endpoints. Currently it is necessary to apply and approve each single endpoint. As we have already many endpoints in the API and there will be much more in the future, this would become a nightmare for Shoptet, eshop adninistrators and of course you, our API partners.

Order insert with surcharge parameters

· One min read
Pavel Husa

We have extended Order insert endpoint to support also surcharge parameters in the request (data.items[].surchargeParameters[]). Multiple pairs of parameter name and value can be provided. The complete list of surcharge parameters defined in the eshop can be obtained from List of surcharge parameters endpoint. List of surcharge parameters for a product can be retrived from Product detail with option ?include=surchargeParameters.

Iframe settings – cookie fix discontinued on Dec 7th

· One min read
Pavel Husa

For addons having their settings in the Shoptet administration (in the iframe), there used to be a problem with third party cookies in some more security aware browsers. Lost cookies were blocking authorization of eshop admin users. This is now fixed by means of a simplified OAuth mechanism, cookie-less iframes and proxy_pass settings – see Placing the addon settings into Shoptet administration.

Surcharge parameters for product insert and edit

· One min read
Pavel Husa

We have extended Product insert as well as Product edit and Product edit by code to accept also surcharge parameters. This can be done using array surchargeParameters within the request body. You can specify multiple parameters and multiple values. When editing, the complete array has to be provided (the whole list of parameters is always replaced). The parameters and their values must already exist, they will not be created “on-the-fly” – an error would be returned instead. The complete list of surcharge parameters defined in the eshop can be retrieved using List of surcharge parameters.

Product detail extended

· One min read
Pavel Husa

We have extended GET Product detail endpoint to contain advanced attributes (from the “Advanced” tab of the product detail screen in administration), such as product name suffix, xml or meta title, flags for payments and shipping (including atypical shipping & billing) and also parameters for XML feeds (Heureka, Zbozi.cz).

Products changes paging changed

· One min read
Pavel Husa

We have seen the Last products changes endpoint is difficult to iterate when there are too many changes (pages). And it also causes high load on our servers. We have analysed the calls and we found out extending the paging to 1000 items per page makes their reading much easier, faster and reliable while consuming less HW resources on our side. It is now possible to call the /api/products/changes?itemsPerPage=1000 with 1000 as the maximum value.