agency-time

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

Start a project from a free-quote request.

Tous les points de terminaison agency-time

Toute la documentation pour développeurs

Authentification

Envoyez une clé API en tant que jeton du porteur. La clé doit posséder l'autorisation agency.time.manage ; une clé qui ne l'a pas est refusée avec le code 403, et non 404.

Où insérer l'ID de votre organisation

Cet endpoint prend org_id comme champ dans le corps JSON.

L'identifiant de votre organisation se trouve sur l'écran des clés API de votre tableau de bord, à côté de la clé elle-même. Il s'agit du même identifiant pour chaque appel que vous effectuez.

Essayer

Remplacez tout ce qui se trouve entre crochets par vos propres valeurs, et le espace réservé à la clé par une clé de votre tableau de bord.

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> }'

Connecté ? La console d'API de votre tableau de bord saisit votre véritable ID d'organisation ainsi que votre propre clé, et exécute la requête sur l'API de production afin que vous puissiez voir la réponse réelle. Ouvrir ce point de terminaison dans la console API

Détails

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.

Corps de la requête

NomTypeObligatoireQu'est-ce que c'est
quote_idstringOui
amount_minorintegerNonThe 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.
currencystringNon
countrystringNonThe 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_idstringNon

Réponse

NomTypeObligatoireQu'est-ce que c'est
projectTimeProjectOui
board_idstringOui
client_idstringOui
createdbooleanOuiFALSE when a project for this request already existed and was returned.
price_already_billed_onstringNonThe 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.

Erreurs que cet point de terminaison peut renvoyer

401 · 403 · 422