Security
OAuth2(Required scopes: enrichment.write)
External id of the sales order that is globally unique across the provided sales order data
Example:"QUOTE12345"
Identifier of the client entity in the source system which can be used to separate data
Example:"CLIENT123"
List of key value pairs containing custom fields from the source system
Any nested structure with metadata that source system needs to send
Example:
{ "someTopLevelProperty": "value1", "someNestedProperty": { "nestedProperty": "value2" }, "someArrayProperty": [ "value3", "value4" ] }
- API EUhttps://api.cloud.hypatos.ai/v2/enrichment/quotes/{externalId}
- API UShttps://api.cloud.hypatos.com/v2/enrichment/quotes/{externalId}
- Mock serverhttps://hypatos.redocly.app/_mock/openapi/enrichment/quotes/{externalId}
curl -i -X PATCH \
'https://api.cloud.hypatos.ai/v2/enrichment/quotes/{externalId}' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/merge-patch+json' \
-d '{
"externalId": "QUOTE12345",
"externalClientId": "CLIENT123",
"documentId": "DOC12345",
"documents": [
{
"id": "DOC12345",
"type": "invoice"
}
],
"quoteNumber": "Q12345",
"customerOrderNumber": "CO12345",
"externalCompanyId": "COMP123",
"externalCustomerId": "CUST123",
"status": "approved",
"salesOrganizationCode": "SO123",
"distributionChannel": "DC123",
"division": "DIV123",
"salesGroup": "123",
"salesOffice": "456",
"type": "standard",
"subType": "recurring",
"issuedDate": "2023-01-01",
"validUntilDate": "2023-12-31",
"fiscalYearLabel": "FY2023",
"isCanceled": false,
"currency": "USD",
"totalNetAmount": 1000,
"totalTaxAmount": 190,
"totalGrossAmount": 1190,
"paymentTerms": {
"paymentTermKey": "T10",
"descriptions": [
{
"text": "Please pay us",
"language": "en"
}
]
},
"headerText": "This is a sample quote.",
"customFields": {
"property1": "string",
"property2": "string"
},
"customMetadata": {
"someTopLevelProperty": "value1",
"someNestedProperty": {
"nestedProperty": "value2"
},
"someArrayProperty": [
"value3",
"value4"
]
},
"quoteLines": [
{
"quoteLineNumber": "QL12345",
"externalCompanyId": "COMP123",
"product": {
"externalId": "PROD123",
"productNumber": "PN123",
"customerProductNumber": "CPN123",
"type": "standard",
"group": "electronics",
"description": "A high-quality electronic product.",
"manufacturer": "Acme Corp.",
"manufacturerNumber": "MN123",
"unspsc": "43211508",
"ean": "4006381333931",
"upc": "036000291452"
},
"status": "approved",
"quantity": 10,
"unitOfMeasure": "kg",
"unitPrice": 100,
"netAmount": 1000,
"totalTaxAmount": 190,
"grossAmount": 1190,
"taxCode": {
"code": "DEU_Standard",
"description": "DEU - Standard (19%)"
},
"description": "This is a sample quote line.",
"plant": "PLANT123",
"storageLocation": "LOC123",
"externalShippingAddressId": "ADDR123",
"externalBillingAddressId": "ADDR456",
"itemText": "Sample item text.",
"type": "standard",
"externalContractId": "CONTRACT123",
"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
Example:"QUOTE12345"
Identifier of the client entity in the source system which can be used to separate data
Example:"CLIENT123"
List of key value pairs containing custom fields from the source system
Any nested structure with metadata that source system needs to send
Example:
{ "someTopLevelProperty": "value1", "someNestedProperty": { "nestedProperty": "value2" }, "someArrayProperty": [ "value3", "value4" ] }
Response
{ "externalId": "QUOTE12345", "externalClientId": "CLIENT123", "documentId": "DOC12345", "documents": [ { … } ], "quoteNumber": "Q12345", "customerOrderNumber": "CO12345", "externalCompanyId": "COMP123", "externalCustomerId": "CUST123", "status": "approved", "salesOrganizationCode": "SO123", "distributionChannel": "DC123", "division": "DIV123", "salesGroup": "123", "salesOffice": "456", "type": "standard", "subType": "recurring", "issuedDate": "2023-01-01", "validUntilDate": "2023-12-31", "fiscalYearLabel": "FY2023", "isCanceled": false, "currency": "USD", "totalNetAmount": 1000, "totalTaxAmount": 190, "totalGrossAmount": 1190, "paymentTerms": { "paymentTermKey": "T10", "descriptions": [ … ] }, "headerText": "This is a sample quote.", "customFields": { "property1": "string", "property2": "string" }, "customMetadata": { "someTopLevelProperty": "value1", "someNestedProperty": { … }, "someArrayProperty": [ … ] }, "quoteLines": [ { … } ] }