LianaCommerce
Changes
This page lists changes to the LianaCommerce REST API that can affect existing integrations, newest first. Each heading is when the changes reach the shops.
January 2027
These changes come with the LianaCommerce update in January 2027.
Authentication
- The API accepts LianaCloud Bearer tokens, with the scope
commerce-apior its:read,:writeand:deletesub-scopes. See Authorization. - API keys (
X-Auth-Token) are no longer tied to the admin who created them, so they keep working when that admin is removed. Neither kind of credential can give or remove admin roles through/accounts. - A request with both
X-Auth-TokenandAuthorization: Bearerreturns400.
Requests that now return 400
limitandoffsetmust be whole numbers:limitfrom 1 to 2147483647,offsetfrom 0 to 2147483647. Before,limit=abcorlimit=0returned an empty page,limit=5abca page of 5, and a negative value a server error.- Image and attachment uploads return
400withParameter 'file_url_path' has invalid valuewhen the file atfile_url_pathcan't be downloaded or, for images, isn't an image. - Discounts and company prices with an unknown or deleted product, variation or category, a missing
price field, or a
discount_percentoutside 0-99.99 return400instead of a server error. - An unknown order status id in
POST /orders/{id}/statusesreturns400instead of a server error. nullfor a required product field inPUT /products/{id}, an emptyoption_idswhen adding a product or variation property, and awysiwygproperty option withoutvaluesreturn400instead of a server error.PUTon an order row extra input of the country select or view-only type returns400. Before, it cleared the stored value.
Changed responses
/orderpromotionsis paged like other lists: 20 rows by default, with paging links. Before, it returned every row.- Bulk updates of stock, prices, stock alerts and company prices list the elements that matched
nothing in
not_foundwhen other elements were updated. They still return404when nothing matched. - Category
POSTandPUTreturn the storedpositionand SEO links. PUT /orders/{id}returns one item.- An image, description, property option, order row extra input or event booking that belongs to
another product, variation, property or order row returns
404, and nothing is changed. Before,GETandDELETEreturned200with no items, andPUTchanged the other item. - Product
POSTandPUTreturn the product's addresses after the update, and its storedbase_price_with_vatandbase_price_no_vatinstead ofnull. - A product's
variationsandcompatible_productsleave out deleted variations and products. changed_to_atin order statuses,paid_atand themodifiedof status comments in orders, andtimein/orderpromotionshave the same time zone format as other times, such as2026-11-22T07:35:27+02:00.- Changing an order's status or an order row updates the order's
modified, somodified_afterfinds the order. - Company price lists, order promotions and orders filtered by product are paged correctly.
GET /productsignores asecondary_categoriesfilter, like other unknown parameters. Before, it returned a server error.
Fields that now work
- Account
pays_vat, companyemailand variationean_codecan be set. credits: 0is saved on accountPOSTandPUT, also for accounts without credits.- Discount upserts keep the start and end dates and prices that the request leaves out. An explicit
nullclears them. If the same target is in a request twice, the last one wins. - Extra inputs of the country select and number generator types have their
type. - Account emails are saved in lowercase, and the
emailfilter ignores case. Before, an email with uppercase letters returned a server error. PUT /products/{id}withuse_default_vat_percent: falseand novat_percentkeeps the product's VAT. Before, it switched the product to the shop's default VAT.- Product description
PUTno longer requireslanguage.
Last modified on