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 zakres | warehouse:read |
|---|---|
| Dostępne od | Prynt 0.28.0 |
| Stabilność | Beta (co to znaczy) |
Argumenty
| Nazwa | Typ | Opis |
|---|---|---|
filter | SupplierFilterInput | Conditions the suppliers must meet; without it every supplier is listed. |
pagination | PaginationInput | Page of the list to return; without it the first page at the default size. |
sort | SupplierSortInput | Order of the list; without it alphabetical by name. |
Zwraca
Przykład
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 } }}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{ "data": { "suppliers": { "totalCount": 1, "items": [ { "id": "3f6b2a1c-8d4e-4f5a-9b6c-1d2e3f4a5b06", "code": "PAP", "name": "Papyrus Polska", "nip": "5260001234", "isActive": true, "updatedAt": "2026-10-01T09:00:00.000Z" } ] } }}