Skip to main content

News

API and frontend release news for developers building on Shoptet.

Categories: API news · Frontend news

Subscribe: RSS · Atom · JSON

Important notice for Blank template authors

· 2 min read
Pavel Husa

As we noticed you through ours partner managers, we scheduled breaking change in HTML and JavaScript of checkout process, which is going to break it in blank templates without your cooperation. We need you to follow several steps listed below.

Online payment link in the order detail

· One min read
Pavel Husa

We have added one new item into Order detail endpoint response: onlinePaymentLink. In case of an online payment it contains a link to the payment gateway with uniq code for each order. The link can be used for later payment, if it was not performed immediately after the order had been submitted for some reason.

List of product images

· One min read
Pavel Husa

We have added a new endpoint List of product images, which is a thin focused endpoint to retrieve all images of a product. This might be fast alternative to Product detail endpoint called with ?include=images, if you are focused just on images. And this is also a signal we are going to introduce more endpoints to work with images in the API.

Last changes to proforma invoices

· One min read
Pavel Husa

The family of /changes endpoints has a new member: Proforma invoice changes. As all the other /changes endpoints, it shows the last add/edit or delete event to a proforma invoice (always the last action only). History is guaranteed for 30 days. The endpoint (as all the others) does not contain all proforma invoices, it is intended to keep track of changes after all proforma invoices are read using List of proforma invoices and Proforma invoice detail.

Surcharge parameters in Order detail

· One min read
Pavel Husa

We have extended endpoint Order detail to provide also selected surcharge parameters selected by the buyer while putting a product into the cart. You have to call the endpoint with ?include=surchargeParameters and you will find them (if applicable to the product) in data.order.items[].surchargeParameters[] array. All parameter names, their values and surcharge prices are provided.

Insert product endpoint

· One min read
Pavel Husa

We have introduced a new endpoint to insert a product – POST /api/products. There are many common attributes of a product available and also variants might be provided within the request body. See full description of available attributes in the API documentation, section “Request Body schema”.

Multiple custom scripts after form validation

· One min read
Pavel Husa

For some time we offer to use custom function after (un)succesfull validation, see Vlastní script před odesláním formuláře. To bring some “culture” between multiple addons/custom adjustments, we had recently improved the behavior – from now on is possible to set own function without overwriting previously set function. See example below and please update your scripts, if you are using these custom functions in your scripts.