Record a payment certificate against a subcontract (ADMIN or higher)
POST
/construction/certificates
const url = 'https://api.invogi.com/v1/construction/certificates';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"spend_commitment_id":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","reference":"example","amount_certified":"example","certified_on":"2026-04-15"}'};
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/certificates \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "spend_commitment_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "reference": "example", "amount_certified": "example", "certified_on": "2026-04-15" }'Works for a payment certificate or notice. The amount is the sum due for that period, after retention and earlier payments, excluding VAT, not the cumulative value of work. The currency is the subcontract’s.
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
spend_commitment_id
required
string format: uuid
reference
required
string
amount_certified
required
string
certified_on
string | null format: date
Example generated
{ "spend_commitment_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "reference": "example", "amount_certified": "example", "certified_on": "2026-04-15"}Responses
Section titled “Responses”Certificate recorded
Media typeapplication/json
object
id
required
string
createdAt
required
string format: date-time
organizationId
required
string
currency
required
string
reference
required
string
spendCommitmentId
required
string
amountCertified
required
string
certifiedOn
required
null | string
Example generated
{ "id": "example", "createdAt": "2026-04-15T12:00:00Z", "organizationId": "example", "currency": "example", "reference": "example", "spendCommitmentId": "example", "amountCertified": "example", "certifiedOn": "example"}Invalid request
Media typeapplication/json
API key lacks required scope/role
Media typeapplication/json
The subcontract already has a certificate with this reference