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-api or its :read, :write and :delete sub-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-Token and Authorization: Bearer returns 400.

Requests that now return 400

  • limit and offset must be whole numbers: limit from 1 to 2147483647, offset from 0 to 2147483647. Before, limit=abc or limit=0 returned an empty page, limit=5abc a page of 5, and a negative value a server error.
  • Image and attachment uploads return 400 with Parameter 'file_url_path' has invalid value when the file at file_url_path can'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_percent outside 0-99.99 return 400 instead of a server error.
  • An unknown order status id in POST /orders/{id}/statuses returns 400 instead of a server error.
  • null for a required product field in PUT /products/{id}, an empty option_ids when adding a product or variation property, and a wysiwyg property option without values return 400 instead of a server error.
  • PUT on an order row extra input of the country select or view-only type returns 400. Before, it cleared the stored value.

Changed responses

  • /orderpromotions is 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_found when other elements were updated. They still return 404 when nothing matched.
  • Category POST and PUT return the stored position and 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, GET and DELETE returned 200 with no items, and PUT changed the other item.
  • Product POST and PUT return the product's addresses after the update, and its stored base_price_with_vat and base_price_no_vat instead of null.
  • A product's variations and compatible_products leave out deleted variations and products.
  • changed_to_at in order statuses, paid_at and the modified of status comments in orders, and time in /orderpromotions have the same time zone format as other times, such as 2026-11-22T07:35:27+02:00.
  • Changing an order's status or an order row updates the order's modified, so modified_after finds the order.
  • Company price lists, order promotions and orders filtered by product are paged correctly.
  • GET /products ignores a secondary_categories filter, like other unknown parameters. Before, it returned a server error.

Fields that now work

  • Account pays_vat, company email and variation ean_code can be set.
  • credits: 0 is saved on account POST and PUT, also for accounts without credits.
  • Discount upserts keep the start and end dates and prices that the request leaves out. An explicit null clears 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 email filter ignores case. Before, an email with uppercase letters returned a server error.
  • PUT /products/{id} with use_default_vat_percent: false and no vat_percent keeps the product's VAT. Before, it switched the product to the shop's default VAT.
  • Product description PUT no longer requires language.
Last modified on