agency-time

GET /v1/agency/time/report

Time reporting for a period, by person, client and project.

Todos os endpoints de agency-time

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.

Onde vai o ID da sua organização

Este endpoint aceita org_id como parâmetro de consulta. Omita-o e a chamada abrangerá toda a sua subárvore de locatários; envie-o para restringir a chamada a uma única organização.

O ID da sua organização está na tela de chaves de API no seu painel, ao lado da própria chave. É o mesmo ID em todas as chamadas que você fizer.

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/report \
  -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

⛔ **Unbilled, unpriced and non-billable are three different things and this says which.** Collapsing them is how an agency loses money quietly: hours with no rate card and hours marked internal both contribute nothing to revenue, but one is money about to be lost and the other is a decision they made. `billable_minutes` is the total minus non-billable — *not* "billed". An hour logged as billable and not yet invoiced is billable work, and calling it anything else is how an agency talks itself out of chasing it.

Parâmetros

NomeTipoObrigatórioO que é
org_id (query)stringNão
from (query)stringNãoDefaults to the first of the current month.
to (query)stringNãoDefaults to today.
client_id (query)stringNão
user_id (query)stringNão

Resposta

NomeTipoObrigatórioO que é
period_startstringSim
period_endstringSim
total_minutesintegerSim
billable_minutesintegerNãoTotal minus NON-BILLABLE — ⛔ not "billed". An hour logged as billable and not yet invoiced is billable work, and calling it anything else is how an agency talks itself out of ch…
billed_minutesintegerSim
unbilled_minutesintegerSim
non_billable_minutesintegerSim
billed_minor_by_currencyobjectNão
by_userTimeReportBucket[]Não
by_clientTimeReportBucket[]Não
by_projectTimeReportBucket[]Não

Erros que este endpoint pode retornar

401 · 403 · 422