Przejdź do głównej zawartości

dieCuts

Dla: Programista

ZapytanieBetaQuery.dieCuts

Die-cuts in the warehouse, one page at a time, with the total count; archived ones only on request (isArchived) or when syncing. Filter and sort them; with updatedFrom and the UPDATED_AT sort, fetch only die-cuts changed since your last sync.

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

Argumenty

NazwaTypOpis
filterDieCutFilterInput

Conditions the die-cuts must meet; without it every die-cut is listed.

paginationPaginationInput

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

sortDieCutSortInput

Order of the list; without it newest first.

Zwraca

DieCutsResult!

Przykład

Zapytanie
query ChangedDieCuts($since: DateTime) {
dieCuts(
filter: { updatedFrom: $since }
sort: { field: UPDATED_AT, direction: ASC }
pagination: { page: 1, pageSize: 100 }
) {
items {
id
code
name
type
editionCount
clientId
archivedAt
updatedAt
}
}
}
Zmienne
{
"since": "2026-10-04T00:00:00.000Z"
}
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 ChangedDieCuts($since: DateTime) {\n dieCuts(\n filter: { updatedFrom: $since }\n sort: { field: UPDATED_AT, direction: ASC }\n pagination: { page: 1, pageSize: 100 }\n ) {\n items {\n id\n code\n name\n type\n editionCount\n clientId\n archivedAt\n updatedAt\n }\n }\n}",
"variables": {
"since": "2026-10-04T00:00:00.000Z"
}
}
JSON
Odpowiedź
{
"data": {
"dieCuts": {
"items": [
{
"id": "3f6b2a1c-8d4e-4f5a-9b6c-1d2e3f4a5b04",
"code": "K27",
"name": "Pudełko na kalendarz",
"type": "pudełko",
"editionCount": 12,
"clientId": "6c2e4a1b-7d3f-4e5a-9b8c-0d1e2f3a4b5c",
"archivedAt": null,
"updatedAt": "2026-10-04T13:20:00.000Z"
}
]
}
}
}