ZapytanieBetaQuery.referenceData
Entries of one dictionary of the print shop (operation types, color profiles, product categories…), in its display order: what the …TypeId, colorProfileId and categoryId fields of orders point at. Small lists that rarely change: read them whole with includeInactive: true and keep them — older orders still point at entries the print shop no longer offers.
| Wymagany zakres | reference:read |
|---|---|
| Dostępne od | Prynt 0.28.0 |
| Stabilność | Beta (co to znaczy) |
Argumenty
| Nazwa | Typ | Opis |
|---|---|---|
includeInactive | Boolean! | True: also the entries the print shop no longer offers ( Domyślnie: |
typewymagane | ReferenceDataType! | Which dictionary to read. |
Zwraca
Przykład
query OperationTypes { referenceData(type: OPERATION_TYPE, includeInactive: true) { id code name isActive }}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 OperationTypes {\n referenceData(type: OPERATION_TYPE, includeInactive: true) {\n id\n code\n name\n isActive\n }\n}"}JSON{ "data": { "referenceData": [ { "id": "2c3d4e5f-6a7b-4c8d-9e0f-1a2b3c4d5e01", "code": "OFFSET", "name": "Druk offsetowy", "isActive": true }, { "id": "2c3d4e5f-6a7b-4c8d-9e0f-1a2b3c4d5e02", "code": "LAMINATION", "name": "Foliowanie", "isActive": true }, { "id": "2c3d4e5f-6a7b-4c8d-9e0f-1a2b3c4d5e03", "code": "UV_SPOT", "name": "Lakier UV wybiórczy (wycofany)", "isActive": false } ] }}