ZapytanieBetaQuery.client
One client by its identifier; null when there is no such client.
| Wymagany zakres | clients:read |
|---|---|
| Dostępne od | Prynt 0.28.0 |
| Stabilność | Beta (co to znaczy) |
Argumenty
| Nazwa | Typ | Opis |
|---|---|---|
idwymagane | ID! | Identifier of the client. |
Zwraca
Przykład
query Client($id: ID!) { client(id: $id) { id displayName legalName taxIdentificationNumber euVatNumber phone daysToPay defaultPaymentMethod isActive blockMode blockReason blockedAt clientNotes(first: 5) { type content contactDate authorName } }}{ "id": "6c2e4a1b-7d3f-4e5a-9b8c-0d1e2f3a4b5c"}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 Client($id: ID!) {\n client(id: $id) {\n id\n displayName\n legalName\n taxIdentificationNumber\n euVatNumber\n phone\n daysToPay\n defaultPaymentMethod\n isActive\n blockMode\n blockReason\n blockedAt\n clientNotes(first: 5) {\n type\n content\n contactDate\n authorName\n }\n }\n}", "variables": { "id": "6c2e4a1b-7d3f-4e5a-9b8c-0d1e2f3a4b5c" }}JSON{ "data": { "client": { "id": "6c2e4a1b-7d3f-4e5a-9b8c-0d1e2f3a4b5c", "displayName": "Wydawnictwo Lipowe sp. z o.o.", "legalName": "Wydawnictwo Lipowe sp. z o.o.", "taxIdentificationNumber": "5213000001", "euVatNumber": null, "phone": "+48221002030", "daysToPay": 14, "defaultPaymentMethod": "TRANSFER_POSTPAID", "isActive": true, "blockMode": "ALLOW_PRODUCTION_NO_RELEASE", "blockReason": "Wydanie towaru po zapłacie zaległej faktury.", "blockedAt": "2026-10-01T09:00:00.000Z", "clientNotes": [ { "type": "MEETING", "content": "Spotkanie w sprawie katalogu wiosennego: nakład 3000 szt., papier kredowy 135 g.", "contactDate": "2026-10-04T13:00:00.000Z", "authorName": "CRM Lipowe" }, { "type": "CALL", "content": "Pyta o dodruk katalogu jesiennego, 2000 szt.", "contactDate": "2026-10-03T10:30:00.000Z", "authorName": null } ] } }}