Skip to content

Update a subcontract and re-check its invoices (ADMIN or higher)

PATCH
/construction/subcontracts/{subcontractId}
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" }'
subcontractId
required
string format: uuid
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.

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
Allowed values: OPEN CLOSED
vat_treatment
string | null
Allowed values: REVERSE_CHARGE NORMAL

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
object
error
required
object
code
required
string
Allowed values: NOT_FOUND UNAUTHORIZED FORBIDDEN INVALID_REQUEST CONFLICT RATE_LIMITED USAGE_LIMIT_EXCEEDED PROCESSING_FAILED
message
required
string
request_id
required
string
details

Optional stable, content-free context, e.g. {reason, resets_at, preparation_id}.

object
key
additional properties
One of:
string

Example

{
"error": {
"code": "NOT_FOUND"
}
}

API key lacks required scope/role

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: NOT_FOUND UNAUTHORIZED FORBIDDEN INVALID_REQUEST CONFLICT RATE_LIMITED USAGE_LIMIT_EXCEEDED PROCESSING_FAILED
message
required
string
request_id
required
string
details

Optional stable, content-free context, e.g. {reason, resets_at, preparation_id}.

object
key
additional properties
One of:
string

Example

{
"error": {
"code": "NOT_FOUND"
}
}

Subcontract not found

Another open subcontract uses this reference