agency-time

POST /v1/agency/time/entries

Log time.

ሁሉም የ agency-time ማጠናቀቂያ ነጥቦች

ማረጋገጫ

የAPI ቁልፉን እንደ bearer token ይላኩ። ቁልፉ የagency.time.log ፈቃድ ሊኖረው ይገባል፤ ይህ ፈቃድ የሌለው ቁልፍ በ404 ሳይሆን በ403 ውድቅ ይደረጋል።

ይህ ኤንድፖይ መክፈቻ (endpoint) የድርጅት መታወቂያ (organisation id) አይወስድም። የእርስዎ ቁልፍ (key) እሱ የሚመለከተውን ድርጅት አስቀድሞ ይለያል፣ እና ምላሹም ለዚሁ የተወሰነ ነው።

ሞክሩት

በቅንፍ ውስጥ ያለውን ማንኛውንም ነገር በራስዎ እሴቶች ይተኩ፣ እና ቁልፍ ቦታ ያዢውን ከዳሽቦርድዎ በመጣ ቁልፍ ይተኩ።

curl -X POST https://api.zinndigital.com/v1/agency/time/entries \
  -H "Authorization: Bearer zdk_live_…" \
  -H "Content-Type: application/json" \
  -d '{ "project_id": <string>, "work_date": <string>, "minutes": <integer> }'

ገብተዋል? የመቆጣጠሪያ ማዕከልዎ ውስጥ ያለው የኤፒአይ ኮንሶል ትክክለኛውን የድርጅት መታወቂያዎን እና የራስዎን ቁልፍ ይሞላል፣ እና ትክክለኛውን ምላሽ ማየት እንዲችሉ ጥያቄውን በቀጥታ ከሚሰራው ኤፒአይ ጋር ያካሂደዋል። ይህን ኤንድፖይንት በAPI ኮንሶል ውስጥ ይክፈቱ

ዝርዝሮች

`minutes` is an integer, 1..1440. Requires `agency.time.log` for your own time, or `agency.time.manage` to pass `user_id` and log on somebody else's behalf. If this client's billing schedule is *"invoice straight away"*, logging arms it and starts the billing workflow immediately — the invoice is raised in seconds rather than at the next sweep, without the invoicing call ever sitting in this request.

የጥያቄ አካል

ስምዓይነትየሚያስፈልግምንነቱ
project_idstringአዎ
task_idstringአይ
work_datestringአዎ
minutesintegerአዎ
descriptionstringአይ
billablebooleanአይ
user_idstringአይLog on somebody else's behalf. Requires `agency.time.manage`; without it a caller may only log their own time.

ምላሽ

ስምዓይነትየሚያስፈልግምንነቱ
idstringአዎ
user_idstringአይ
project_idstringአዎ
project_namestringአይ
task_idstringአይ
task_namestringአይ
client_idstringአይ
work_datestringአዎ
minutesintegerአዎ⛔ 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_labelstringአዎPresentational only — never multiplied by anything.
descriptionstringአይ
billablebooleanአዎ
billing_run_idstringአይThe run that invoiced this entry. `null` means it is still outstanding.
billed_rate_minor_per_hourintegerአይ
billed_amount_minorintegerአይWhat 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_currencystringአይ
billed_under_fixed_pricebooleanአይTRUE 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_hourintegerአይThe 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>አይWhich rate card won, so a surprising invoice can be explained.
rate_kindstring<hourly, fixed>አይ
created_atstringአዎ

ይህ ማብቂያ ሊመልሳቸው የሚችሉ ስህተቶች

401 · 403 · 422