Przejdź do głównej zawartości

suppliers

Dla: Programista

ZapytanieBetaQuery.suppliers

Suppliers of warehouse materials, one page at a time, with the total count. Filter and sort them; with updatedFrom and the UPDATED_AT sort, fetch only suppliers changed since your last sync.

Wymagany zakreswarehouse:read
Dostępne odPrynt 0.28.0
StabilnośćBeta (co to znaczy)

Argumenty

NazwaTypOpis
filterSupplierFilterInput

Conditions the suppliers must meet; without it every supplier is listed.

paginationPaginationInput

Page of the list to return; without it the first page at the default size.

sortSupplierSortInput

Order of the list; without it alphabetical by name.

Zwraca

SuppliersResult!

Przykład

Zapytanie
query Suppliers {
suppliers(
filter: { isActive: true }
sort: { field: NAME, direction: ASC }
pagination: { page: 1, pageSize: 50 }
) {
totalCount
items {
id
code
name
nip
email
isActive
updatedAt
}
}
}
Wywołanie (curl)
curl -sS https://twoja-drukarnia.prynt.pl/api/v1/graphql \
-H "Authorization: Bearer $PRYNT_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @- <<'JSON'
{
"query": "query Suppliers {\n suppliers(\n filter: { isActive: true }\n sort: { field: NAME, direction: ASC }\n pagination: { page: 1, pageSize: 50 }\n ) {\n totalCount\n items {\n id\n code\n name\n nip\n email\n isActive\n updatedAt\n }\n }\n}"
}
JSON
Odpowiedź
{
"data": {
"suppliers": {
"totalCount": 1,
"items": [
{
"id": "3f6b2a1c-8d4e-4f5a-9b6c-1d2e3f4a5b06",
"code": "PAP",
"name": "Papyrus Polska",
"nip": "5260001234",
"email": "[email protected]",
"isActive": true,
"updatedAt": "2026-10-01T09:00:00.000Z"
}
]
}
}
}