billing
GET /v1/accounting/xero/invoices
Which of this organization's invoices are in its Xero.
Autenticazione
Invia una chiave API come token di tipo bearer. La chiave deve disporre dell'autorizzazione billing.view; una chiave sprovvista di tale autorizzazione viene rifiutata con 403 anziché 404.
Questo endpoint non richiede alcun ID organizzazione. La tua chiave identifica già l'organizzazione a cui appartiene e la risposta è limitata ad essa.
Provalo
Sostituisci qualsiasi elemento tra parentesi angolari con i tuoi valori e il segnaposto key con una chiave dalla tua dashboard.
curl -X GET https://api.zinndigital.com/v1/accounting/xero/invoices \
-H "Authorization: Bearer zdk_live_…"Hai effettuato l'accesso? La console API nella tua dashboard inserisce il tuo ID organizzazione reale e la tua chiave personale, ed esegue la richiesta sull'API live in modo da poter vedere la risposta effettiva. Apri questo endpoint nella console API
Dettagli
Every invoice the connection knows about, newest first, with its state and — where it failed or was not sent — the reason. ⭐ States other than `synced` are listed deliberately. An invoice that is simply absent from a list is indistinguishable from one the sync never saw, so a customer could not tell a deliberate skip from a bug. `total` is the true count, which may exceed the number of items returned. Requires `billing.view`.
Risposta
| Nome | Tipo | Obbligatorio | Che cos'è |
|---|---|---|---|
items | XeroInvoiceLink[] | Sì | — |
total | integer | Sì | The TRUE count, which may exceed `items`. ⛔ Never `len(items)` — a response where those are equal is exactly what a complete answer looks like, so returning the page size would… |
Errori che questo endpoint può restituire
401 · 403 · 429