Create a subcontract on a project (ADMIN or higher)
POST
/construction/subcontracts
const url = 'https://api.invogi.com/v1/construction/subcontracts';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"operating_context_id":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","supplier_id":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","reference":"example","name":"example","currency":"example","amount_limit":"example","tolerance_pct":"example","valid_from":"2026-04-15","valid_to":"2026-04-15","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 POST \ --url https://api.invogi.com/v1/construction/subcontracts \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "operating_context_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "supplier_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "reference": "example", "name": "example", "currency": "example", "amount_limit": "example", "tolerance_pct": "example", "valid_from": "2026-04-15", "valid_to": "2026-04-15", "vat_treatment": "REVERSE_CHARGE" }'amount_limit is the agreed sum excluding VAT, including approved variations. vat_treatment is what the customer has determined; Invogi does not work it out.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”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
operating_context_id
required
string format: uuid
supplier_id
string | null format: uuid
reference
required
string
name
required
string
currency
required
string
amount_limit
string | null
tolerance_pct
A fraction from 0 to 1.
string
valid_from
string | null format: date
valid_to
string | null format: date
vat_treatment
string | null
Responses
Section titled “Responses”Subcontract created
Media typeapplication/json
object
name
required
string
status
required
string
id
required
string
createdAt
required
string format: date-time
updatedAt
required
string format: date-time
organizationId
required
string
supplierId
required
null | string
currency
required
string
validFrom
required
null | string
validTo
required
null | string
kind
required
string
metadata
required
operatingContextId
required
string
reference
required
string
amountLimit
required
null | string
tolerancePct
required
string
recoveryTreatment
required
string
recoveryBasis
required
null | string
vatTreatment
required
null | string
Example generated
{ "name": "example", "status": "example", "id": "example", "createdAt": "2026-04-15T12:00:00Z", "updatedAt": "2026-04-15T12:00:00Z", "organizationId": "example", "supplierId": "example", "currency": "example", "validFrom": "example", "validTo": "example", "kind": "example", "metadata": "example", "operatingContextId": "example", "reference": "example", "amountLimit": "example", "tolerancePct": "example", "recoveryTreatment": "example", "recoveryBasis": "example", "vatTreatment": "example"}Invalid request
Media typeapplication/json
API key lacks required scope/role
Media typeapplication/json
The project already has an open subcontract with this reference