ZapytanieBetaQuery.billingEntities
The print shop's own companies that invoice its orders (billing entities), one page at a time, with the total count: what Order.billingEntityId, Client.defaultInvoiceBillingEntityId and ProductInvoice.billingEntityId point at. A small list that rarely changes: read it whole and keep it.
| Wymagany zakres | reference:read |
|---|---|
| Dostępne od | Prynt 0.28.0 |
| Stabilność | Beta (co to znaczy) |
Argumenty
| Nazwa | Typ | Opis |
|---|---|---|
filter | BillingEntityFilterInput | Conditions the billing entities must meet; without it every billing entity is listed. |
pagination | PaginationInput | Page of the list to return; without it the first page at the default size. |
sort | BillingEntitySortInput | Order of the list; without it alphabetical by name. |
Zwraca
Przykład
query BillingEntities { billingEntities(pagination: { page: 1, pageSize: 100 }) { items { id name nip street buildingNumber zip city accountNumber fscCertificate } }}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 BillingEntities {\n billingEntities(pagination: { page: 1, pageSize: 100 }) {\n items {\n id\n name\n nip\n street\n buildingNumber\n zip\n city\n accountNumber\n fscCertificate\n }\n }\n}"}JSON{ "data": { "billingEntities": { "items": [ { "id": "8a9b0c1d-2e3f-4a4b-9c5d-6e7f8a9b0c1d", "name": "Drukarnia Przykład sp. z o.o.", "nip": "5250001009", "street": "Przemysłowa", "buildingNumber": "12", "zip": "30-701", "city": "Kraków", "accountNumber": "PL61109010140000071219812874", "fscCertificate": true } ] } }}