agency-time
GET /v1/agency/time/unbilled
What is outstanding, per client and currency.
Аутентификација
Пошаљите API кључ као bearer токен. Ова крајња тачка не наводи конкретну дозволу у спецификацији, па свом кључу доделите најмања неопходна овлашћења и проверите одговор уместо да претпостављате.
Где се уноси ID ваше организације
Ова крајња тачка прихвата org_id као параметар упита. Изоставите га и позив ће обухватити цело подстабло вашег закупа; пошаљите га да бисте сузили позив на једну организацију.
Идентификатор ваше организације се налази на екрану са API кључевима на вашој контролној табли, поред самог кључа. То је исти идентификатор у сваком позиву који упутите.
Испробајте
Замените све што је у угластим заградама сопственим вредностима, а чувар места кључа кључем са своје контролне табле.
curl -X GET https://api.zinndigital.com/v1/agency/time/unbilled \
-H "Authorization: Bearer zdk_live_…"Пријављени сте? API конзола на вашој контролној табли попуњава ваш прави id организације и ваш сопствени кључ, и покреће захтев према живом API-ју како бисте могли да видите стварни одговор. Отворите ову крајњу тачку у API конзоли
Детаљи
The same figure a threshold trigger fires on — one function, deliberately, because two implementations of "how much is outstanding" is how a client is shown £900 and invoiced £1,100. unpriced_minutes is reported separately from the money: hours logged against work with no rate card are not worth zero, they are unpriced, and an agency that cannot see them will not fix them. can_bill says whether the invoicing suite is reachable at all, so the console never offers a Bill-now button that can only refuse.
Параметри
| Назив | Тип | Обавезно | Шта је ово |
|---|---|---|---|
org_id (query) | string | Не | — |
client_id (query) | string | Не | — |
until (query) | string | Не | Only count work up to and including this date. |
Одговор
| Назив | Тип | Обавезно | Шта је ово |
|---|---|---|---|
data | UnbilledBucket[] | Да | — |
can_bill | boolean | Да | Whether the agency invoicing suite is reachable at all. Told to the console rather than discovered by pressing the button, so it never offers a Bill-now that can only refuse. |
billing_target | string<agency_invoicing, platform_checkout> | Не | Where Bill now sends the work. platform_checkout only for Zinn Digital®'s own organisation, whose client work is billed on Zinn®'s checkout (docs/670 §3). |
can_start_from_quote | boolean | Не | Whether this caller may list quote requests and start projects from them here — the issuer organisation AND the same quotes.manage staff permission the admin queue requires. |
can_manage_checkout_bills | boolean | Не | Whether this caller may send and void checkout bills here — the issuer organisation AND the same billing.entitlement.manage staff permission the admin console requires. |
Грешке које ова крајња тачка може вратити
401 · 403 · 422