agency-invoicing

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

One client, with their whole invoice history.

Wszystkie punkty końcowe agency-invoicing

Uwierzytelnianie

Wyślij klucz API jako token bearer. Klucz musi posiadać uprawnienie agency.invoicing.view; klucz bez niego jest odrzucany z kodem 403, a nie 404.

Miejsce na identyfikator organizacji

Ten punkt końcowy przyjmuje org_id jako parametr zapytania. Pomiń go, a wywołanie obejmie całe drzewo dzierżawy; prześlij go, aby ograniczyć wywołanie do jednej organizacji.

Identyfikator Twojej organizacji znajduje się na ekranie kluczy API w Twoim panelu, obok samego klucza. Jest to ten sam identyfikator w każdym wywołaniu, które wykonujesz.

Wypróbuj

Zastąp wszystko w nawiasach ostrych własnymi wartościami, a zastępczy znacznik klucza kluczem ze swojego pulpitu nawigacyjnego.

curl -X GET https://api.zinndigital.com/v1/agency-invoicing/clients/{clientId} \
  -H "Authorization: Bearer zdk_live_…"

Zalogowany? Konsola API w Twoim panelu uzupełnia rzeczywiste identyfikator organizacji oraz Twój własny klucz i wykonuje żądanie względem aktywnego API, dzięki czemu możesz zobaczyć rzeczywistą odpowiedź. Otwórz ten punkt końcowy w konsoli API

Szczegóły

⭐ 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

NazwaTypWymaganeCo to jest
clientId (path)UuidTak
org_id (query)UuidNieWhich 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…

Odpowiedź

NazwaTypWymaganeCo to jest
idUuidTakUUIDv7 identifier — sortable by creation time (docs/02 §8).
namestringTak
contact_namestringNie
emailstringNie
phonestringNie
addressstringNie
tax_number_labelstringNie
tax_numberstringNie
currencystringTak
localestringNieWhich language this client's invoices and payment page render in. An agency in Berlin invoicing a French client sends a French invoice.
notesstringNie
archivedbooleanNie
created_atstringNie
invoicesAgencyInvoice[]Nie
outstanding_minorintegerNieWhat this client still owes, in minor units.
invoiced_total_minorintegerNieEverything ever billed to them, void invoices excluded.

Błędy, które ten punkt końcowy może zwrócić

401 · 403 · 404 · 429