agency-time
GET /v1/agency/time/billing-runs
Billing history — what has been billed, and what it consumed.
Autenticazione
Invia una chiave API come bearer token. Questo endpoint non specifica un permesso specifico nella specifica, quindi assegna alla tua chiave i permessi minimi necessari e verifica la risposta invece di fare supposizioni.
Questo endpoint non richiede alcun ID organizzazione. La tua chiave identifica già l'organizzazione a cui appartiene e la risposta è limitata ad essa.
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/time/billing-runs \
-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
`actual` is derived from the time entries themselves rather than read off the run's stored columns, so a divergence between what was sent to the invoicing suite and what the rows now say is visible on the screen instead of theoretical.
Parametri
| Nome | Tipo | Obbligatorio | Che cos'è |
|---|---|---|---|
client_id (query) | string | No | — |
status (query) | string<claimed, invoiced, failed, released> | No | — |
limit (query) | integer | No | Maximum items to return (page size). |
cursor (query) | string | No | Opaque cursor from a previous page's `page.next_cursor`. |
Risposta
| Nome | Tipo | Obbligatorio | Che cos'è |
|---|---|---|---|
data | TimeBillingRun[] | Sì | — |
page | PageMeta | Sì | — |
Errori che questo endpoint può restituire
401 · 403