Generate ZUGFeRD XML
The generate-zugferd-xml endpoint generates a ZUGFeRD-compliant XML invoice document based on the provided invoice data.
ZUGFeRD (Zentraler User Guide des Forums elektronische Rechnung Deutschland) is a standardized electronic invoicing format that enables seamless data exchange between businesses and organizations.
This endpoint converts structured invoice information into a ZUGFeRD XML format, ensuring compliance with industry standards. It is useful for businesses that need to generate electronic invoices in the ZUGFeRD format for automated processing and integration with financial systems.
Request
Method | POST |
API Resource URL (Endpoint) | *.druidplatform.com/api/document-processing/generate-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 must include invoice details such as invoice number, date, buyer and seller information, itemized trade line items, tax details, and payment terms. Copy
Request Body
|
Response
If the request is successful, the response is a ZUGFeRD-compliant XML document containing the structured invoice data.
Example response
<?xml version="1.0" encoding="utf-8"?>
<rsm:CrossIndustryDocument xmlns:rsm="urn:ferd:CrossIndustryDocument:invoice:1p0">
<rsm:HeaderExchangedDocument>
<ram:ID>INV-12345</ram:ID>
<ram:IssueDateTime>
<udt:DateTimeString format="102">20241204</udt:DateTimeString>
</ram:IssueDateTime>
</rsm:HeaderExchangedDocument>
<rsm:SpecifiedSupplyChainTradeTransaction>
<ram:ApplicableSupplyChainTradeAgreement>
<ram:SellerTradeParty>
<ram:Name>XYZ Ltd</ram:Name>
</ram:SellerTradeParty>
<ram:BuyerTradeParty>
<ram:Name>ABC Corp</ram:Name>
</ram:BuyerTradeParty>
</ram:ApplicableSupplyChainTradeAgreement>
<ram:IncludedSupplyChainTradeLineItem>
<ram:SpecifiedTradeProduct>
<ram:Name>Product A</ram:Name>
</ram:SpecifiedTradeProduct>
<ram:SpecifiedSupplyChainTradeDelivery>
<ram:BilledQuantity>10</ram:BilledQuantity>
</ram:SpecifiedSupplyChainTradeDelivery>
<ram:SpecifiedSupplyChainTradeSettlement>
<ram:SpecifiedTradeSettlementMonetarySummation>
<ram:LineTotalAmount>500.00</ram:LineTotalAmount>
</ram:SpecifiedTradeSettlementMonetarySummation>
</ram:SpecifiedSupplyChainTradeSettlement>
</ram:IncludedSupplyChainTradeLineItem>
</rsm:SpecifiedSupplyChainTradeTransaction>
</rsm:CrossIndustryDocument>
If the request contains invalid data, an error message is returned in JSON format.