agency-time
GET /v1/agency/time/billing-runs
Billing history — what has been billed, and what it consumed.
Autenticação
Envie uma chave de API como um token bearer. Este endpoint não especifica uma permissão específica na documentação, portanto, conceda à sua chave o mínimo necessário e verifique a resposta em vez de assumir.
Este endpoint não requer um ID de organização. Sua chave já identifica a organização à qual pertence, e a resposta é delimitada a ela.
Experimente
Substitua qualquer item entre colchetes por seus próprios valores e o espaço reservado para a chave por uma chave do seu painel.
curl -X GET https://api.zinndigital.com/v1/agency/time/billing-runs \
-H "Authorization: Bearer zdk_live_…"Conectado? O console da API no seu painel preenche o ID da sua organização real e a sua própria chave, e executa a requisição contra a API de produção para que você possa ver a resposta real. Abra este endpoint no console da API
Detalhes
`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.
Parâmetros
| Nome | Tipo | Obrigatório | O que é |
|---|---|---|---|
client_id (query) | string | Não | — |
status (query) | string<claimed, invoiced, failed, released> | Não | — |
limit (query) | integer | Não | Maximum items to return (page size). |
cursor (query) | string | Não | Opaque cursor from a previous page's `page.next_cursor`. |
Resposta
| Nome | Tipo | Obrigatório | O que é |
|---|---|---|---|
data | TimeBillingRun[] | Sim | — |
page | PageMeta | Sim | — |
Erros que este endpoint pode retornar
401 · 403