agency-time

POST /v1/agency/time/entries

Log time.

सबै agency-time इन्डपइन्टहरू

प्रमाणीकरण

एपिआई कुञ्जीलाई बियरर टोकन (bearer token) को रूपमा पठाउनुहोस्। कुञ्जीसँग agency.time.log अनुमति हुनुपर्छ; अनुमति नभएको कुञ्जीलाई 404 होइन, 403 मार्फत अस्वीकार गरिन्छ।

यो इन्डपोइन्टले कुनै संस्थाको आइडी लिँदैन। तपाईंको कुञ्जीले यस अन्तर्गत पर्ने संस्थालाई पहिल्यै पहिचान गर्छ, र प्रतिक्रिया त्यसैमा सीमित हुन्छ।

प्रयास गर्नुहोस्

कोणीय कोष्ठकभित्र भएका जुनसुकै कुरालाई आफ्नो मानहरूद्वारा बदल्नुहोस्, र मुख्य स्थानहोल्डरलाई तपाईंको ड्यासबोर्डको कुञ्जीद्वारा बदल्नुहोस्।

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 कन्सोलले तपाईंको वास्तविक संस्थाको आईडी र आफ्नै कुञ्जी भरिदिन्छ, र लाइभ API विरुद्ध अनुरोध चलाउँछ ताकि तपाईंले वास्तविक प्रतिक्रिया हेर्न सक्नुहोस्। यो एन्डपोइन्टलाई 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