Create or replace a supplier's related-party record (ADMIN or higher)
PUT
/related-parties/suppliers/{supplierId}
const url = 'https://api.invogi.com/v1/related-parties/suppliers/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"relationship":"example","agreement_reference":"example","valid_from":"2026-04-15","valid_to":"2026-04-15","agreement_value":"example","report_reference":"example","approval_reference":"example","approval_exception":"SPONSOR_EDUCATION","novel_or_contentious":true}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://api.invogi.com/v1/related-parties/suppliers/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "relationship": "example", "agreement_reference": "example", "valid_from": "2026-04-15", "valid_to": "2026-04-15", "agreement_value": "example", "report_reference": "example", "approval_reference": "example", "approval_exception": "SPONSOR_EDUCATION", "novel_or_contentious": true }'Used by preview-only checks in the academy trust profile, so it never affects an invoice decision.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”supplierId
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
relationship
string | null
agreement_reference
string | null
valid_from
string | null format: date
valid_to
string | null format: date
agreement_value
This individual contract or agreement’s value in the financial year ending 31 August, in pounds; do not aggregate separate agreements with the supplier.
string | null
report_reference
string | null
approval_reference
string | null
approval_exception
string | null
novel_or_contentious
boolean
Responses
Section titled “Responses”Record saved
Media typeapplication/json
object
id
required
string
createdAt
required
string format: date-time
updatedAt
required
string format: date-time
organizationId
required
string
supplierId
required
string
relationship
required
null | string
agreementReference
required
null | string
validFrom
required
null | string
validTo
required
null | string
agreementValue
required
null | string
reportReference
required
null | string
approvalReference
required
null | string
approvalException
required
null | string
novelOrContentious
required
boolean
updatedByUserId
required
null | string
Example generated
{ "id": "example", "createdAt": "2026-04-15T12:00:00Z", "updatedAt": "2026-04-15T12:00:00Z", "organizationId": "example", "supplierId": "example", "relationship": "example", "agreementReference": "example", "validFrom": "example", "validTo": "example", "agreementValue": "example", "reportReference": "example", "approvalReference": "example", "approvalException": "example", "novelOrContentious": true, "updatedByUserId": "example"}Invalid request
Media typeapplication/json
API key lacks required scope/role
Media typeapplication/json
Supplier not found