v1

latestOpenAPI 3.0.02026-08-06151101754.7 KB
Articles

Returns articles

get/articles

Query parameters

idinteger

Filters by IDs. Multiple inputs with id[]=1&id[]=2

per_pageinteger

Number of items per Page

pageinteger

Result Page

order_bystring

Order column

order_direction'asc' | 'desc'

Order direction. asc or desc possible

returnstring

Returns a single aggregate over the filtered list instead of the paginated result, e.g. {"data": {"count": 42}}. Allowed values: count, sum.column, min.column, max.column, avg.column (e.g. return=sum.duration_seconds). sum and avg require a numeric column.

group_bystring

Returns one aggregate row per bucket of the given column instead of the paginated result, e.g. group_by=type_id gives {"data": [{"type_id": 1, "count": 5}, ...]}. The per-bucket aggregate reuses the "return=" grammar and defaults to count (e.g. group_by=type_id&return=sum.id). Combine with order_by=<aggregate>&order_direction=desc for "top N" queries. Groupable columns are known model columns plus foreign keys. Datetime columns must be bucketed by granularity: group_by=created_at:month (also :year, :day/:date), giving {"data": [{"created_at": "2026-07", "count": 5}, ...]}. Results are capped at 1000 buckets.

withstring

You can load relations using the with parameter. Example for assignments/appointments: with[]=documents loads all related documents and adds it to the response.

excludeinteger

Exclude ids. Multiple inputs with exclude[]=3&exclude[]=6

qstring

Search string

group_idinteger

Filter by group_id. Multiple inputs with group_id[]=1&group_id[]=2

picture_idinteger

Filter by picture_id. Multiple inputs with picture_id[]=1&picture_id[]=2

namestring

Filter by name. Multiple inputs with name[]=some&name[]=other

manufacturerstring

Filter by manufacturer. Multiple inputs with manufacturer[]=some&manufacturer[]=other

supplier_article_nrstring

Filter by supplier_article_nr. Multiple inputs with supplier_article_nr[]=some&supplier_article_nr[]=other

manufacturer_article_nrstring

Filter by manufacturer_article_nr. Multiple inputs with manufacturer_article_nr[]=some&manufacturer_article_nr[]=other

eanstring

Filter by ean. Multiple inputs with ean[]=some&ean[]=other

unit_pricenumber float

Filter by unit_price.

vat_ratenumber float

Filter by vat_rate.

vat_included'0' | '1'

Filter by vat_included.

currency'EUR' | 'USD' | 'CHF' | 'UAH' | 'PLN' | 'RON'

Filter by currency.

price_datestring date

Filter by price_date.

unit'BAG' | 'BAR' | 'BOTTLE' | 'BOX' | 'BUCKET' | 'BUNCH' | 'CAN' | 'CANISTER' | 'CARDBOARD' | 'CUBIC_METRE' | 'CENTIMETERS' | 'CONTAINER' | 'DAYS' | 'DOZEN' | 'FLAT_FEE' | 'GRAMS' | 'HOURS' | 'KILOGRAMS' | 'KILOMETER' | 'KILOWATT_PEAK' | 'LITRE' | 'METRES' | 'MILLILITRE' | 'MILLIMETRES' | 'PACK' | 'PAIR' | 'PANEL' | 'PARCEL' | 'PERCENT' | 'PIECE' | 'ROLL' | 'RUNNING_METER' | 'SAC' | 'SET' | 'SQUAREMETER' | 'TONS' | 'TRIMMING' | 'TUBE'

Filter by unit. Multiple inputs with unit[]=piece&unit[]=kilogram

article_urlstring

Filter by article_url.

infostring

Filter by info.

sourcestring

Filter by source. Multiple inputs with source[]=api&source[]=app

source_external_idstring

Filter by source_external_id. Multiple inputs with source_external_id[]=123&source_external_id[]=456

dangerous_materialboolean

Filter by dangerous_material.

assignmentsinteger

Assigned assignments Ids. Multiple inputs with assignments[]=3&assignments[]=6

Response

Articles list

OR
OR

Example response

{
  "data": [
    {
      "id": 1,
      "first_line": "Bosch cordless screwdriver (MAN-456)",
      "icon": "fa-layer-group",
      "color": "#f3a622",
      "contrast_color": "dark",
      "custom_number": "MAN-456",
      "group_id": 1,
      "picture_id": 1,
      "name": "Bosch cordless screwdriver",
      "manufacturer": "Bosch",
      "supplier_article_nr": "SUP-123",
      "manufacturer_article_nr": "MAN-456",
      "ean": "4000123456789",
      "unit": "PIECE",
      "vat_included": "0",
      "unit_price": 19.99,
      "vat_rate": 19.5,
      "currency": "EUR",
      "price_date": "2024-01-01",
      "article_url": "https://example.com/article/1",
      "info": "Handle with care",
      "source": "manual"
    }
  ]
}