Skip to main content

294 posts tagged with "API"

Release notes and breaking changes for the Shoptet API.

View All Tags

Suppress mandatory fields check for historical orders

· One min read
Pavel Husa

Endpoint Insert Order requires billing information and eventually delivery address to be provided according to mandatory fields settings for each eshop (see in administration, under „Settings > Customers > Mandatory fields“ or using endpoint Required fields).
This is intended for new orders, however we have decided to allow relaxing these checks for historical orders (e. g. import from another system, which might be lacking some fields). To skip the check, use parameter ?suppressHistoricalMandatoryFields=true. This can be used only for historical orders (older than 1 day) and should be used carefully – other addons and functionality can be confused by inconsistent data and provide unreliable results.

Stock changes do not imply product change

· One min read
Pavel Husa

When a product is changed (any of its data gets modified), we update the modification timestamp (changeTime) in the List of Products endpoint, Product Detail endpoint and the change is tracked via the Last Product Changes endpoint. Recently we have changed the logic in case of stock amount update – formerly stock amount did change the modification timestamp, from now on it does not change it and the update is not visible in the Last Product Changes. Stock movements can be tracked by Stock Movement endpoint.

Measure unit and price support in API

· One min read
Pavel Husa

Measure units and prices are used to compare similar goods with variable package sizes. For example you might sell a chocolate of 50 g weight, as well as 100 g or 200 g. To make the price comparison easier, the measure price expresses price value converted to a predefined weigth, for example 100 g. See more at Support Pages.

Changes to price lists

· One min read
Pavel Husa

We have just introduced a new endpoint, which can be used to modify prices (price, common price, purchase price, action price), discount flags and min/max orderable amounts: Update Price List PATCH /api/pricelists/{pricelistId}.