Update a subcontract and re-check its invoices (ADMIN or higher)
PATCH
/construction/subcontracts/{subcontractId}
const url = 'https://api.invogi.com/v1/construction/subcontracts/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0';const options = { method: 'PATCH', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"amount_limit":"example","tolerance_pct":"example","valid_from":"2026-04-15","valid_to":"2026-04-15","status":"OPEN","vat_treatment":"REVERSE_CHARGE"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://api.invogi.com/v1/construction/subcontracts/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "amount_limit": "example", "tolerance_pct": "example", "valid_from": "2026-04-15", "valid_to": "2026-04-15", "status": "OPEN", "vat_treatment": "REVERSE_CHARGE" }'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”subcontractId
required
string format: uuid
Header Parameters
Section titled “Header Parameters”X-Invogi-Organization
string format: uuid
For a Clerk session, selects a workspace in which the user has an active membership. If omitted, the remembered accessible workspace is used. API keys remain bound to their own workspace and cannot select another tenant.
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
amount_limit
string | null
tolerance_pct
string
valid_from
string | null format: date
valid_to
string | null format: date
status
string
vat_treatment
string | null
Responses
Section titled “Responses”Subcontract updated
Media typeapplication/json
object
id
required
string
organizationId
required
string
operatingContextId
required
string
supplierId
required
null | string
kind
required
string
reference
required
string
name
required
string
currency
required
string
amountLimit
required
null | string
tolerancePct
required
string
validFrom
required
null | string
validTo
required
null | string
recoveryTreatment
required
string
recoveryBasis
required
null | string
vatTreatment
required
null | string
status
required
string
metadata
required
createdAt
required
string format: date-time
updatedAt
required
string format: date-time
Example generated
{ "id": "example", "organizationId": "example", "operatingContextId": "example", "supplierId": "example", "kind": "example", "reference": "example", "name": "example", "currency": "example", "amountLimit": "example", "tolerancePct": "example", "validFrom": "example", "validTo": "example", "recoveryTreatment": "example", "recoveryBasis": "example", "vatTreatment": "example", "status": "example", "metadata": "example", "createdAt": "2026-04-15T12:00:00Z", "updatedAt": "2026-04-15T12:00:00Z"}Invalid request
Media typeapplication/json
API key lacks required scope/role
Media typeapplication/json
Subcontract not found
Another open subcontract uses this reference