Read ZUGFeRD XML
The Read ZUGFeRD XML endpoint allows users to extract structured invoice data from a ZUGFeRD-compliant XML document. This endpoint processes the provided XML file and returns key invoice details, such as invoice number, buyer and seller information, payment references, and itemized trade line data. It helps automate invoice handling and integration into financial or ERP systems.
Request
Method | POST |
API Resource URL (Endpoint) | *.druidplatform.com/api/document-processing/read-zugferd-xml |
Params |
Enter the ZUGFeRD standard version. |
Authorization |
Select Bearer Token. If you already have a Druid Vision Token generated for an Identity API service in the DRUID Portal, provide that token. For details on obtaining the token, refer to Druid Vision. If you don't have a token, generate one using the Authentication endpoint from Webhooks. For more information, see Webhooks. |
Body |
The request body is an XML file following the ZUGFeRD standard. Copy
XML file example body content
|
Response
The response returns the extracted invoice details in JSON format.
Example response
{
"InvoiceNo": "INV-123456",
"InvoiceDate": "2024-12-04T00:00:00",
"PaymentReference": "PAY-789",
"OrderNo": "ORD-56789",
"OrderDate": "2024-12-04T11:57:50",
"Buyer": {
"ID": {
"ID": "BUYER-001",
"SchemeID": 1
},
"Name": "Buyer Company",
"City": "Berlin",
"Postcode": "10115",
"Street": "Main Street 10"
},
"Seller": {
"ID": {
"ID": "SELLER-001",
"SchemeID": 1
},
"Name": "Seller Company",
"City": "Munich",
"Postcode": "80331",
"Street": "Business Road 5"
},
"TradeLineItems": [
{
"SellerAssignedID": "ITEM-001",
"BuyerAssignedID": "PROD-567",
"Name": "Product A",
"Description": "Electronic component",
"BilledQuantity": 10,
"LineTotalAmount": 100.00,
"UnitCode": "PCE"
}
],
"GrandTotalAmount": 100.00,
"DuePayableAmount": 100.00
}
If the request contains invalid data, an error message is returned in JSON format.