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/entries \
-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
Logged minutes, newest first. An entry that has not been billed carries `rate_minor_per_hour` — the rate that WOULD apply, resolved against its own `work_date` — so the timesheet shows what an hour is worth before it is invoiced. ⛔ `null` there means **unpriced**, not free. Work with no rate card is shown as unpriced with the remedy on the screen; it is never invoiced at zero, because billing it at zero would take it out of the unbilled pool for ever and the agency could never charge for it once the rate was set.
Parâmetros
| Nome | Tipo | Obrigatório | O que é |
|---|---|---|---|
client_id (query) | string | Não | — |
project_id (query) | string | Não | — |
user_id (query) | string | Não | — |
from (query) | string | Não | — |
to (query) | string | Não | — |
billed (query) | boolean | Não | Only billed (`true`) or only outstanding (`false`) work. |
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 | TimeEntry[] | Sim | — |
page | PageMeta | Sim | — |
Erros que este endpoint pode retornar
401 · 403