agency-invoicing

GET /v1/agency-invoicing/clients/{clientId}

One client, with their whole invoice history.

Tutti gli endpoint agency-invoicing

Autenticazione

Invia una chiave API come token di tipo bearer. La chiave deve disporre dell'autorizzazione agency.invoicing.view; una chiave sprovvista di tale autorizzazione viene rifiutata con 403 anziché 404.

L'ID della tua organizzazione va qui

Questo endpoint accetta org_id come parametro di query. Omettilo e la chiamata coprirà l'intero sottoalbero del tuo tenant; invialo per limitare la chiamata a una singola organizzazione.

L'identificativo della tua organizzazione si trova nella schermata delle chiavi API nella tua dashboard, accanto alla chiave stessa. È lo stesso identificativo in ogni chiamata che effettui.

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/agency-invoicing/clients/{clientId} \
  -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 you have raised against them, what they still owe and what they have been billed in total — the "all client history" screen in one request rather than a filtered list. Requires `agency.invoicing.view`.

Parametri

NomeTipoObbligatorioChe cos'è
clientId (path)Uuid
org_id (query)UuidNoWhich of your organizations is invoicing. Required only when you belong to more than one — otherwise it is inferred from your DIRECT membership, never from the subtree-expanded…

Risposta

NomeTipoObbligatorioChe cos'è
idUuidUUIDv7 identifier — sortable by creation time (docs/02 §8).
namestring
contact_namestringNo
emailstringNo
phonestringNo
addressstringNo
tax_number_labelstringNo
tax_numberstringNo
currencystring
localestringNoWhich language this client's invoices and payment page render in. An agency in Berlin invoicing a French client sends a French invoice.
notesstringNo
archivedbooleanNo
created_atstringNo
invoicesAgencyInvoice[]No
outstanding_minorintegerNoWhat this client still owes, in minor units.
invoiced_total_minorintegerNoEverything ever billed to them, void invoices excluded.

Errori che questo endpoint può restituire

401 · 403 · 404 · 429