Skip to main content

News

API and frontend release news for developers building on Shoptet.

Categories: API news · Frontend news

Subscribe: RSS · Atom · JSON

Product list can be filtered by a flag

· One min read
Pavel Husa

We have added a new filter to the Products List endpoint. You can call /api/products?flag=action and you will get only products having “action” flag set (and within actual date range). You can specify only one flag at a time. Do not be confused the flags are not part of the response. Assigned flags are available in the Product Detail endpoint (using ?include=flags).

Validity range for product flags

· One min read
Pavel Husa

For Product Detail endpoint when called with an optional section ?include=flags there is now a validity range data.flags[].dateFrom and data.flags[].dateTo available. The dates reflect the settings from the product setup. The respective flag is displayed only within the given date range. Any of the fields can be null meaning there is no lower or upper boundary.

Newly added events for validation

· One min read
Pavel Husa

There are three new custom events to help you to interact with Shoptet validation scripts. Events are called ShoptetValidationTransform, ShoptetValidationWarning and ShoptetValidationError.

Podrobný seznam doprav

· One min read
Pavel Husa

Pokládáme základy, na kterých budeme stavět další podporu pro doplňky implementující nejrůznější druhy doprav. Na začátek podrobný seznam doprav, které jsou v eshopu nastavené – endpoint Seznam doprav (/api/shipping-methods). Vrací celý seznam bez stránkování, velkoobchodní i maloobchodní dopravy. Endpoint je podrobnější a mírně jinak strukturovaný než ten starší v Eshop Info. Ten starší nebudeme mazat, použijte libovolný z nich, který bude lépe sloužit vašim potřebám.