Аутентификация

API кілтін bearer токені ретінде жіберіңіз. Бұл соңғы нүкте сипаттамада арнайы рұқсатты көрсетпейді, сондықтан болжағаннан гөрі кілтіңізге қажетті ең аз рұқсатты беріп, жауапты тексеріңіз.

Ұйымыңыздың идентификаторы орналасатын жер

Бұл соңғы нүкте JSON корпусында өріс ретінде org_id қабылдайды.

Сіздің ұйым идентификаторыңыз басқару панеліндегі API кілттері экранында, кілттің өзінің жанында орналасқан. Бұл сіз жасайтын әрбір шақырудағы бірдей идентификатор.

Әрекет етіп көру

Бұрыштық жақшалардағы кез келген нәрсені өз мәндеріңізбен, ал кілт орналастырушысын басқару тақтасынан алынған кілтпен алмастырыңыз.

curl -X POST https://api.zinndigital.com/v1/agency/time/rates \
  -H "Authorization: Bearer zdk_live_…" \
  -H "Content-Type: application/json" \
  -d '{ "scope": <string<task, project, client, org>>, "amount_minor": <integer>, "currency": <string>, "effective_from": <string> }'

Жүйеге кіргенсіз бе? Бақылау тақтасындағы API консолі ұйымыңыздың нақты идентификаторы мен жеке кілтіңізді автоматты түрде толтырады да, нақты жауапты көре алуыңыз үшін сұрауды тікелей жұмыс істеп тұрған API арқылы орындайды. Бұл соңғы нүктені API консолінде ашыңыз

Мәліметтер

amount_minor is the price of ONE HOUR for kind: hourly, and the price of the whole job for kind: fixed. ⛔ A fixed price is billed once for the task it is set on, however many hours are logged against it — the minutes are still recorded and reported, they simply do not each carry money. It is not "an hourly rate of zero".

Сұрау денесі

АтыTүріМіндеттіМазмұны
scopestring<task, project, client, org>Иә
scope_idstringЖоқ
kindstring<hourly, fixed>Жоқ
amount_minorintegerИә
currencystringИә
effective_fromstringИә
org_idstringЖоқ

Жауап

АтыTүріМіндеттіМазмұны
idstringИә
scopestring<task, project, client, org>Иә
scope_idstringЖоқThe task/project/client this applies to. null exactly when scope is org.
kindstring<hourly, fixed>Иә
amount_minorintegerИәMinor units. For hourly, the price of ONE HOUR — ⛔ never a price per minute, and never divided by 60 anywhere on this API.
currencystringИә
effective_fromstringИәApplies to work done on or after this date. Resolution is against the work's date, never today, so a rate rise does not re-price last month.
archivedbooleanИә

Бұл соңғы нүкте қайтара алатын қателер

401 · 403 · 422