Przejdź do głównej zawartości

billingEntities

Dla: Programista

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 zakresreference:read
Dostępne odPrynt 0.28.0
StabilnośćBeta (co to znaczy)

Argumenty

NazwaTypOpis
filterBillingEntityFilterInput

Conditions the billing entities must meet; without it every billing entity is listed.

paginationPaginationInput

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

sortBillingEntitySortInput

Order of the list; without it alphabetical by name.

Zwraca

BillingEntitiesResult!

Przykład

Zapytanie
query BillingEntities {
billingEntities(pagination: { page: 1, pageSize: 100 }) {
items {
id
name
nip
street
buildingNumber
zip
city
accountNumber
fscCertificate
}
}
}
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 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
Odpowiedź
{
"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
}
]
}
}
}