External id of the invoice that is globally unique across the provided invoice 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
Number of the invoice in the source system (not unique across clients)
External unique id of the bank account that the invoice payment was transferred to
Label used in the source system for the fiscal year that the invoice was posted in
Date when the invoice was issued by the supplier (printed on invoice document)
Three letter currency code as defined in ISO 4217
Total gross amount of invoice (total net amount + total freight charges + total other charges + total tax amount)
External unique id of the first approver of an invoice in the source system
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/invoices
- API UShttps://api.cloud.hypatos.com/v2/enrichment/invoices
- Mock serverhttps://hypatos.redocly.app/_mock/openapi/enrichment/invoices
curl -i -X POST \
https://api.cloud.hypatos.ai/v2/enrichment/invoices \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"externalId": "SUPPLIER_INVOICE-3-1",
"externalClientId": "EXTERNAL_CLIENT_ID",
"documentId": "63cac12c37bb02accb396cae",
"documents": [
{
"id": "63cac12c37bb02accb396cae",
"type": "invoice"
}
],
"supplierInvoiceNumber": "10000001",
"invoiceNumber": "12345",
"externalCompanyId": "DE01",
"externalSupplierId": "0000100000",
"externalBankAccountId": "12341234",
"fiscalYearLabel": "2023",
"issuedDate": "2000-12-31",
"receivedDate": "2000-12-31",
"postingDate": "2000-12-31",
"isCanceled": false,
"isCreditNote": true,
"externalCustomerId": "string",
"relatedInvoice": "SUPPLIER_INVOICE-3-2",
"currency": "EUR",
"totalNetAmount": 81,
"totalFreightCharges": 9,
"totalOtherCharges": 10,
"totalTaxAmount": 19,
"totalGrossAmount": 119,
"paymentTerms": {
"paymentTermKey": "T10",
"descriptions": [
{
"text": "Please pay us",
"language": "en"
}
]
},
"externalApproverId": "UserID#1234",
"customFields": {
"property1": "string",
"property2": "string"
},
"customMetadata": {
"someTopLevelProperty": "value1",
"someNestedProperty": {
"nestedProperty": "value2"
},
"someArrayProperty": [
"value3",
"value4"
]
},
"headerText": "doc header text",
"type": "FI",
"invoiceLines": [
{
"externalId": "00000001",
"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",
"quantity": 2,
"netAmount": 1.23,
"totalTaxAmount": 1.23,
"grossAmount": 100.01,
"unitOfMeasure": "kg",
"unitPrice": 19.0123,
"taxCode": {
"code": "DEU_Standard",
"description": "DEU - Standard (19%)"
},
"taxJurisdictionCode": "PA0000000",
"itemText": "Virtual Event ABC",
"externalPurchaseOrderId": "4500016221",
"purchaseOrderLineNumber": "00010",
"salesOrderNumber": "45001234",
"salesOrderLineNumber": "20",
"centralBankIndicator": "123",
"customFields": {
"property1": "string",
"property2": "string"
},
"customMetadata": {
"someTopLevelProperty": "value1",
"someNestedProperty": {
"nestedProperty": "value2"
},
"someArrayProperty": [
"value3",
"value4"
]
}
}
],
"withholdingTax": [
{
"key": "WHT-432",
"baseAmount": 632.78,
"amount": 21.39,
"currency": "EUR"
}
],
"documentType": "supplier invoice"
}'{ "id": "3a429dc8-56d4-42ef-a4cf-2ebc9ad1ef38" }