Skip to main content

294 posts tagged with "API"

Release notes and breaking changes for the Shoptet API.

View All Tags

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

Negative stock in Product detail

· One min read
Pavel Husa

We have added a new field to Product detail endpoint: negativeStockAllowed (data.variants[].negativeStockAllowed). In case an eshop does not allow to sell goods not available on stock (negative stock), this option can be overriden for individual products (variants). Possible values are:

Currency information extended

· One min read
Pavel Husa

Endpoint Eshop info contains array of currencies containing basic information about each currency, visibility and exchange rate. We have extended the set of information provided to contain more information on formatting, rounding, order minimum value and bank account.

Default product availabilities

· One min read
Pavel Husa

In the Shoptet administration, products might have availabilities defined, such as “On stock”, “On request”, “Sold out” etc. These can be defined on product variant level (endpoint Product detail, items data.variants[].availability and data.variants[].availabilityWhenSoldOut). If they are not specified (the item is null), global eshop default values are used as per settings in the administration. The default values can be newly retrived from endpoint List of product availabilities, section defaultAvailabilities.