code-care
POST /v1/dev-requests/{request_id}/approve
Approve the estimate; work may start.
Authentication
Send an API key as a bearer token. The key must carry the billing.payment.manage permission; a key without it is refused with 403, not 404.
This endpoint takes no organisation id. Your key already identifies the organisation it belongs to, and the response is scoped to it.
Try it
Replace anything in angle brackets with your own values, and the key placeholder with a key from your dashboard.
curl -X POST https://api.zinndigital.com/v1/dev-requests/{request_id}/approve \
-H "Authorization: Bearer zdk_live_…" \
-H "Content-Type: application/json" \
-d '{ "terms_version": <string> }'Signed in? The API console in your dashboard fills in your real organisation id and your own key, and runs the request against the live API so you can see the actual response. Open this endpoint in the API console
Details
Reserves the covered time from the allowance of the month it is approved in and commits to the extra money shown (billed on completion for the real time, never above the approved estimate). terms_version must be the current Development services & Code Care terms. Refusals: not_estimated, terms_not_accepted, split_changed (the allowance moved; re-read and approve again), dev_invoice_unpaid, not_in_good_standing. Requires billing.payment.manage.
Parameters
| Name | Type | Required | What it is |
|---|---|---|---|
request_id (path) | string | Yes | — |
Request body
| Name | Type | Required | What it is |
|---|---|---|---|
terms_version | string | Yes | — |
Response
| Name | Type | Required | What it is |
|---|---|---|---|
id | string | Yes | — |
reference | string | Yes | — |
org_id | string | Yes | — |
site_id | string | No | — |
ticket_id | string | No | — |
title | string | Yes | — |
description | string | No | — |
kind | DevRequestKind | Yes | — |
status | DevRequestStatus | Yes | — |
access_consent | boolean | No | — |
estimate_note | string | No | — |
estimate_source | string<ai, ai_approved, staff> | No | — |
quote | DevRequestQuote | No | — |
approved_at | string | No | — |
logged_minutes | integer | No | — |
billed_covered_minutes | integer | No | — |
billed_extra_minutes | integer | No | — |
extra_amount_minor | integer | No | — |
currency | string | No | — |
backup_at | string | No | — |
ready_at | string | No | — |
completed_at | string | No | — |
site_suspended | boolean | No | The site is suspended because this request's invoice is unpaid. |
created_at | string | Yes | — |
work_logs | object[] | Yes | — |
ai_draft | object | No | Staff only. |
flagged_large | boolean | No | Staff only. Over 2 hours. |
auto_sent | boolean | No | Staff only. |
estimated_by | string | No | Staff only. |
Errors this endpoint can return
401 · 403 · 404 · 422