agency-time
POST /v1/agency/time/entries
Log time.
توثيقِ شناخت
ایک بیرر ٹوکن کے طور پر ایک 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_id | string | ہاں | — |
task_id | string | نہیں | — |
work_date | string | ہاں | — |
minutes | integer | ہاں | — |
description | string | نہیں | — |
billable | boolean | نہیں | — |
user_id | string | نہیں | Log on somebody else's behalf. Requires agency.time.manage; without it a caller may only log their own time. |
جواب
| نام | قسم | لازمی | یہ کیا ہے |
|---|---|---|---|
id | string | ہاں | — |
user_id | string | نہیں | — |
project_id | string | ہاں | — |
project_name | string | نہیں | — |
task_id | string | نہیں | — |
task_name | string | نہیں | — |
client_id | string | نہیں | — |
work_date | string | ہاں | — |
minutes | integer | ہاں | ⛔ 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_label | string | ہاں | Presentational only — never multiplied by anything. |
description | string | نہیں | — |
billable | boolean | ہاں | — |
billing_run_id | string | نہیں | The run that invoiced this entry. null means it is still outstanding. |
billed_rate_minor_per_hour | integer | نہیں | — |
billed_amount_minor | integer | نہیں | 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_currency | string | نہیں | — |
billed_under_fixed_price | boolean | نہیں | 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_hour | integer | نہیں | 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_scope | string<task, project, client, org> | نہیں | Which rate card won, so a surprising invoice can be explained. |
rate_kind | string<hourly, fixed> | نہیں | — |
created_at | string | ہاں | — |
وہ خرابیان جو یہ اینڈ پوائنٹ واپس کر سکتا ہے
401 · 403 · 422