Security
OAuth2(Required scopes: enrichment.write)
External id of the contract that is globally unique across the provided contract data
Example:"CONTRACT-2025-0001"
Identifier of the client entity in the source system which can be used to separate data
Example:"CONTRACT-2025-0001"
Document id that was assigned during upload to Hypatos
Example:"67c02594d4aa80eecbd39bbe"
Indicates the current lifecycle state of the contract
Enum:"draft""active""pending""suspended""cancelled""expired""terminated"null
Example:"active"
Contract number assigned by the business partner
Example:"K9120-12"
Description of the contract and its purpose
Example:"Annual software maintenance contract for Acme Corp"
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
- API UShttps://api.cloud.hypatos.com/v2/enrichment/contracts
- Mock serverhttps://hypatos.redocly.app/_mock/openapi/enrichment/contracts
curl -i -X POST \
https://api.cloud.hypatos.ai/v2/enrichment/contracts \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/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"
]
}
}'Response
{ "id": "3a429dc8-56d4-42ef-a4cf-2ebc9ad1ef38" }