agency-time

POST /v1/agency/time/projects/from-quote

Start a project from a free-quote request.

Все эндпоинты agency-time

Вся документация для разработчиков

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

Отправьте ключ API в качестве токена носителя (bearer token). Ключ должен иметь разрешение agency.time.manage; ключ без него отклоняется с кодом 403, а не 404.

Идентификатор вашей организации

Этот эндпоинт принимает org_id в качестве поля в теле JSON.

Идентификатор вашей организации находится на экране ключей API в вашей панели управления, рядом с самим ключом. Это один и тот же идентификатор для каждого вашего запроса.

Попробовать

Замените всё в угловых скобках на собственные значения, а плейсхолдер ключа — на ключ из вашей панели управления.

curl -X POST https://api.zinndigital.com/v1/agency/time/projects/from-quote \
  -H "Authorization: Bearer zdk_live_…" \
  -H "Content-Type: application/json" \
  -d '{ "quote_id": <string> }'

Вошли в систему? Консоль API в вашей панели управления автоматически подставляет реальный идентификатор вашей организации и ваш собственный ключ, а также выполняет запрос к работающему API, чтобы вы могли увидеть актуальный ответ. Откройте эту конечную точку в API-консоли

Подробнее

Zinn Digital®'s own organisation only (docs/670 §2). In one transaction: the requester becomes a client (found by e-mail, or created, carrying the request's country), a project board is opened with the brief, a time project is linked to both in the quoted currency, the quoted price becomes a fixed-price task, and the request is marked won — which is what stops the admin queue's charge conversion and the draft-from-quote invoice billing the same job again. Requires agency.time.manage in the organisation and the quotes.manage staff permission the admin queue requires. Idempotent per request: a second call returns the project the first one made, with created: false.

Тело запроса

ИмяТипОбязательноЧто это
quote_idstringДа
amount_minorintegerНетThe agreed price, NET, in minor units — only for a request that has not been priced. On a priced request omit it; a different figure is refused.
currencystringНет
countrystringНетThe client's ISO-2 country, used only when the request carries none (the public form does not ask). The bill on the checkout needs it; anything but two letters is refused.
org_idstringНет

Ответ

ИмяТипОбязательноЧто это
projectTimeProjectДа
board_idstringДа
client_idstringДа
createdbooleanДаFALSE when a project for this request already existed and was returned.
price_already_billed_onstringНетThe reference of a bill already drafted straight from this request, when there was one — in which case the project carries no fixed price, because that bill charges it.

Ошибки, которые может возвращать этот эндпоинт

401 · 403 · 422