External id of the purchase order that is globally unique across the provided purchase order data
Identifier of the client entity in the source system which can be used to separate data
Number of the purchase order in the source system (not unique across clients)
Date when the purchase order was created in the external system
Label used in the source system for the fiscal year that the purchase order was created in
Two letter language code as defined in ISO 639-1
Indicates the invoicing progress of the purchase order (line) based on invoices posted against it
Indicates the delivery progress of the purchase order (line) based on goods receipts or service confirmations
Three letter currency code as defined in ISO 4217
Sum of all charges other than freight charges as defined on the purchase order
Total gross amount of purchase order (total net amount + total freight charges + total other charges + total tax amount)
Total net amount invoiced for this purchase order, calculated as the sum of the net amounts of all invoices posted against it
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" ] }
External unique id of the responsible purchaser in the source system
- API EUhttps://api.cloud.hypatos.ai/v2/enrichment/purchase-orders/{externalId}
- API UShttps://api.cloud.hypatos.com/v2/enrichment/purchase-orders/{externalId}
- Mock serverhttps://hypatos.redocly.app/_mock/openapi/enrichment/purchase-orders/{externalId}
curl -i -X PATCH \
'https://api.cloud.hypatos.ai/v2/enrichment/purchase-orders/{externalId}' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/merge-patch+json' \
-d '{
"externalId": "4500016221",
"externalClientId": "EXTERNAL_CLIENT_ID",
"purchaseOrderNumber": "PoNumber123",
"createdDate": "2000-12-31",
"fiscalYearLabel": "2023",
"language": "string",
"externalCompanyId": "DE01",
"type": "Service",
"externalSupplierId": "0000100000",
"status": "OPEN",
"invoicingStatus": "partial",
"deliveryStatus": "partial",
"currency": "EUR",
"totalNetAmount": 81,
"totalFreightCharges": 9,
"totalOtherCharges": 10,
"totalTaxAmount": 19,
"totalGrossAmount": 119,
"totalInvoicedNetAmount": 119,
"paymentTerms": {
"paymentTermKey": "T10",
"descriptions": [
{
"text": "Please pay us",
"language": "en"
}
]
},
"customFields": {
"property1": "string",
"property2": "string"
},
"customMetadata": {
"someTopLevelProperty": "value1",
"someNestedProperty": {
"nestedProperty": "value2"
},
"someArrayProperty": [
"value3",
"value4"
]
},
"purchaseOrderLines": [
{
"purchaseOrderLineNumber": "00010",
"externalCompanyId": "DE01",
"accountAssignments": [
{
"externalGlAccountId": "0000100GL1",
"externalCostCenterId": "0000100CO1",
"glAccountCode": "GL1",
"costCenterCode": "CO1",
"quantity": 2,
"externalProjectId": "EPI1",
"externalOrderId": "EOI1",
"costElementCode": "CE1",
"externalProfitCenterId": "EPCI1",
"profitCenterCode": "PCC1"
}
],
"type": "Service",
"subType": "Extra Qualifier",
"quantity": 2,
"status": "OPEN",
"invoicingStatus": "partial",
"deliveryStatus": "partial",
"netAmount": 1.23,
"totalTaxAmount": 1.23,
"grossAmount": 100.01,
"unitOfMeasure": "kg",
"orderUnit": {
"unitOfMeasure": "KAR",
"conversionFactorToBaseUnit": 30
},
"unitPrice": 19.0123,
"taxCode": {
"code": "DEU_Standard",
"description": "DEU - Standard (19%)"
},
"itemText": "Dell Laptop Latitude D630",
"material": {
"externalId": "2a6300181f08402e710ea3f180214bc1",
"supplierNumber": "123456789",
"type": "Operating Supplies",
"group": "Electronics",
"description": "Dell Laptop Latitude D630",
"manufacturer": "Acme Corporation",
"manufacturerNumber": "ACME-12345",
"unspsc": "43211508",
"ean": "4006381333931",
"baseUnitOfMeasure": "PCE"
},
"plant": "PLANT-001",
"delivered": true,
"completelyInvoiced": true,
"approved": true,
"plannedDeliveryDate": "2025-08-27",
"customFields": {
"property1": "string",
"property2": "string"
},
"customMetadata": {
"someTopLevelProperty": "value1",
"someNestedProperty": {
"nestedProperty": "value2"
},
"someArrayProperty": [
"value3",
"value4"
]
},
"deliveryAddress": {
"street": "123 Industrial Way",
"addressAdditional": "Suite 500, Dock 4",
"postcode": "90001",
"city": "Los Angeles",
"state": "CA",
"countryCode": "DE"
},
"deliveredQuantity": 55,
"orderConfirmations": [
{
"lineNumber": "0090",
"deliveryDate": "2024-10-15",
"quantity": 95,
"supplierReference": "SUP-REF-00192",
"createdAt": "2024-09-01"
}
],
"externalPlannerId": "PLAN-4410-B",
"accountAssignmentType": "K",
"conditions": [
{
"conditionType": "ZL01",
"description": "Alloy surcharge",
"amount": 12.5,
"currency": "EUR"
}
]
}
],
"productNumber": "123456789",
"externalPurchaserId": "PUR-88293-X",
"deliveryTerms": {
"deliveryTermKey": "FOB",
"descriptions": [
{
"text": "Free on Board - Port of Los Angeles",
"language": "en"
},
{
"text": "Franco a bordo - Puerto de Los Ángeles",
"language": "es"
}
],
"additionalInfo": "Some additional info"
}
}'Successfully updated
External id of the purchase order that is globally unique across the provided purchase order data
Identifier of the client entity in the source system which can be used to separate data
Number of the purchase order in the source system (not unique across clients)
Date when the purchase order was created in the external system
Label used in the source system for the fiscal year that the purchase order was created in
Two letter language code as defined in ISO 639-1
Indicates the invoicing progress of the purchase order (line) based on invoices posted against it
Indicates the delivery progress of the purchase order (line) based on goods receipts or service confirmations
Three letter currency code as defined in ISO 4217
Sum of all charges other than freight charges as defined on the purchase order
Total gross amount of purchase order (total net amount + total freight charges + total other charges + total tax amount)
Total net amount invoiced for this purchase order, calculated as the sum of the net amounts of all invoices posted against it
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" ] }
External unique id of the responsible purchaser in the source system
{ "externalId": "4500016221", "externalClientId": "EXTERNAL_CLIENT_ID", "purchaseOrderNumber": "PoNumber123", "createdDate": "2000-12-31", "fiscalYearLabel": "2023", "language": "string", "externalCompanyId": "DE01", "type": "Service", "externalSupplierId": "0000100000", "status": "OPEN", "invoicingStatus": "partial", "deliveryStatus": "partial", "currency": "EUR", "totalNetAmount": 81, "totalFreightCharges": 9, "totalOtherCharges": 10, "totalTaxAmount": 19, "totalGrossAmount": 119, "totalInvoicedNetAmount": 119, "paymentTerms": { "paymentTermKey": "T10", "descriptions": [ … ] }, "customFields": { "property1": "string", "property2": "string" }, "customMetadata": { "someTopLevelProperty": "value1", "someNestedProperty": { … }, "someArrayProperty": [ … ] }, "purchaseOrderLines": [ { … } ], "productNumber": "123456789", "externalPurchaserId": "PUR-88293-X", "deliveryTerms": { "deliveryTermKey": "FOB", "descriptions": [ … ], "additionalInfo": "Some additional info" } }