External id of the sales order that is globally unique across the provided sales order 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
Sales order number provided by the issuing customer
Number of the sales order in the source system (not unique across clients)
Date when the invoice was issued by the supplier (printed on invoice document)
Label used in the source system for the fiscal year that the invoice was posted in
Three letter currency code as defined in ISO 4217
Total gross amount of sales order (total net amount + total tax amount)
List of key value pairs containing custom fields from the source system
Any nested structure with metadata that source system needs to send
{ "someTopLevelProperty": "value1", "someNestedProperty": { "nestedProperty": "value2" }, "someArrayProperty": [ "value3", "value4" ] }
- API EUhttps://api.cloud.hypatos.ai/v2/enrichment/sales-orders/{externalId}
- API UShttps://api.cloud.hypatos.com/v2/enrichment/sales-orders/{externalId}
- Mock serverhttps://hypatos.redocly.app/_mock/openapi/enrichment/sales-orders/{externalId}
curl -i -X PATCH \
'https://api.cloud.hypatos.ai/v2/enrichment/sales-orders/{externalId}' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/merge-patch+json' \
-d '{
"externalId": "DE01",
"externalClientId": "EXTERNAL_CLIENT_ID",
"documentId": "63cac12c37bb02accb396cae",
"documents": [
{
"id": "63cac12c37bb02accb396cae",
"type": "invoice"
}
],
"customerOrderNumber": "CUSTOMER_ORDER_NUMBER",
"salesOrderNumber": "SALES_ORDER_NUMBER",
"externalCompanyId": "DE01",
"externalCustomerId": "CO01",
"salesOrganizationCode": "SO001",
"distributionChannel": "CH1",
"division": "DIV01",
"salesGroup": "123456",
"salesOffice": "98765",
"type": "OR",
"subType": "recurring",
"issuedDate": "2000-12-31",
"receivedDate": "2000-12-31",
"fiscalYearLabel": "2023",
"requestedDeliveryDate": "2000-12-31",
"isCanceled": false,
"currency": "EUR",
"totalNetAmount": 100,
"totalTaxAmount": 19,
"totalGrossAmount": 119,
"paymentTerms": {
"paymentTermKey": "T10",
"descriptions": [
{
"text": "Please pay us",
"language": "en"
}
]
},
"headerText": "doc header text",
"customFields": {
"property1": "string",
"property2": "string"
},
"customMetadata": {
"someTopLevelProperty": "value1",
"someNestedProperty": {
"nestedProperty": "value2"
},
"someArrayProperty": [
"value3",
"value4"
]
},
"salesOrderLines": [
{
"plannedDeliveryDate": "2025-08-27",
"orderLineNumber": "00000001",
"externalCompanyId": "DE01",
"externalProductId": "PO01",
"quantity": 2,
"unitOfMeasure": "kg",
"unitPrice": 100,
"netAmount": 200,
"totalTaxAmount": 38,
"grossAmount": 238,
"taxCode": {
"code": "DEU_Standard",
"description": "DEU - Standard (19%)"
},
"description": "DEU - Standard (19%)",
"plant": "PLANT-001",
"storageLocation": "BOX-001",
"externalShippingAddressId": "DE-123E",
"externalBillingAddressId": "DE-123E",
"itemText": "Sold item ABC",
"type": "Item type",
"externalQuoteId": "EQ01",
"quoteLineNumber": "LN01",
"externalContractId": "ECID01",
"customFields": {
"property1": "string",
"property2": "string"
},
"customMetadata": {
"someTopLevelProperty": "value1",
"someNestedProperty": {
"nestedProperty": "value2"
},
"someArrayProperty": [
"value3",
"value4"
]
}
}
]
}'Successfully updated
External id of the sales order that is globally unique across the provided sales order 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
Sales order number provided by the issuing customer
Number of the sales order in the source system (not unique across clients)
Date when the invoice was issued by the supplier (printed on invoice document)
Label used in the source system for the fiscal year that the invoice was posted in
Three letter currency code as defined in ISO 4217
Total gross amount of sales order (total net amount + total tax amount)
List of key value pairs containing custom fields from the source system
Any nested structure with metadata that source system needs to send
{ "someTopLevelProperty": "value1", "someNestedProperty": { "nestedProperty": "value2" }, "someArrayProperty": [ "value3", "value4" ] }
{ "externalId": "DE01", "externalClientId": "EXTERNAL_CLIENT_ID", "documentId": "63cac12c37bb02accb396cae", "documents": [ { … } ], "customerOrderNumber": "CUSTOMER_ORDER_NUMBER", "salesOrderNumber": "SALES_ORDER_NUMBER", "externalCompanyId": "DE01", "externalCustomerId": "CO01", "salesOrganizationCode": "SO001", "distributionChannel": "CH1", "division": "DIV01", "salesGroup": "123456", "salesOffice": "98765", "type": "OR", "subType": "recurring", "issuedDate": "2000-12-31", "receivedDate": "2000-12-31", "fiscalYearLabel": "2023", "requestedDeliveryDate": "2000-12-31", "isCanceled": false, "currency": "EUR", "totalNetAmount": 100, "totalTaxAmount": 19, "totalGrossAmount": 119, "paymentTerms": { "paymentTermKey": "T10", "descriptions": [ … ] }, "headerText": "doc header text", "customFields": { "property1": "string", "property2": "string" }, "customMetadata": { "someTopLevelProperty": "value1", "someNestedProperty": { … }, "someArrayProperty": [ … ] }, "salesOrderLines": [ { … } ] }