Skip to content

Create or replace a supplier's related-party record (ADMIN or higher)

PUT
/related-parties/suppliers/{supplierId}
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.

supplierId
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
relationship
string | null
<= 300 characters
agreement_reference
string | null
<= 200 characters
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
<= 200 characters
approval_reference
string | null
<= 200 characters
approval_exception
string | null
Allowed values: SPONSOR_EDUCATION STATE_FUNDED_EDUCATION RELIGIOUS_SERVICE
novel_or_contentious
boolean

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
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"
}
}

Supplier not found