Docs
Čeština Slovenčina English
Developer

Filtering

Operators

Operator

GraphQL

Text

Numeric

Boolean

Date

equals

eq

x

x

x

x

does not equal

ne

x

x

x

x

less than

lt

-

x

-

x

less than or equal to

lte

-

x

-

x

greater than

gt

-

x

-

x

greater than or equal to

gte

-

x

-

x

starts with

sw

x

-

-

-

contains

ct

x

-

-

-

ends with

ew

x

-

-

-

Pagination

Arguments are used to paginate the returned data. The default page limit is set to 1000 ("DefaultPageLimit": 1000, configured in the config.json file).

from - number of items to skip
count - requested number of items to return

  {
  Articles (Count: 2, From: 1) {
        ID,
        Nazev,
        Vyrobce_Nazev        
    }
}

Sorting

To sort lists, use the Order argument together with Filter.

query
{
    Currencies(Filter:"Deleted~ne~true", Order: "Create_Date~asc#Nazev~asc")
    {
        ID,
        Create_Date,
        Nazev,
        Kod,
        Deleted
    }
}

Filtering

You can find a specific record directly on the object, e.g. Company , or by using filters on Companies, with or without a body . Filtering is only possible on fields in the main root; filtering by child records is not possible.

GET http(s)://[adresa API]/graphql?query={Companies{ID,Kod,Nazev}}

POST http(s)://[adresa API]/graphql
request body: {"query":"{Companies{ID,Nazev,ObchMisto}}"}
GET http(s)://[adresa API]/graphql?query={Company(ID:"64d9f777-0035-40c2-9954-572fe61298fe"){ID,Kod,Nazev}}

POST http(s)://[adresa API]/graphql
request body:
{"query":"{Company(ID:\"64d9f777-0035-40c2-9954-572fe61298fe\"){ID,Nazev,ObchMisto}}"}
or
{"query":"{Companies (Filter:\"ID~eq~64d9f777-0035-40c2-9954-572fe61298fe\") {ID,Kod,Nazev} }"}
POST http(s)://[adresa API]/graphql
request body:
{
        Companies (Filter: "(Misto~eq~Brno#Nazev~eq~Seyfor)|(ICO~eq~60737691)")
        {     
        ID,
        Kod
        Nazev,

        ICO,
        ICDPH,
        DIC, 

        Tel1Cislo,
        Email,
        WWW,

        OdlisnaFakturacniAdresa,
        OdlisnaAdresaProvozovny,
   
        ObchNazev,
        ObchUlice,
        ObchMisto,
        ObchPsc,
        ObchStat  {
                Kod, Nazev
            },
        FaktNazev,
        FaktUlice, 
        FaktMisto,
        FaktPsc,
        FaktStat  {
                Kod, Nazev
            },
        ProvNazev,
        ProvUlice,
        ProvMisto,
        ProvPsc,
        ProvStat  {
                Kod, Nazev
            },            
        SeznamSpojeni
        {
            ID, SpojeniCislo, Poradi, TypSpojeni_ID, Vychozi,
                TypSpojeni
                  {
                  ID, Kod, Nazev, DruhSpojeni
                  }
        },
        PouzivatKredit, 
        HodnotaKreditu,
        VlastniSleva,
        HodnotaSlevy,
        SeznamCeniku {
                  ID, Poradi, Firma_ID, 
                   Cenik {ID, Kod, Nazev, Neaktivni, PlatnostOd, PlatnostDo}
                  },
        ZpusobDopravy  {
                  ID, Kod, Nazev
                  },
        ZpusobPlatby{
                  ID, Kod, Nazev
                  },
        VlastniSplatnostPohledavek,
        SplatnostPohledavek
    }
}

You can also use Variables for filtering.

query($conditions: String){
  Articles (Filter: $conditions){
        ID,
        Hidden,
        Create_Date,
        Modify_Date,
        Deleted,
        Parent_ID,
        Group_ID,
        Nazev,
        Katalog,
        Kod,
        PLU,
        CarovyKod,
        Zkratka12,
        Zkratka20
        TypArtiklu,
        Baleni,
        HlavniJednotka {ID, Kod},
        Popis1_Popis,
        Popis1_Poznamka,
        Popis2_Popis,
        Popis2_Poznamka,
        Popis3_Popis,
        Popis3_Poznamka,        
        Vyska {ID, Hodnota},
        Sirka {ID, Hodnota},
        Objem {ID, Hodnota},
        VlastniHmotnost,
        Zaruka_Doba,
        Vyrobce_Nazev, 
        Kategorie,       
        PosledniCenaCM,
        PosledniDodavka,
        NadrazenyArtikl {ID, Parent_ID, Katalog},
        NadrazenyArtikl_ID,
        HlavniDodavatel_ID,
        HlavniDodavatel {ID, NazevFirmy, DodavatelskyNazev, DodavatelskyKod, Firma_ID},
        Parametry {ID, TextovaHodnota, Hodnota_ID, Parametr_ID, Parametr {ID, Nazev, Kod} }
    }
}
{
    "conditions": "Nazev~ct~Mikina"
}

Response object

Properties of the wrapper object included in the response sent by S5API:

Data - the content (data)

RowCount - total number of records in the database (matching the request)

PageCount - number of pages (matching the request). If the number of records in the database (matching the request) exceeds the specified limit, only the number of records corresponding to this limit is returned. PageCount indicates how many requests the user must split the request into to obtain all the requested data (after aggregation).

Message - error message

StackTrace - contents of the memory stack at the time the error occurred

Status - response status [OK = 1, Warning = 2, Error = 3)]

  {
    "PageCount": 23,
    "RowCount": 46,
    "Data": {
        "Articles": [
            {
                "ID": "10e76c44-d1cb-4834-9b26-0248307d643b",
                "Nazev": "Boty Under Armour UA Charged Impulse 3-GRY vel. 44",
                "Vyrobce_Nazev": ""
            },
            {
                "ID": "c7ce703f-e21a-4b9f-b04c-03178c9e8a43",
                "Nazev": "Potisk",
                "Vyrobce_Nazev": ""
            }
        ]
    },
    "Status": 1,
    "Message": "",
    "StackTrace": ""
}

Last edited 13.11.2026