توثيقِ شناخت

ایک بیرر ٹوکن کے طور پر ایک API کی بھیجیں۔ کی کے پاس 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…
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