agency-invoicing

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

One client, with their whole invoice history.

Све agency-invoicing крајње тачке

Сва документација за програмере →

Аутентификација

Пошаљите API кључ као bearer токен. Кључ мора имати дозволу agency.invoicing.view; кључ без ње се одбија уз 403, а не 404.

Где се уноси ID ваше организације

Ова крајња тачка прихвата org_id као параметар упита. Изоставите га и позив ће обухватити цело подстабло вашег закупа; пошаљите га да бисте сузили позив на једну организацију.

Идентификатор ваше организације се налази на екрану са API кључевима на вашој контролној табли, поред самог кључа. То је исти идентификатор у сваком позиву који упутите.

Испробајте

Замените све што је у угластим заградама сопственим вредностима, а чувар места кључа кључем са своје контролне табле.

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

Пријављени сте? API конзола на вашој контролној табли попуњава ваш прави id организације и ваш сопствени кључ, и покреће захтев према живом API-ју како бисте могли да видите стварни одговор. Отворите ову крајњу тачку у API конзоли

Детаљи

⭐ 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.

Параметри

НазивТипОбавезноШта је ово
clientId (path)UuidДа—
org_id (query)UuidНе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…

Одговор

НазивТипОбавезноШта је ово
idUuidДаUUIDv7 identifier — sortable by creation time (docs/02 §8).
namestringДа—
contact_namestringНе—
emailstringНе—
phonestringНе—
addressstringНе—
tax_number_labelstringНе—
tax_numberstringНе—
currencystringДа—
countrystringНеISO-3166-1 alpha-2, optional. Required only to bill this client on Zinn®'s own checkout (the platform organisation, docs/670 §3), where the country decides the VAT on the bill and…
localestringНеWhich language this client's invoices and payment page render in. An agency in Berlin invoicing a French client sends a French invoice.
notesstringНе—
archivedbooleanНе—
created_atstringНе—
invoicesAgencyInvoice[]Не—
outstanding_minorintegerНеWhat this client still owes, in minor units.
invoiced_total_minorintegerНеEverything ever billed to them, void invoices excluded.

Грешке које ова крајња тачка може вратити

401 · 403 · 404 · 429