agency-invoicing
GET /v1/agency-invoicing/clients/{clientId}
One client, with their whole invoice history.
Autentizace
Zašlete API klíč jako nosný token (bearer token). Klíč musí mít oprávnění agency.invoicing.view; klíč bez něj je odmítnut s kódem 403, nikoli 404.
Sem patří ID vaší organizace
Tento koncový bod přijímá org_id jako parametr dotazu. Pokud ho vynecháte, volání pokryje celý podstrom vašeho nájemce; jeho odesláním volání zúžíte na jednu organizaci.
ID vaší organizace najdete na obrazovce API klíčů ve vašem přehledu, hned vedle samotného klíče. Je to stále stejné ID v každém volání, které provedete.
Vyzvednout
Nahraďte cokoli v závorkách vlastními hodnotami a zástupný symbol klíče klíčem z vašeho řídicího panelu.
curl -X GET https://api.zinndigital.com/v1/agency-invoicing/clients/{clientId} \
-H "Authorization: Bearer zdk_live_…"Přihlášeni? Konzole API ve vašem dashboardu automaticky doplní vaše skutečné ID organizace i váš vlastní klíč a odešle požadavek na živé API, abyste viděli reálnou odpověď. Otevřete tento koncový bod v konzoli API
Podrobnosti
⭐ 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`.
Parametry
| Název | Typ | Požadováno | Co to je |
|---|---|---|---|
clientId (path) | Uuid | Ano | — |
org_id (query) | Uuid | Ne | Which 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… |
Odpověď
| Název | Typ | Požadováno | Co to je |
|---|---|---|---|
id | Uuid | Ano | UUIDv7 identifier — sortable by creation time (docs/02 §8). |
name | string | Ano | — |
contact_name | string | Ne | — |
email | string | Ne | — |
phone | string | Ne | — |
address | string | Ne | — |
tax_number_label | string | Ne | — |
tax_number | string | Ne | — |
currency | string | Ano | — |
locale | string | Ne | Which language this client's invoices and payment page render in. An agency in Berlin invoicing a French client sends a French invoice. |
notes | string | Ne | — |
archived | boolean | Ne | — |
created_at | string | Ne | — |
invoices | AgencyInvoice[] | Ne | — |
outstanding_minor | integer | Ne | What this client still owes, in minor units. |
invoiced_total_minor | integer | Ne | Everything ever billed to them, void invoices excluded. |
Chyby, které může tento koncový bod vrátit
401 · 403 · 404 · 429