Article

Free-text search across sellable articles

Free-text search across sellable articles (and their variants) of the caller's company. Matches by name, article number, barcode, variant number and set-header name. Returns each row enriched with the price valid on price-date and the appropriate VAT rate. Requires permission ARTICLE_READ_ONLY.

get/core/latest/articles/search

Request

  • Base URL: https://api.klara.ch
  • URL: https://api.klara.ch/core/latest/articles/search
  • Auth: one of:
    • API key in header X-API-KEY
    • HTTP bearer

Query parameters

export-vatboolean

If true, return ABROAD (export) VAT rate; otherwise NORMAL.

keywordstring
Example:paper

Renamed to <code>search-key</code>. This name is accepted until <b>2027-09-01</b>; when both are sent, <code>search-key</code> wins. After that date, a request sending <code>keyword</code> without <code>search-key</code> is rejected with <b>400</b>.<br/><br/><strong>Deprecated</strong> — use <code>search-key</code> instead. Free-text search key. Trimmed; empty/missing returns the first page unfiltered.

limitinteger
Example:50

Page size (1–100).

offsetinteger

0-based pagination offset.

price-datestring date
Example:2026-06-01

Date on which prices are evaluated. Format: yyyy-MM-dd. Defaults to today when omitted.

search-keystring
Example:paper

Free-text search key. Trimmed; empty/missing returns the first page unfiltered.

should-validate-vatboolean

If true, cross-validate each row's VAT code against the company's VAT setup on price-date.

Response

Matching articles

idstring

Id of the article

namestring

Name of the article

descriptionstring

Description for the article

extendedDescriptionstring

This description will be used for example in your online shop

unitstring

Define how the article is count by

barcodestring

Barcode of the article

defaultQuantitynumber

The default quantity of the article

accountingTagsstring[]

Tags used for accounting. Articles with the same tag, same VAT case and same VAT rate are grouped together in the posting

articleNumberstring

Number of the article

productType'SERVICE' | 'PRODUCTION' | 'TRADE' | 'OTHER' | 'GIFT_CARD' | 'PREPAYMENT'

The product type of the article

vatRatenumber

Vat rate of the article

articleType'ARTICLE' | 'ARTICLE_SET' | 'VARIANT'

Article type

priceIncludeVatnumber

price include vat

priceExcludeVatnumber

price exclude vat

hasInventoryboolean

This article has inventory or not

quantityInStocknumber

Quantity in stock

optionValuesstring[]

Variant option of this article

ableToOrderOutOfStockboolean

Flag define the article is allow to order out of stock

Example response

[
  {
    "id": "1",
    "articleNumber": "ABC123"
  }
]

Changes

No recorded changes to this operation across all 1 revision of this API.