External id of the contract that is globally unique across the provided contract data
Identifier of the client entity in the source system which can be used to separate data
Document id that was assigned during upload to Hypatos
Indicates the current lifecycle state of the contract
Contract number assigned by the business partner
Description of the contract and its purpose
List of additional agreements linked to the contract
List of key value pairs containing custom fields from the source system
- API EUhttps://api.cloud.hypatos.ai/v2/enrichment/contracts/{externalId}
- API UShttps://api.cloud.hypatos.com/v2/enrichment/contracts/{externalId}
- Mock serverhttps://hypatos.redocly.app/_mock/openapi/enrichment/contracts/{externalId}
curl -i -X PATCH \
'https://api.cloud.hypatos.ai/v2/enrichment/contracts/{externalId}' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/merge-patch+json' \
-d '{
"externalId": "CONTRACT-2025-0001",
"externalClientId": "CONTRACT-2025-0001",
"documentId": "67c02594d4aa80eecbd39bbe",
"documents": [
{
"id": "63cac12c37bb02accb396cae",
"type": "invoice"
}
],
"contractNumber": "CN-2025-001",
"status": "active",
"businessPartnerContractNumber": "K9120-12",
"externalCompanyId": "DE01",
"salesOrganizationInfo": [
{
"externalSalesOrganizationId": "1000",
"distributionChannel": "2000",
"division": "3000",
"salesGroup": "4000",
"salesOffice": "5000",
"blockedForOrdering": true,
"blockedForDelivery": false,
"shippingAddresses": [
"ADDR001",
"ADDR002"
],
"billingAddresses": [
"ADDR003"
],
"salesOrganizationCode": "SO001",
"salesUnit": {
"unitOfMeasure": "PK",
"conversionFactorToBaseUnit": 1000,
"description": "Package of 10 units"
}
}
],
"businessPartner": {
"externalId": "0000100000",
"type": "supplier"
},
"title": "Software Maintenance Agreement",
"description": "Annual software maintenance contract for Acme Corp",
"createdDate": "2025-01-15",
"startDate": "2025-02-01",
"endDate": "2026-01-31",
"fiscalYearLabel": "2023",
"type": "Service Agreement",
"subType": "Quantity",
"currency": "EUR",
"totalNetAmount": 50000,
"totalTaxAmount": 9500,
"totalGrossAmount": 59500,
"paymentTerms": {
"paymentTermKey": "T10",
"descriptions": [
{
"text": "Please pay us",
"language": "en"
}
]
},
"parentContract": {
"externalId": "PARENT-2024-0005",
"contractNumber": "CN-2024-005"
},
"targetQuantity": 1000,
"targetValue": 200000,
"contractItems": [
{
"itemNumber": "001",
"category": "Service",
"description": "Annual software maintenance",
"netAmount": 25000,
"taxAmount": 4750,
"grossAmount": 29750,
"unitPrice": 25000,
"quantity": 1,
"unitOfMeasure": "EA",
"billingCycle": "Billing cycle for the contract item",
"durationMonths": 12,
"taxCode": {
"code": "DEU_Standard",
"description": "DEU - Standard (19%)"
}
}
],
"additionalAgreements": [
{
"externalId": "AGREEMENT-001",
"type": "downPaymentAllowed",
"value": true
}
],
"obligations": [
{
"party": "Company A",
"description": "Company A will deliver 1000 units of Product X per quarter"
}
],
"contacts": [
{
"firstName": "Koala",
"lastName": "Hinze",
"email": "accountant@sap.com",
"phoneNumber": 491001234567891
}
],
"customFields": {
"property1": "string",
"property2": "string"
},
"customMetadata": {
"someTopLevelProperty": "value1",
"someNestedProperty": {
"nestedProperty": "value2"
},
"someArrayProperty": [
"value3",
"value4"
]
}
}'Successfully updated
External id of the contract that is globally unique across the provided contract data
Identifier of the client entity in the source system which can be used to separate data
Document id that was assigned during upload to Hypatos
Indicates the current lifecycle state of the contract
Contract number assigned by the business partner
Description of the contract and its purpose
List of additional agreements linked to the contract
List of key value pairs containing custom fields from the source system
{ "externalId": "CONTRACT-2025-0001", "externalClientId": "CONTRACT-2025-0001", "documentId": "67c02594d4aa80eecbd39bbe", "documents": [ { … } ], "contractNumber": "CN-2025-001", "status": "active", "businessPartnerContractNumber": "K9120-12", "externalCompanyId": "DE01", "salesOrganizationInfo": [ { … } ], "businessPartner": { "externalId": "0000100000", "type": "supplier" }, "title": "Software Maintenance Agreement", "description": "Annual software maintenance contract for Acme Corp", "createdDate": "2025-01-15", "startDate": "2025-02-01", "endDate": "2026-01-31", "fiscalYearLabel": "2023", "type": "Service Agreement", "subType": "Quantity", "currency": "EUR", "totalNetAmount": 50000, "totalTaxAmount": 9500, "totalGrossAmount": 59500, "paymentTerms": { "paymentTermKey": "T10", "descriptions": [ … ] }, "parentContract": { "externalId": "PARENT-2024-0005", "contractNumber": "CN-2024-005" }, "targetQuantity": 1000, "targetValue": 200000, "contractItems": [ { … } ], "additionalAgreements": [ { … } ], "obligations": [ { … } ], "contacts": [ { … } ], "customFields": { "property1": "string", "property2": "string" }, "customMetadata": { "someTopLevelProperty": "value1", "someNestedProperty": { … }, "someArrayProperty": [ … ] } }