agency-time

PATCH /v1/agency/time/entries/{entryId}

Correct a time entry.

Bütün agency-time nöqtələri

Doğrulama

API açarını bearer token kimi göndərin. Bu səhifə spresifikasiyada xüsusi icazə tələb etmir, buna görə də açarınıza ehtiyac duyduğu minimum səviyyədə icazə verin və güman etmək əvəzinə cavabı yoxlayın.

Bu endpoint heç bir təşkilat ID-si tələb etmir. Sizin açarınız artıq aid olduğu təşkilatı müəyyən edir və cavab həmin təşkilat üçün məhdudlaşdırılır.

Sınaqdan keçir

Bucaqlı mötərizələrdə olan hór şeyi öz qiymətlərinizlə, açar yertutucusunu isə idarə panelinizdən bir açarla əvəz edin.

curl -X PATCH https://api.zinndigital.com/v1/agency/time/entries/{entryId} \
  -H "Authorization: Bearer zdk_live_…" \
  -H "Content-Type: application/json" \
  -d '{  }'

Sistemə daxil olmusunuz? İdarə panelinizdəki API konsolu real təşkilatınızın identifikatorunu və öz açarınızı avtomatik doldurur, sorğunu canlı API-yə qarşı icra edir ki, siz faktiki cavabı görə biləsiniz. Bu son nöqtəni API konsolunda açın

Təfərrüatlar

⛔ An entry that has been invoiced cannot be changed — 422. Changing the minutes on an invoiced line would make the timesheet disagree with a document the client is holding; the remedy is to void the draft invoice, which releases the time back into the pool.

Parametrlər

AdTipTələb olunurNədir
entryId (path)stringBəli

Sorğu gövdəsi

AdTipTələb olunurNədir
task_idstringXeyr
work_datestringXeyr
minutesintegerXeyr
descriptionstringXeyr
billablebooleanXeyr

Cavab

AdTipTələb olunurNədir
idstringBəli
user_idstringXeyr
project_idstringBəli
project_namestringXeyr
task_idstringXeyr
task_namestringXeyr
client_idstringXeyr
work_datestringBəli
minutesintegerBəli⛔ An INTEGER of minutes. There is no `hours` field on this API: an hours-as-float duration re-enters the money through the rate and no rounding point can recover it.
duration_labelstringBəliPresentational only — never multiplied by anything.
descriptionstringXeyr
billablebooleanBəli
billing_run_idstringXeyrThe run that invoiced this entry. `null` means it is still outstanding.
billed_rate_minor_per_hourintegerXeyr
billed_amount_minorintegerXeyrWhat was actually charged, frozen at billing time so the document can be re-derived years later even if every rate card has since changed.
billed_currencystringXeyr
billed_under_fixed_pricebooleanXeyrTRUE when these minutes were rolled into a task's FIXED price rather than charged by the hour. `billed_amount_minor` is then 0 and that zero is correct — read this flag, not the…
rate_minor_per_hourintegerXeyrThe rate that WOULD apply, resolved against this entry's own `work_date`, for an entry not yet billed. ⛔ `null` means **unpriced**, not free: work with no rate card is never inv…
rate_scopestring<task, project, client, org>XeyrWhich rate card won, so a surprising invoice can be explained.
rate_kindstring<hourly, fixed>Xeyr
created_atstringBəli

Bu son nöqtənin qaytara biləcəyi xətalar

401 · 403 · 404 · 422