{
  "info": {
    "name": "NormAPI — XRechnung & ZUGFeRD API",
    "description": "Generate XRechnung (UBL/CII) and ZUGFeRD/Factur-X invoices from JSON, validate existing XML/PDF invoices, or read them back into JSON through a REST API. Generated documents are checked with the official KoSIT validator before delivery.\n\n## Quick start\n\n1. Fork this collection into your own workspace.\n2. Open **Validation → Validate an invoice (XML)** and click **Send**. The request contains a fictional sample invoice and works without an API key or local file.\n3. For account-based generation, create a [free NormAPI account](https://normapi.com/en/account), create a key, and set `apiKey` in your own fork or a private environment. The public collection leaves this value blank.\n4. Open a request under **Generation** and edit its JSON. Choose UBL, CII or a ZUGFeRD PDF.\n\nA free account includes 50 generated invoices per month. Validation and parsing are free; anonymous rate limits and a 5 MB input limit apply. Successful account-based generation counts against the monthly allowance; rejected invoices do not.\n\n## Reading results\n\n- Validation returns HTTP 200 for both valid and invalid invoices. Read `acceptable` for the verdict. An unrecognised profile has no matching scenario; an empty findings list alone does not establish validity.\n- Every business-rule finding includes a plain-language explanation with its meaning, typical cause, fix and documentation link. Schema findings carry the schema message. Explanations are in English by default; use `Accept-Language: de` for German.\n- Every validation result and generated document identifies its rule set in `X-Normapi-Ruleset`.\n- Parsing returns the invoice in exactly the shape generation takes, so a document can be read, changed and generated again. Amounts that generation computes are in `stated` as exact strings; `notMapped` lists every value of the document the response does not carry.\n- Generation returns XML or PDF on HTTP 200. HTTP 422 contains findings explaining why an invoice could not be generated. HTTP 402 indicates an exhausted account allowance; HTTP 429 includes a retry interval.\n\nProcessing takes place in the EU without storing invoice contents.\n\n[Website](https://normapi.de/) · [English API documentation](https://normapi.com/en/docs) · [Pricing](https://normapi.com/en/pricing) · [Free browser validator](https://normapi.de/validator)\n\nSupport: `kontakt@normapi.de`",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "variable": [
    {
      "key": "baseUrl",
      "value": "https://api.normapi.de",
      "type": "string",
      "description": "NormAPI production API."
    },
    {
      "key": "apiKey",
      "value": "",
      "type": "string",
      "description": "Set your account key in your own fork or private environment. The public value stays empty."
    }
  ],
  "auth": {
    "type": "bearer",
    "bearer": [
      {
        "key": "token",
        "value": "{{apiKey}}",
        "type": "string"
      }
    ]
  },
  "item": [
    {
      "name": "Validation",
      "description": "Check existing invoices for free. The XML request is ready to send without authentication or file setup.",
      "item": [
        {
          "name": "Validate an invoice (XML)",
          "request": {
            "method": "POST",
            "auth": {
              "type": "noauth"
            },
            "header": [
              {
                "key": "Content-Type",
                "value": "application/xml"
              },
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Accept-Language",
                "value": "en",
                "description": "Plain-language explanations: en or de. The official rule text is unchanged."
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/validate",
              "host": ["{{baseUrl}}"],
              "path": ["v1", "validate"]
            },
            "body": {
              "mode": "raw",
              "raw": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Invoice xmlns=\"urn:oasis:names:specification:ubl:schema:xsd:Invoice-2\"\n  xmlns:cac=\"urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2\"\n  xmlns:cbc=\"urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2\">\n  <cbc:CustomizationID>urn:cen.eu:en16931:2017#compliant#urn:xeinkauf.de:kosit:xrechnung_3.0</cbc:CustomizationID>\n  <cbc:ProfileID>urn:fdc:peppol.eu:2017:poacc:billing:01:1.0</cbc:ProfileID>\n  <cbc:ID>POSTMAN-2026-0001</cbc:ID>\n  <cbc:IssueDate>2026-10-08</cbc:IssueDate>\n  <cbc:DueDate>2026-11-07</cbc:DueDate>\n  <cbc:InvoiceTypeCode>380</cbc:InvoiceTypeCode>\n  <cbc:DocumentCurrencyCode>EUR</cbc:DocumentCurrencyCode>\n  <cbc:BuyerReference>04011000-1234-56</cbc:BuyerReference>\n  <cac:AccountingSupplierParty>\n    <cac:Party>\n      <cbc:EndpointID schemeID=\"EM\">rechnung@muster.de</cbc:EndpointID>\n      <cac:PostalAddress>\n        <cbc:StreetName>Musterweg 1</cbc:StreetName>\n        <cbc:CityName>Berlin</cbc:CityName>\n        <cbc:PostalZone>10115</cbc:PostalZone>\n        <cac:Country>\n          <cbc:IdentificationCode>DE</cbc:IdentificationCode>\n        </cac:Country>\n      </cac:PostalAddress>\n      <cac:PartyTaxScheme>\n        <cbc:CompanyID>DE123456789</cbc:CompanyID>\n        <cac:TaxScheme>\n          <cbc:ID>VAT</cbc:ID>\n        </cac:TaxScheme>\n      </cac:PartyTaxScheme>\n      <cac:PartyLegalEntity>\n        <cbc:RegistrationName>Muster GmbH</cbc:RegistrationName>\n      </cac:PartyLegalEntity>\n      <cac:Contact>\n        <cbc:Name>Anna Muster</cbc:Name>\n        <cbc:Telephone>+49 30 123456</cbc:Telephone>\n        <cbc:ElectronicMail>anna@muster.de</cbc:ElectronicMail>\n      </cac:Contact>\n    </cac:Party>\n  </cac:AccountingSupplierParty>\n  <cac:AccountingCustomerParty>\n    <cac:Party>\n      <cbc:EndpointID schemeID=\"EM\">eingang@beispiel.de</cbc:EndpointID>\n      <cac:PostalAddress>\n        <cbc:StreetName>Beispielallee 2</cbc:StreetName>\n        <cbc:CityName>Hamburg</cbc:CityName>\n        <cbc:PostalZone>20095</cbc:PostalZone>\n        <cac:Country>\n          <cbc:IdentificationCode>DE</cbc:IdentificationCode>\n        </cac:Country>\n      </cac:PostalAddress>\n      <cac:PartyLegalEntity>\n        <cbc:RegistrationName>Beispiel AG</cbc:RegistrationName>\n      </cac:PartyLegalEntity>\n    </cac:Party>\n  </cac:AccountingCustomerParty>\n  <cac:Delivery>\n    <cbc:ActualDeliveryDate>2026-10-08</cbc:ActualDeliveryDate>\n  </cac:Delivery>\n  <cac:PaymentMeans>\n    <cbc:PaymentMeansCode>58</cbc:PaymentMeansCode>\n    <cac:PayeeFinancialAccount>\n      <cbc:ID>DE02120300000000202051</cbc:ID>\n    </cac:PayeeFinancialAccount>\n  </cac:PaymentMeans>\n  <cac:PaymentTerms>\n    <cbc:Note>Zahlbar innerhalb von 30 Tagen.</cbc:Note>\n  </cac:PaymentTerms>\n  <cac:TaxTotal>\n    <cbc:TaxAmount currencyID=\"EUR\">182.40</cbc:TaxAmount>\n    <cac:TaxSubtotal>\n      <cbc:TaxableAmount currencyID=\"EUR\">960.00</cbc:TaxableAmount>\n      <cbc:TaxAmount currencyID=\"EUR\">182.40</cbc:TaxAmount>\n      <cac:TaxCategory>\n        <cbc:ID>S</cbc:ID>\n        <cbc:Percent>19.00</cbc:Percent>\n        <cac:TaxScheme>\n          <cbc:ID>VAT</cbc:ID>\n        </cac:TaxScheme>\n      </cac:TaxCategory>\n    </cac:TaxSubtotal>\n  </cac:TaxTotal>\n  <cac:LegalMonetaryTotal>\n    <cbc:LineExtensionAmount currencyID=\"EUR\">960.00</cbc:LineExtensionAmount>\n    <cbc:TaxExclusiveAmount currencyID=\"EUR\">960.00</cbc:TaxExclusiveAmount>\n    <cbc:TaxInclusiveAmount currencyID=\"EUR\">1142.40</cbc:TaxInclusiveAmount>\n    <cbc:PayableAmount currencyID=\"EUR\">1142.40</cbc:PayableAmount>\n  </cac:LegalMonetaryTotal>\n  <cac:InvoiceLine>\n    <cbc:ID>1</cbc:ID>\n    <cbc:InvoicedQuantity unitCode=\"HUR\">8</cbc:InvoicedQuantity>\n    <cbc:LineExtensionAmount currencyID=\"EUR\">960.00</cbc:LineExtensionAmount>\n    <cac:Item>\n      <cbc:Name>Beratung</cbc:Name>\n      <cac:ClassifiedTaxCategory>\n        <cbc:ID>S</cbc:ID>\n        <cbc:Percent>19</cbc:Percent>\n        <cac:TaxScheme>\n          <cbc:ID>VAT</cbc:ID>\n        </cac:TaxScheme>\n      </cac:ClassifiedTaxCategory>\n    </cac:Item>\n    <cac:Price>\n      <cbc:PriceAmount currencyID=\"EUR\">120.0</cbc:PriceAmount>\n    </cac:Price>\n  </cac:InvoiceLine>\n</Invoice>\n",
              "options": {
                "raw": {
                  "language": "xml"
                }
              }
            },
            "description": "Send the included fictional XRechnung immediately, without an API key or local file. Replace the raw body with your own UBL or CII XML. HTTP 200 means the file was examined; read acceptable for the verdict. The saved error example changes the payment total and demonstrates BR-CO-16."
          },
          "response": [
            {
              "name": "Valid XRechnung — acceptable: true",
              "originalRequest": {
                "method": "POST",
                "auth": {
                  "type": "noauth"
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/xml"
                  },
                  {
                    "key": "Accept",
                    "value": "application/json"
                  },
                  {
                    "key": "Accept-Language",
                    "value": "en",
                    "description": "Plain-language explanations: en or de. The official rule text is unchanged."
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/v1/validate",
                  "host": ["{{baseUrl}}"],
                  "path": ["v1", "validate"]
                },
                "body": {
                  "mode": "raw",
                  "raw": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Invoice xmlns=\"urn:oasis:names:specification:ubl:schema:xsd:Invoice-2\"\n  xmlns:cac=\"urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2\"\n  xmlns:cbc=\"urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2\">\n  <cbc:CustomizationID>urn:cen.eu:en16931:2017#compliant#urn:xeinkauf.de:kosit:xrechnung_3.0</cbc:CustomizationID>\n  <cbc:ProfileID>urn:fdc:peppol.eu:2017:poacc:billing:01:1.0</cbc:ProfileID>\n  <cbc:ID>POSTMAN-2026-0001</cbc:ID>\n  <cbc:IssueDate>2026-10-08</cbc:IssueDate>\n  <cbc:DueDate>2026-11-07</cbc:DueDate>\n  <cbc:InvoiceTypeCode>380</cbc:InvoiceTypeCode>\n  <cbc:DocumentCurrencyCode>EUR</cbc:DocumentCurrencyCode>\n  <cbc:BuyerReference>04011000-1234-56</cbc:BuyerReference>\n  <cac:AccountingSupplierParty>\n    <cac:Party>\n      <cbc:EndpointID schemeID=\"EM\">rechnung@muster.de</cbc:EndpointID>\n      <cac:PostalAddress>\n        <cbc:StreetName>Musterweg 1</cbc:StreetName>\n        <cbc:CityName>Berlin</cbc:CityName>\n        <cbc:PostalZone>10115</cbc:PostalZone>\n        <cac:Country>\n          <cbc:IdentificationCode>DE</cbc:IdentificationCode>\n        </cac:Country>\n      </cac:PostalAddress>\n      <cac:PartyTaxScheme>\n        <cbc:CompanyID>DE123456789</cbc:CompanyID>\n        <cac:TaxScheme>\n          <cbc:ID>VAT</cbc:ID>\n        </cac:TaxScheme>\n      </cac:PartyTaxScheme>\n      <cac:PartyLegalEntity>\n        <cbc:RegistrationName>Muster GmbH</cbc:RegistrationName>\n      </cac:PartyLegalEntity>\n      <cac:Contact>\n        <cbc:Name>Anna Muster</cbc:Name>\n        <cbc:Telephone>+49 30 123456</cbc:Telephone>\n        <cbc:ElectronicMail>anna@muster.de</cbc:ElectronicMail>\n      </cac:Contact>\n    </cac:Party>\n  </cac:AccountingSupplierParty>\n  <cac:AccountingCustomerParty>\n    <cac:Party>\n      <cbc:EndpointID schemeID=\"EM\">eingang@beispiel.de</cbc:EndpointID>\n      <cac:PostalAddress>\n        <cbc:StreetName>Beispielallee 2</cbc:StreetName>\n        <cbc:CityName>Hamburg</cbc:CityName>\n        <cbc:PostalZone>20095</cbc:PostalZone>\n        <cac:Country>\n          <cbc:IdentificationCode>DE</cbc:IdentificationCode>\n        </cac:Country>\n      </cac:PostalAddress>\n      <cac:PartyLegalEntity>\n        <cbc:RegistrationName>Beispiel AG</cbc:RegistrationName>\n      </cac:PartyLegalEntity>\n    </cac:Party>\n  </cac:AccountingCustomerParty>\n  <cac:Delivery>\n    <cbc:ActualDeliveryDate>2026-10-08</cbc:ActualDeliveryDate>\n  </cac:Delivery>\n  <cac:PaymentMeans>\n    <cbc:PaymentMeansCode>58</cbc:PaymentMeansCode>\n    <cac:PayeeFinancialAccount>\n      <cbc:ID>DE02120300000000202051</cbc:ID>\n    </cac:PayeeFinancialAccount>\n  </cac:PaymentMeans>\n  <cac:PaymentTerms>\n    <cbc:Note>Zahlbar innerhalb von 30 Tagen.</cbc:Note>\n  </cac:PaymentTerms>\n  <cac:TaxTotal>\n    <cbc:TaxAmount currencyID=\"EUR\">182.40</cbc:TaxAmount>\n    <cac:TaxSubtotal>\n      <cbc:TaxableAmount currencyID=\"EUR\">960.00</cbc:TaxableAmount>\n      <cbc:TaxAmount currencyID=\"EUR\">182.40</cbc:TaxAmount>\n      <cac:TaxCategory>\n        <cbc:ID>S</cbc:ID>\n        <cbc:Percent>19.00</cbc:Percent>\n        <cac:TaxScheme>\n          <cbc:ID>VAT</cbc:ID>\n        </cac:TaxScheme>\n      </cac:TaxCategory>\n    </cac:TaxSubtotal>\n  </cac:TaxTotal>\n  <cac:LegalMonetaryTotal>\n    <cbc:LineExtensionAmount currencyID=\"EUR\">960.00</cbc:LineExtensionAmount>\n    <cbc:TaxExclusiveAmount currencyID=\"EUR\">960.00</cbc:TaxExclusiveAmount>\n    <cbc:TaxInclusiveAmount currencyID=\"EUR\">1142.40</cbc:TaxInclusiveAmount>\n    <cbc:PayableAmount currencyID=\"EUR\">1142.40</cbc:PayableAmount>\n  </cac:LegalMonetaryTotal>\n  <cac:InvoiceLine>\n    <cbc:ID>1</cbc:ID>\n    <cbc:InvoicedQuantity unitCode=\"HUR\">8</cbc:InvoicedQuantity>\n    <cbc:LineExtensionAmount currencyID=\"EUR\">960.00</cbc:LineExtensionAmount>\n    <cac:Item>\n      <cbc:Name>Beratung</cbc:Name>\n      <cac:ClassifiedTaxCategory>\n        <cbc:ID>S</cbc:ID>\n        <cbc:Percent>19</cbc:Percent>\n        <cac:TaxScheme>\n          <cbc:ID>VAT</cbc:ID>\n        </cac:TaxScheme>\n      </cac:ClassifiedTaxCategory>\n    </cac:Item>\n    <cac:Price>\n      <cbc:PriceAmount currencyID=\"EUR\">120.0</cbc:PriceAmount>\n    </cac:Price>\n  </cac:InvoiceLine>\n</Invoice>\n",
                  "options": {
                    "raw": {
                      "language": "xml"
                    }
                  }
                },
                "description": "Send the included fictional XRechnung immediately, without an API key or local file. Replace the raw body with your own UBL or CII XML. HTTP 200 means the file was examined; read acceptable for the verdict. The saved error example changes the payment total and demonstrates BR-CO-16."
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "content-language",
                  "value": "en"
                },
                {
                  "key": "content-type",
                  "value": "application/json"
                },
                {
                  "key": "x-normapi-ruleset",
                  "value": "v2026-08-31"
                }
              ],
              "cookie": [],
              "body": "{\n  \"acceptable\": true,\n  \"wellFormed\": true,\n  \"schemaValid\": true,\n  \"schematronValid\": true,\n  \"businessRulesEvaluated\": true,\n  \"rulesetVersion\": \"v2026-08-31\",\n  \"scenario\": \"EN16931 XRechnung (UBL Invoice)\",\n  \"findings\": []\n}"
            },
            {
              "name": "Incorrect payment total — acceptable: false",
              "originalRequest": {
                "method": "POST",
                "auth": {
                  "type": "noauth"
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/xml"
                  },
                  {
                    "key": "Accept",
                    "value": "application/json"
                  },
                  {
                    "key": "Accept-Language",
                    "value": "en",
                    "description": "Plain-language explanations: en or de. The official rule text is unchanged."
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/v1/validate",
                  "host": ["{{baseUrl}}"],
                  "path": ["v1", "validate"]
                },
                "body": {
                  "mode": "raw",
                  "raw": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Invoice xmlns=\"urn:oasis:names:specification:ubl:schema:xsd:Invoice-2\"\n  xmlns:cac=\"urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2\"\n  xmlns:cbc=\"urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2\">\n  <cbc:CustomizationID>urn:cen.eu:en16931:2017#compliant#urn:xeinkauf.de:kosit:xrechnung_3.0</cbc:CustomizationID>\n  <cbc:ProfileID>urn:fdc:peppol.eu:2017:poacc:billing:01:1.0</cbc:ProfileID>\n  <cbc:ID>POSTMAN-2026-0001</cbc:ID>\n  <cbc:IssueDate>2026-10-08</cbc:IssueDate>\n  <cbc:DueDate>2026-11-07</cbc:DueDate>\n  <cbc:InvoiceTypeCode>380</cbc:InvoiceTypeCode>\n  <cbc:DocumentCurrencyCode>EUR</cbc:DocumentCurrencyCode>\n  <cbc:BuyerReference>04011000-1234-56</cbc:BuyerReference>\n  <cac:AccountingSupplierParty>\n    <cac:Party>\n      <cbc:EndpointID schemeID=\"EM\">rechnung@muster.de</cbc:EndpointID>\n      <cac:PostalAddress>\n        <cbc:StreetName>Musterweg 1</cbc:StreetName>\n        <cbc:CityName>Berlin</cbc:CityName>\n        <cbc:PostalZone>10115</cbc:PostalZone>\n        <cac:Country>\n          <cbc:IdentificationCode>DE</cbc:IdentificationCode>\n        </cac:Country>\n      </cac:PostalAddress>\n      <cac:PartyTaxScheme>\n        <cbc:CompanyID>DE123456789</cbc:CompanyID>\n        <cac:TaxScheme>\n          <cbc:ID>VAT</cbc:ID>\n        </cac:TaxScheme>\n      </cac:PartyTaxScheme>\n      <cac:PartyLegalEntity>\n        <cbc:RegistrationName>Muster GmbH</cbc:RegistrationName>\n      </cac:PartyLegalEntity>\n      <cac:Contact>\n        <cbc:Name>Anna Muster</cbc:Name>\n        <cbc:Telephone>+49 30 123456</cbc:Telephone>\n        <cbc:ElectronicMail>anna@muster.de</cbc:ElectronicMail>\n      </cac:Contact>\n    </cac:Party>\n  </cac:AccountingSupplierParty>\n  <cac:AccountingCustomerParty>\n    <cac:Party>\n      <cbc:EndpointID schemeID=\"EM\">eingang@beispiel.de</cbc:EndpointID>\n      <cac:PostalAddress>\n        <cbc:StreetName>Beispielallee 2</cbc:StreetName>\n        <cbc:CityName>Hamburg</cbc:CityName>\n        <cbc:PostalZone>20095</cbc:PostalZone>\n        <cac:Country>\n          <cbc:IdentificationCode>DE</cbc:IdentificationCode>\n        </cac:Country>\n      </cac:PostalAddress>\n      <cac:PartyLegalEntity>\n        <cbc:RegistrationName>Beispiel AG</cbc:RegistrationName>\n      </cac:PartyLegalEntity>\n    </cac:Party>\n  </cac:AccountingCustomerParty>\n  <cac:Delivery>\n    <cbc:ActualDeliveryDate>2026-10-08</cbc:ActualDeliveryDate>\n  </cac:Delivery>\n  <cac:PaymentMeans>\n    <cbc:PaymentMeansCode>58</cbc:PaymentMeansCode>\n    <cac:PayeeFinancialAccount>\n      <cbc:ID>DE02120300000000202051</cbc:ID>\n    </cac:PayeeFinancialAccount>\n  </cac:PaymentMeans>\n  <cac:PaymentTerms>\n    <cbc:Note>Zahlbar innerhalb von 30 Tagen.</cbc:Note>\n  </cac:PaymentTerms>\n  <cac:TaxTotal>\n    <cbc:TaxAmount currencyID=\"EUR\">182.40</cbc:TaxAmount>\n    <cac:TaxSubtotal>\n      <cbc:TaxableAmount currencyID=\"EUR\">960.00</cbc:TaxableAmount>\n      <cbc:TaxAmount currencyID=\"EUR\">182.40</cbc:TaxAmount>\n      <cac:TaxCategory>\n        <cbc:ID>S</cbc:ID>\n        <cbc:Percent>19.00</cbc:Percent>\n        <cac:TaxScheme>\n          <cbc:ID>VAT</cbc:ID>\n        </cac:TaxScheme>\n      </cac:TaxCategory>\n    </cac:TaxSubtotal>\n  </cac:TaxTotal>\n  <cac:LegalMonetaryTotal>\n    <cbc:LineExtensionAmount currencyID=\"EUR\">960.00</cbc:LineExtensionAmount>\n    <cbc:TaxExclusiveAmount currencyID=\"EUR\">960.00</cbc:TaxExclusiveAmount>\n    <cbc:TaxInclusiveAmount currencyID=\"EUR\">1142.40</cbc:TaxInclusiveAmount>\n    <cbc:PayableAmount currencyID=\"EUR\">1143.40</cbc:PayableAmount>\n  </cac:LegalMonetaryTotal>\n  <cac:InvoiceLine>\n    <cbc:ID>1</cbc:ID>\n    <cbc:InvoicedQuantity unitCode=\"HUR\">8</cbc:InvoicedQuantity>\n    <cbc:LineExtensionAmount currencyID=\"EUR\">960.00</cbc:LineExtensionAmount>\n    <cac:Item>\n      <cbc:Name>Beratung</cbc:Name>\n      <cac:ClassifiedTaxCategory>\n        <cbc:ID>S</cbc:ID>\n        <cbc:Percent>19</cbc:Percent>\n        <cac:TaxScheme>\n          <cbc:ID>VAT</cbc:ID>\n        </cac:TaxScheme>\n      </cac:ClassifiedTaxCategory>\n    </cac:Item>\n    <cac:Price>\n      <cbc:PriceAmount currencyID=\"EUR\">120.0</cbc:PriceAmount>\n    </cac:Price>\n  </cac:InvoiceLine>\n</Invoice>\n",
                  "options": {
                    "raw": {
                      "language": "xml"
                    }
                  }
                },
                "description": "Send the included fictional XRechnung immediately, without an API key or local file. Replace the raw body with your own UBL or CII XML. HTTP 200 means the file was examined; read acceptable for the verdict. The saved error example changes the payment total and demonstrates BR-CO-16."
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "content-language",
                  "value": "en"
                },
                {
                  "key": "content-type",
                  "value": "application/json"
                },
                {
                  "key": "x-normapi-ruleset",
                  "value": "v2026-08-31"
                }
              ],
              "cookie": [],
              "body": "{\n  \"acceptable\": false,\n  \"wellFormed\": true,\n  \"schemaValid\": true,\n  \"schematronValid\": false,\n  \"businessRulesEvaluated\": true,\n  \"rulesetVersion\": \"v2026-08-31\",\n  \"scenario\": \"EN16931 XRechnung (UBL Invoice)\",\n  \"findings\": [\n    {\n      \"code\": \"BR-CO-16\",\n      \"severity\": \"ERROR\",\n      \"text\": \"[BR-CO-16]-Amount due for payment (BT-115) = Invoice total amount with VAT (BT-112) -Paid amount (BT-113) +Rounding amount (BT-114).\",\n      \"origin\": \"SCHEMATRON\",\n      \"location\": \"/Q{urn:oasis:names:specification:ubl:schema:xsd:Invoice-2}Invoice[1]/Q{urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2}LegalMonetaryTotal[1]\",\n      \"line\": null,\n      \"column\": null,\n      \"test\": \"(exists(cbc:PrepaidAmount) and not(exists(cbc:PayableRoundingAmount)) and (xs:decimal(cbc:PayableAmount) = (round((xs:decimal(cbc:TaxInclusiveAmount) - xs:decimal(cbc:PrepaidAmount)) * 10 * 10) div 100))) or (not(exists(cbc:PrepaidAmount)) and not(exists(cbc:PayableRoundingAmount)) and xs:decimal(cbc:PayableAmount) = xs:decimal(cbc:TaxInclusiveAmount)) or (exists(cbc:PrepaidAmount) and exists(cbc:PayableRoundingAmount) and ((round((xs:decimal(cbc:PayableAmount) - xs:decimal(cbc:PayableRoundingAmount)) * 10 * 10) div 100) = (round((xs:decimal(cbc:TaxInclusiveAmount) - xs:decimal(cbc:PrepaidAmount)) * 10 * 10) div 100))) or  (not(exists(cbc:PrepaidAmount)) and exists(cbc:PayableRoundingAmount) and ((round((xs:decimal(cbc:PayableAmount) - xs:decimal(cbc:PayableRoundingAmount)) * 10 * 10) div 100) = xs:decimal(cbc:TaxInclusiveAmount)))\",\n      \"explanation\": {\n        \"meaning\": \"The amount due for payment (BT-115) must add up: invoice total with VAT (BT-112) minus any amount already paid (BT-113) plus the rounding amount (BT-114).\",\n        \"cause\": \"The expression tests four cases, depending on whether a prepaid amount (BT-113) and a rounding amount (BT-114) are present. With neither, what remains is simply BT-115 = BT-112 — miss that and the payable amount was computed independently instead of derived. Only with a prepaid amount is anything rounded, and there the classic floating-point drift is the usual cause: one cent, invisible until validation.\",\n        \"fix\": \"Use decimal arithmetic throughout rather than float or double, and round only when writing the output to two decimal places. Also check whether a prepaid amount (BT-113) is set that your calculation ignores.\",\n        \"url\": \"https://normapi.com/en/errors#BR-CO-16\"\n      }\n    }\n  ]\n}"
            }
          ]
        },
        {
          "name": "Validate a ZUGFeRD PDF",
          "request": {
            "method": "POST",
            "auth": {
              "type": "noauth"
            },
            "header": [
              {
                "key": "Content-Type",
                "value": "application/pdf"
              },
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Accept-Language",
                "value": "en",
                "description": "Plain-language explanations: en or de. The official rule text is unchanged."
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/validate",
              "host": ["{{baseUrl}}"],
              "path": ["v1", "validate"]
            },
            "body": {
              "mode": "file",
              "file": {
                "src": null
              }
            },
            "description": "In Body, select a local ZUGFeRD/Factur-X PDF with embedded invoice XML, then Send. The embedded XML is checked against the supported KoSIT scenarios. Files are limited to 5 MB. This request works without authentication."
          }
        }
      ]
    },
    {
      "name": "Parsing",
      "description": "Read incoming invoices into JSON for free — XRechnung UBL or CII, or a ZUGFeRD/Factur-X PDF. The XML request is ready to send without authentication or file setup.",
      "item": [
        {
          "name": "Parse an invoice (XML)",
          "request": {
            "method": "POST",
            "auth": {
              "type": "noauth"
            },
            "header": [
              {
                "key": "Content-Type",
                "value": "application/xml"
              },
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Accept-Language",
                "value": "en",
                "description": "Language of the explanations when validate=true: en or de. Reading itself is language-neutral."
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/parse",
              "host": ["{{baseUrl}}"],
              "path": ["v1", "parse"],
              "query": [
                {
                  "key": "validate",
                  "value": "true",
                  "description": "true adds the KoSIT verdict as validation, exactly as /v1/validate returns it. Leave it out to read only.",
                  "disabled": true
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Invoice xmlns=\"urn:oasis:names:specification:ubl:schema:xsd:Invoice-2\"\n  xmlns:cac=\"urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2\"\n  xmlns:cbc=\"urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2\">\n  <cbc:CustomizationID>urn:cen.eu:en16931:2017#compliant#urn:xeinkauf.de:kosit:xrechnung_3.0</cbc:CustomizationID>\n  <cbc:ProfileID>urn:fdc:peppol.eu:2017:poacc:billing:01:1.0</cbc:ProfileID>\n  <cbc:ID>POSTMAN-2026-0001</cbc:ID>\n  <cbc:IssueDate>2026-10-08</cbc:IssueDate>\n  <cbc:DueDate>2026-11-07</cbc:DueDate>\n  <cbc:InvoiceTypeCode>380</cbc:InvoiceTypeCode>\n  <cbc:DocumentCurrencyCode>EUR</cbc:DocumentCurrencyCode>\n  <cbc:BuyerReference>04011000-1234-56</cbc:BuyerReference>\n  <cac:AccountingSupplierParty>\n    <cac:Party>\n      <cbc:EndpointID schemeID=\"EM\">rechnung@muster.de</cbc:EndpointID>\n      <cac:PostalAddress>\n        <cbc:StreetName>Musterweg 1</cbc:StreetName>\n        <cbc:CityName>Berlin</cbc:CityName>\n        <cbc:PostalZone>10115</cbc:PostalZone>\n        <cac:Country>\n          <cbc:IdentificationCode>DE</cbc:IdentificationCode>\n        </cac:Country>\n      </cac:PostalAddress>\n      <cac:PartyTaxScheme>\n        <cbc:CompanyID>DE123456789</cbc:CompanyID>\n        <cac:TaxScheme>\n          <cbc:ID>VAT</cbc:ID>\n        </cac:TaxScheme>\n      </cac:PartyTaxScheme>\n      <cac:PartyLegalEntity>\n        <cbc:RegistrationName>Muster GmbH</cbc:RegistrationName>\n      </cac:PartyLegalEntity>\n      <cac:Contact>\n        <cbc:Name>Anna Muster</cbc:Name>\n        <cbc:Telephone>+49 30 123456</cbc:Telephone>\n        <cbc:ElectronicMail>anna@muster.de</cbc:ElectronicMail>\n      </cac:Contact>\n    </cac:Party>\n  </cac:AccountingSupplierParty>\n  <cac:AccountingCustomerParty>\n    <cac:Party>\n      <cbc:EndpointID schemeID=\"EM\">eingang@beispiel.de</cbc:EndpointID>\n      <cac:PostalAddress>\n        <cbc:StreetName>Beispielallee 2</cbc:StreetName>\n        <cbc:CityName>Hamburg</cbc:CityName>\n        <cbc:PostalZone>20095</cbc:PostalZone>\n        <cac:Country>\n          <cbc:IdentificationCode>DE</cbc:IdentificationCode>\n        </cac:Country>\n      </cac:PostalAddress>\n      <cac:PartyLegalEntity>\n        <cbc:RegistrationName>Beispiel AG</cbc:RegistrationName>\n      </cac:PartyLegalEntity>\n    </cac:Party>\n  </cac:AccountingCustomerParty>\n  <cac:Delivery>\n    <cbc:ActualDeliveryDate>2026-10-08</cbc:ActualDeliveryDate>\n  </cac:Delivery>\n  <cac:PaymentMeans>\n    <cbc:PaymentMeansCode>58</cbc:PaymentMeansCode>\n    <cac:PayeeFinancialAccount>\n      <cbc:ID>DE02120300000000202051</cbc:ID>\n    </cac:PayeeFinancialAccount>\n  </cac:PaymentMeans>\n  <cac:PaymentTerms>\n    <cbc:Note>Zahlbar innerhalb von 30 Tagen.</cbc:Note>\n  </cac:PaymentTerms>\n  <cac:TaxTotal>\n    <cbc:TaxAmount currencyID=\"EUR\">182.40</cbc:TaxAmount>\n    <cac:TaxSubtotal>\n      <cbc:TaxableAmount currencyID=\"EUR\">960.00</cbc:TaxableAmount>\n      <cbc:TaxAmount currencyID=\"EUR\">182.40</cbc:TaxAmount>\n      <cac:TaxCategory>\n        <cbc:ID>S</cbc:ID>\n        <cbc:Percent>19.00</cbc:Percent>\n        <cac:TaxScheme>\n          <cbc:ID>VAT</cbc:ID>\n        </cac:TaxScheme>\n      </cac:TaxCategory>\n    </cac:TaxSubtotal>\n  </cac:TaxTotal>\n  <cac:LegalMonetaryTotal>\n    <cbc:LineExtensionAmount currencyID=\"EUR\">960.00</cbc:LineExtensionAmount>\n    <cbc:TaxExclusiveAmount currencyID=\"EUR\">960.00</cbc:TaxExclusiveAmount>\n    <cbc:TaxInclusiveAmount currencyID=\"EUR\">1142.40</cbc:TaxInclusiveAmount>\n    <cbc:PayableAmount currencyID=\"EUR\">1142.40</cbc:PayableAmount>\n  </cac:LegalMonetaryTotal>\n  <cac:InvoiceLine>\n    <cbc:ID>1</cbc:ID>\n    <cbc:InvoicedQuantity unitCode=\"HUR\">8</cbc:InvoicedQuantity>\n    <cbc:LineExtensionAmount currencyID=\"EUR\">960.00</cbc:LineExtensionAmount>\n    <cac:Item>\n      <cbc:Name>Beratung</cbc:Name>\n      <cac:ClassifiedTaxCategory>\n        <cbc:ID>S</cbc:ID>\n        <cbc:Percent>19</cbc:Percent>\n        <cac:TaxScheme>\n          <cbc:ID>VAT</cbc:ID>\n        </cac:TaxScheme>\n      </cac:ClassifiedTaxCategory>\n    </cac:Item>\n    <cac:Price>\n      <cbc:PriceAmount currencyID=\"EUR\">120.0</cbc:PriceAmount>\n    </cac:Price>\n  </cac:InvoiceLine>\n</Invoice>\n",
              "options": {
                "raw": {
                  "language": "xml"
                }
              }
            },
            "description": "Read the included fictional XRechnung into JSON, without an API key or local file. Replace the raw body with any UBL or CII invoice. invoice has exactly the shape POST /v1/invoices takes; stated has the totals as the document writes them, as exact strings; notMapped lists every value of the document the response does not carry. Enable the validate parameter to add the verdict."
          },
          "response": [
            {
              "name": "Read — nothing left unmapped",
              "originalRequest": {
                "method": "POST",
                "auth": {
                  "type": "noauth"
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/xml"
                  },
                  {
                    "key": "Accept",
                    "value": "application/json"
                  },
                  {
                    "key": "Accept-Language",
                    "value": "en",
                    "description": "Language of the explanations when validate=true: en or de. Reading itself is language-neutral."
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/v1/parse",
                  "host": ["{{baseUrl}}"],
                  "path": ["v1", "parse"],
                  "query": [
                    {
                      "key": "validate",
                      "value": "true",
                      "description": "true adds the KoSIT verdict as validation, exactly as /v1/validate returns it. Leave it out to read only.",
                      "disabled": true
                    }
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Invoice xmlns=\"urn:oasis:names:specification:ubl:schema:xsd:Invoice-2\"\n  xmlns:cac=\"urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2\"\n  xmlns:cbc=\"urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2\">\n  <cbc:CustomizationID>urn:cen.eu:en16931:2017#compliant#urn:xeinkauf.de:kosit:xrechnung_3.0</cbc:CustomizationID>\n  <cbc:ProfileID>urn:fdc:peppol.eu:2017:poacc:billing:01:1.0</cbc:ProfileID>\n  <cbc:ID>POSTMAN-2026-0001</cbc:ID>\n  <cbc:IssueDate>2026-10-08</cbc:IssueDate>\n  <cbc:DueDate>2026-11-07</cbc:DueDate>\n  <cbc:InvoiceTypeCode>380</cbc:InvoiceTypeCode>\n  <cbc:DocumentCurrencyCode>EUR</cbc:DocumentCurrencyCode>\n  <cbc:BuyerReference>04011000-1234-56</cbc:BuyerReference>\n  <cac:AccountingSupplierParty>\n    <cac:Party>\n      <cbc:EndpointID schemeID=\"EM\">rechnung@muster.de</cbc:EndpointID>\n      <cac:PostalAddress>\n        <cbc:StreetName>Musterweg 1</cbc:StreetName>\n        <cbc:CityName>Berlin</cbc:CityName>\n        <cbc:PostalZone>10115</cbc:PostalZone>\n        <cac:Country>\n          <cbc:IdentificationCode>DE</cbc:IdentificationCode>\n        </cac:Country>\n      </cac:PostalAddress>\n      <cac:PartyTaxScheme>\n        <cbc:CompanyID>DE123456789</cbc:CompanyID>\n        <cac:TaxScheme>\n          <cbc:ID>VAT</cbc:ID>\n        </cac:TaxScheme>\n      </cac:PartyTaxScheme>\n      <cac:PartyLegalEntity>\n        <cbc:RegistrationName>Muster GmbH</cbc:RegistrationName>\n      </cac:PartyLegalEntity>\n      <cac:Contact>\n        <cbc:Name>Anna Muster</cbc:Name>\n        <cbc:Telephone>+49 30 123456</cbc:Telephone>\n        <cbc:ElectronicMail>anna@muster.de</cbc:ElectronicMail>\n      </cac:Contact>\n    </cac:Party>\n  </cac:AccountingSupplierParty>\n  <cac:AccountingCustomerParty>\n    <cac:Party>\n      <cbc:EndpointID schemeID=\"EM\">eingang@beispiel.de</cbc:EndpointID>\n      <cac:PostalAddress>\n        <cbc:StreetName>Beispielallee 2</cbc:StreetName>\n        <cbc:CityName>Hamburg</cbc:CityName>\n        <cbc:PostalZone>20095</cbc:PostalZone>\n        <cac:Country>\n          <cbc:IdentificationCode>DE</cbc:IdentificationCode>\n        </cac:Country>\n      </cac:PostalAddress>\n      <cac:PartyLegalEntity>\n        <cbc:RegistrationName>Beispiel AG</cbc:RegistrationName>\n      </cac:PartyLegalEntity>\n    </cac:Party>\n  </cac:AccountingCustomerParty>\n  <cac:Delivery>\n    <cbc:ActualDeliveryDate>2026-10-08</cbc:ActualDeliveryDate>\n  </cac:Delivery>\n  <cac:PaymentMeans>\n    <cbc:PaymentMeansCode>58</cbc:PaymentMeansCode>\n    <cac:PayeeFinancialAccount>\n      <cbc:ID>DE02120300000000202051</cbc:ID>\n    </cac:PayeeFinancialAccount>\n  </cac:PaymentMeans>\n  <cac:PaymentTerms>\n    <cbc:Note>Zahlbar innerhalb von 30 Tagen.</cbc:Note>\n  </cac:PaymentTerms>\n  <cac:TaxTotal>\n    <cbc:TaxAmount currencyID=\"EUR\">182.40</cbc:TaxAmount>\n    <cac:TaxSubtotal>\n      <cbc:TaxableAmount currencyID=\"EUR\">960.00</cbc:TaxableAmount>\n      <cbc:TaxAmount currencyID=\"EUR\">182.40</cbc:TaxAmount>\n      <cac:TaxCategory>\n        <cbc:ID>S</cbc:ID>\n        <cbc:Percent>19.00</cbc:Percent>\n        <cac:TaxScheme>\n          <cbc:ID>VAT</cbc:ID>\n        </cac:TaxScheme>\n      </cac:TaxCategory>\n    </cac:TaxSubtotal>\n  </cac:TaxTotal>\n  <cac:LegalMonetaryTotal>\n    <cbc:LineExtensionAmount currencyID=\"EUR\">960.00</cbc:LineExtensionAmount>\n    <cbc:TaxExclusiveAmount currencyID=\"EUR\">960.00</cbc:TaxExclusiveAmount>\n    <cbc:TaxInclusiveAmount currencyID=\"EUR\">1142.40</cbc:TaxInclusiveAmount>\n    <cbc:PayableAmount currencyID=\"EUR\">1142.40</cbc:PayableAmount>\n  </cac:LegalMonetaryTotal>\n  <cac:InvoiceLine>\n    <cbc:ID>1</cbc:ID>\n    <cbc:InvoicedQuantity unitCode=\"HUR\">8</cbc:InvoicedQuantity>\n    <cbc:LineExtensionAmount currencyID=\"EUR\">960.00</cbc:LineExtensionAmount>\n    <cac:Item>\n      <cbc:Name>Beratung</cbc:Name>\n      <cac:ClassifiedTaxCategory>\n        <cbc:ID>S</cbc:ID>\n        <cbc:Percent>19</cbc:Percent>\n        <cac:TaxScheme>\n          <cbc:ID>VAT</cbc:ID>\n        </cac:TaxScheme>\n      </cac:ClassifiedTaxCategory>\n    </cac:Item>\n    <cac:Price>\n      <cbc:PriceAmount currencyID=\"EUR\">120.0</cbc:PriceAmount>\n    </cac:Price>\n  </cac:InvoiceLine>\n</Invoice>\n",
                  "options": {
                    "raw": {
                      "language": "xml"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "content-type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n  \"syntax\": \"ubl\",\n  \"documentKind\": \"invoice\",\n  \"source\": {\n    \"kind\": \"xml\",\n    \"attachment\": null\n  },\n  \"specificationId\": \"urn:cen.eu:en16931:2017#compliant#urn:xeinkauf.de:kosit:xrechnung_3.0\",\n  \"businessProcess\": \"urn:fdc:peppol.eu:2017:poacc:billing:01:1.0\",\n  \"profile\": \"xrechnung\",\n  \"invoice\": {\n    \"invoiceNumber\": \"POSTMAN-2026-0001\",\n    \"issueDate\": \"2026-10-08\",\n    \"typeCode\": \"380\",\n    \"precedingInvoices\": [],\n    \"dueDate\": \"2026-11-07\",\n    \"deliveryDate\": \"2026-10-08\",\n    \"deliverTo\": null,\n    \"invoicePeriod\": null,\n    \"currency\": \"EUR\",\n    \"buyerReference\": \"04011000-1234-56\",\n    \"orderReference\": null,\n    \"contractReference\": null,\n    \"projectReference\": null,\n    \"despatchAdviceReference\": null,\n    \"attachments\": [],\n    \"note\": null,\n    \"seller\": {\n      \"name\": \"Muster GmbH\",\n      \"identifier\": null,\n      \"vatId\": \"DE123456789\",\n      \"taxNumber\": null,\n      \"electronicAddress\": \"rechnung@muster.de\",\n      \"electronicAddressScheme\": \"EM\",\n      \"address\": {\n        \"street\": \"Musterweg 1\",\n        \"city\": \"Berlin\",\n        \"postcode\": \"10115\",\n        \"country\": \"DE\"\n      },\n      \"contact\": {\n        \"name\": \"Anna Muster\",\n        \"phone\": \"+49 30 123456\",\n        \"email\": \"anna@muster.de\"\n      },\n      \"tradingName\": null,\n      \"registrationId\": null,\n      \"registrationIdScheme\": null,\n      \"legalInformation\": null\n    },\n    \"buyer\": {\n      \"name\": \"Beispiel AG\",\n      \"identifier\": null,\n      \"vatId\": null,\n      \"taxNumber\": null,\n      \"electronicAddress\": \"eingang@beispiel.de\",\n      \"electronicAddressScheme\": \"EM\",\n      \"address\": {\n        \"street\": \"Beispielallee 2\",\n        \"city\": \"Hamburg\",\n        \"postcode\": \"20095\",\n        \"country\": \"DE\"\n      },\n      \"contact\": null,\n      \"tradingName\": null,\n      \"registrationId\": null,\n      \"registrationIdScheme\": null,\n      \"legalInformation\": null\n    },\n    \"payment\": {\n      \"meansCode\": \"58\",\n      \"iban\": \"DE02120300000000202051\",\n      \"reference\": null,\n      \"meansText\": null,\n      \"accountName\": null,\n      \"bic\": null,\n      \"card\": null,\n      \"directDebit\": null\n    },\n    \"paymentTerms\": \"Zahlbar innerhalb von 30 Tagen.\",\n    \"allowances\": [],\n    \"charges\": [],\n    \"prepaidAmount\": null,\n    \"lines\": [\n      {\n        \"id\": \"1\",\n        \"name\": \"Beratung\",\n        \"description\": null,\n        \"quantity\": 8,\n        \"unit\": \"HUR\",\n        \"unitPrice\": 120.0,\n        \"vatCategory\": \"S\",\n        \"vatRate\": 19,\n        \"vatExemptionReason\": null,\n        \"allowances\": [],\n        \"charges\": [],\n        \"period\": null,\n        \"orderLineReference\": null,\n        \"note\": null,\n        \"sellerItemId\": null,\n        \"buyerItemId\": null,\n        \"standardItemId\": null,\n        \"standardItemIdScheme\": null,\n        \"listPrice\": null,\n        \"baseQuantity\": null\n      }\n    ]\n  },\n  \"stated\": {\n    \"lineTotal\": \"960.00\",\n    \"allowanceTotal\": null,\n    \"chargeTotal\": null,\n    \"netTotal\": \"960.00\",\n    \"vatTotal\": \"182.40\",\n    \"vatAccountingCurrency\": null,\n    \"vatTotalInAccountingCurrency\": null,\n    \"grossTotal\": \"1142.40\",\n    \"prepaidAmount\": null,\n    \"roundingAmount\": null,\n    \"amountDue\": \"1142.40\",\n    \"vatBreakdown\": [\n      {\n        \"category\": \"S\",\n        \"rate\": \"19.00\",\n        \"taxableAmount\": \"960.00\",\n        \"vatAmount\": \"182.40\",\n        \"exemptionReason\": null,\n        \"exemptionReasonCode\": null\n      }\n    ],\n    \"lines\": [\n      {\n        \"netAmount\": \"960.00\",\n        \"priceDiscount\": null,\n        \"allowances\": [],\n        \"charges\": []\n      }\n    ],\n    \"allowances\": [],\n    \"charges\": []\n  },\n  \"notMapped\": [],\n  \"validation\": null\n}"
            }
          ]
        },
        {
          "name": "Parse a ZUGFeRD PDF and validate it",
          "request": {
            "method": "POST",
            "auth": {
              "type": "noauth"
            },
            "header": [
              {
                "key": "Content-Type",
                "value": "application/pdf"
              },
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Accept-Language",
                "value": "en",
                "description": "Language of the explanations when validate=true: en or de. Reading itself is language-neutral."
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/parse?validate=true",
              "host": ["{{baseUrl}}"],
              "path": ["v1", "parse"],
              "query": [
                {
                  "key": "validate",
                  "value": "true",
                  "description": "true adds the KoSIT verdict as validation, exactly as /v1/validate returns it. Leave it out to read only."
                }
              ]
            },
            "body": {
              "mode": "file",
              "file": {
                "src": null
              }
            },
            "description": "In Body, select a local ZUGFeRD/Factur-X PDF, then Send. The embedded invoice XML is read; source.attachment names the file it came from. With validate=true the response also carries the KoSIT verdict, so one call answers both what the invoice says and whether it is acceptable. Files are limited to 5 MB. This request works without authentication."
          }
        }
      ]
    },
    {
      "name": "Generation",
      "description": "Generate validated XRechnung UBL/CII or ZUGFeRD PDFs from JSON, or plain EN 16931 for a business with profile=en16931; attachments travel inside the invoice. These requests inherit the collection bearer authentication setting.",
      "item": [
        {
          "name": "Generate an invoice (UBL)",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/xml, application/problem+json"
              },
              {
                "key": "Accept-Language",
                "value": "en",
                "description": "Plain-language explanations: en or de. The official rule text is unchanged."
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/invoices?syntax=ubl",
              "host": ["{{baseUrl}}"],
              "path": ["v1", "invoices"],
              "query": [
                {
                  "key": "syntax",
                  "value": "ubl",
                  "description": "Output format: ubl, cii or zugferd."
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"invoiceNumber\": \"POSTMAN-2026-0001\",\n  \"issueDate\": \"2026-10-08\",\n  \"dueDate\": \"2026-11-07\",\n  \"currency\": \"EUR\",\n  \"buyerReference\": \"04011000-1234-56\",\n  \"seller\": {\n    \"name\": \"Muster GmbH\",\n    \"vatId\": \"DE123456789\",\n    \"electronicAddress\": \"rechnung@muster.de\",\n    \"electronicAddressScheme\": \"EM\",\n    \"address\": {\n      \"street\": \"Musterweg 1\",\n      \"city\": \"Berlin\",\n      \"postcode\": \"10115\",\n      \"country\": \"DE\"\n    },\n    \"contact\": {\n      \"name\": \"Anna Muster\",\n      \"phone\": \"+49 30 123456\",\n      \"email\": \"anna@muster.de\"\n    }\n  },\n  \"buyer\": {\n    \"name\": \"Beispiel AG\",\n    \"electronicAddress\": \"eingang@beispiel.de\",\n    \"electronicAddressScheme\": \"EM\",\n    \"address\": {\n      \"street\": \"Beispielallee 2\",\n      \"city\": \"Hamburg\",\n      \"postcode\": \"20095\",\n      \"country\": \"DE\"\n    }\n  },\n  \"payment\": {\n    \"meansCode\": \"58\",\n    \"iban\": \"DE02120300000000202051\"\n  },\n  \"paymentTerms\": \"Zahlbar innerhalb von 30 Tagen.\",\n  \"lines\": [\n    {\n      \"name\": \"Beratung\",\n      \"quantity\": 8,\n      \"unit\": \"HUR\",\n      \"unitPrice\": 120.0,\n      \"vatCategory\": \"S\",\n      \"vatRate\": 19\n    }\n  ],\n  \"deliveryDate\": \"2026-10-08\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "description": "Generate a fictional sample invoice from the included complete JSON. The generated invoice is checked against the official KoSIT rule set before delivery. Successful account-based requests count against the monthly generation allowance; HTTP 422 explains rejected invoice data and does not consume it."
          },
          "response": [
            {
              "name": "Generated XRechnung (UBL)",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Accept",
                    "value": "application/xml, application/problem+json"
                  },
                  {
                    "key": "Accept-Language",
                    "value": "en",
                    "description": "Plain-language explanations: en or de. The official rule text is unchanged."
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/v1/invoices?syntax=ubl",
                  "host": ["{{baseUrl}}"],
                  "path": ["v1", "invoices"],
                  "query": [
                    {
                      "key": "syntax",
                      "value": "ubl",
                      "description": "Output format: ubl, cii or zugferd."
                    }
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"invoiceNumber\": \"POSTMAN-2026-0001\",\n  \"issueDate\": \"2026-10-08\",\n  \"dueDate\": \"2026-11-07\",\n  \"currency\": \"EUR\",\n  \"buyerReference\": \"04011000-1234-56\",\n  \"seller\": {\n    \"name\": \"Muster GmbH\",\n    \"vatId\": \"DE123456789\",\n    \"electronicAddress\": \"rechnung@muster.de\",\n    \"electronicAddressScheme\": \"EM\",\n    \"address\": {\n      \"street\": \"Musterweg 1\",\n      \"city\": \"Berlin\",\n      \"postcode\": \"10115\",\n      \"country\": \"DE\"\n    },\n    \"contact\": {\n      \"name\": \"Anna Muster\",\n      \"phone\": \"+49 30 123456\",\n      \"email\": \"anna@muster.de\"\n    }\n  },\n  \"buyer\": {\n    \"name\": \"Beispiel AG\",\n    \"electronicAddress\": \"eingang@beispiel.de\",\n    \"electronicAddressScheme\": \"EM\",\n    \"address\": {\n      \"street\": \"Beispielallee 2\",\n      \"city\": \"Hamburg\",\n      \"postcode\": \"20095\",\n      \"country\": \"DE\"\n    }\n  },\n  \"payment\": {\n    \"meansCode\": \"58\",\n    \"iban\": \"DE02120300000000202051\"\n  },\n  \"paymentTerms\": \"Zahlbar innerhalb von 30 Tagen.\",\n  \"lines\": [\n    {\n      \"name\": \"Beratung\",\n      \"quantity\": 8,\n      \"unit\": \"HUR\",\n      \"unitPrice\": 120.0,\n      \"vatCategory\": \"S\",\n      \"vatRate\": 19\n    }\n  ],\n  \"deliveryDate\": \"2026-10-08\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "description": "Generate a fictional sample invoice from the included complete JSON. The generated invoice is checked against the official KoSIT rule set before delivery. Successful account-based requests count against the monthly generation allowance; HTTP 422 explains rejected invoice data and does not consume it."
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "content-type",
                  "value": "application/xml"
                },
                {
                  "key": "x-normapi-ruleset",
                  "value": "v2026-08-31"
                },
                {
                  "key": "x-normapi-scenario",
                  "value": "EN16931 XRechnung (UBL Invoice)"
                }
              ],
              "cookie": [],
              "body": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Invoice xmlns=\"urn:oasis:names:specification:ubl:schema:xsd:Invoice-2\"\n  xmlns:cac=\"urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2\"\n  xmlns:cbc=\"urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2\">\n  <cbc:CustomizationID>urn:cen.eu:en16931:2017#compliant#urn:xeinkauf.de:kosit:xrechnung_3.0</cbc:CustomizationID>\n  <cbc:ProfileID>urn:fdc:peppol.eu:2017:poacc:billing:01:1.0</cbc:ProfileID>\n  <cbc:ID>POSTMAN-2026-0001</cbc:ID>\n  <cbc:IssueDate>2026-10-08</cbc:IssueDate>\n  <cbc:DueDate>2026-11-07</cbc:DueDate>\n  <cbc:InvoiceTypeCode>380</cbc:InvoiceTypeCode>\n  <cbc:DocumentCurrencyCode>EUR</cbc:DocumentCurrencyCode>\n  <cbc:BuyerReference>04011000-1234-56</cbc:BuyerReference>\n  <cac:AccountingSupplierParty>\n    <cac:Party>\n      <cbc:EndpointID schemeID=\"EM\">rechnung@muster.de</cbc:EndpointID>\n      <cac:PostalAddress>\n        <cbc:StreetName>Musterweg 1</cbc:StreetName>\n        <cbc:CityName>Berlin</cbc:CityName>\n        <cbc:PostalZone>10115</cbc:PostalZone>\n        <cac:Country>\n          <cbc:IdentificationCode>DE</cbc:IdentificationCode>\n        </cac:Country>\n      </cac:PostalAddress>\n      <cac:PartyTaxScheme>\n        <cbc:CompanyID>DE123456789</cbc:CompanyID>\n        <cac:TaxScheme>\n          <cbc:ID>VAT</cbc:ID>\n        </cac:TaxScheme>\n      </cac:PartyTaxScheme>\n      <cac:PartyLegalEntity>\n        <cbc:RegistrationName>Muster GmbH</cbc:RegistrationName>\n      </cac:PartyLegalEntity>\n      <cac:Contact>\n        <cbc:Name>Anna Muster</cbc:Name>\n        <cbc:Telephone>+49 30 123456</cbc:Telephone>\n        <cbc:ElectronicMail>anna@muster.de</cbc:ElectronicMail>\n      </cac:Contact>\n    </cac:Party>\n  </cac:AccountingSupplierParty>\n  <cac:AccountingCustomerParty>\n    <cac:Party>\n      <cbc:EndpointID schemeID=\"EM\">eingang@beispiel.de</cbc:EndpointID>\n      <cac:PostalAddress>\n        <cbc:StreetName>Beispielallee 2</cbc:StreetName>\n        <cbc:CityName>Hamburg</cbc:CityName>\n        <cbc:PostalZone>20095</cbc:PostalZone>\n        <cac:Country>\n          <cbc:IdentificationCode>DE</cbc:IdentificationCode>\n        </cac:Country>\n      </cac:PostalAddress>\n      <cac:PartyLegalEntity>\n        <cbc:RegistrationName>Beispiel AG</cbc:RegistrationName>\n      </cac:PartyLegalEntity>\n    </cac:Party>\n  </cac:AccountingCustomerParty>\n  <cac:Delivery>\n    <cbc:ActualDeliveryDate>2026-10-08</cbc:ActualDeliveryDate>\n  </cac:Delivery>\n  <cac:PaymentMeans>\n    <cbc:PaymentMeansCode>58</cbc:PaymentMeansCode>\n    <cac:PayeeFinancialAccount>\n      <cbc:ID>DE02120300000000202051</cbc:ID>\n    </cac:PayeeFinancialAccount>\n  </cac:PaymentMeans>\n  <cac:PaymentTerms>\n    <cbc:Note>Zahlbar innerhalb von 30 Tagen.</cbc:Note>\n  </cac:PaymentTerms>\n  <cac:TaxTotal>\n    <cbc:TaxAmount currencyID=\"EUR\">182.40</cbc:TaxAmount>\n    <cac:TaxSubtotal>\n      <cbc:TaxableAmount currencyID=\"EUR\">960.00</cbc:TaxableAmount>\n      <cbc:TaxAmount currencyID=\"EUR\">182.40</cbc:TaxAmount>\n      <cac:TaxCategory>\n        <cbc:ID>S</cbc:ID>\n        <cbc:Percent>19.00</cbc:Percent>\n        <cac:TaxScheme>\n          <cbc:ID>VAT</cbc:ID>\n        </cac:TaxScheme>\n      </cac:TaxCategory>\n    </cac:TaxSubtotal>\n  </cac:TaxTotal>\n  <cac:LegalMonetaryTotal>\n    <cbc:LineExtensionAmount currencyID=\"EUR\">960.00</cbc:LineExtensionAmount>\n    <cbc:TaxExclusiveAmount currencyID=\"EUR\">960.00</cbc:TaxExclusiveAmount>\n    <cbc:TaxInclusiveAmount currencyID=\"EUR\">1142.40</cbc:TaxInclusiveAmount>\n    <cbc:PayableAmount currencyID=\"EUR\">1142.40</cbc:PayableAmount>\n  </cac:LegalMonetaryTotal>\n  <cac:InvoiceLine>\n    <cbc:ID>1</cbc:ID>\n    <cbc:InvoicedQuantity unitCode=\"HUR\">8</cbc:InvoicedQuantity>\n    <cbc:LineExtensionAmount currencyID=\"EUR\">960.00</cbc:LineExtensionAmount>\n    <cac:Item>\n      <cbc:Name>Beratung</cbc:Name>\n      <cac:ClassifiedTaxCategory>\n        <cbc:ID>S</cbc:ID>\n        <cbc:Percent>19</cbc:Percent>\n        <cac:TaxScheme>\n          <cbc:ID>VAT</cbc:ID>\n        </cac:TaxScheme>\n      </cac:ClassifiedTaxCategory>\n    </cac:Item>\n    <cac:Price>\n      <cbc:PriceAmount currencyID=\"EUR\">120.0</cbc:PriceAmount>\n    </cac:Price>\n  </cac:InvoiceLine>\n</Invoice>\n"
            }
          ]
        },
        {
          "name": "Generate an invoice (CII)",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/xml, application/problem+json"
              },
              {
                "key": "Accept-Language",
                "value": "en",
                "description": "Plain-language explanations: en or de. The official rule text is unchanged."
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/invoices?syntax=cii",
              "host": ["{{baseUrl}}"],
              "path": ["v1", "invoices"],
              "query": [
                {
                  "key": "syntax",
                  "value": "cii",
                  "description": "Output format: ubl, cii or zugferd."
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"invoiceNumber\": \"POSTMAN-2026-0001\",\n  \"issueDate\": \"2026-10-08\",\n  \"dueDate\": \"2026-11-07\",\n  \"currency\": \"EUR\",\n  \"buyerReference\": \"04011000-1234-56\",\n  \"seller\": {\n    \"name\": \"Muster GmbH\",\n    \"vatId\": \"DE123456789\",\n    \"electronicAddress\": \"rechnung@muster.de\",\n    \"electronicAddressScheme\": \"EM\",\n    \"address\": {\n      \"street\": \"Musterweg 1\",\n      \"city\": \"Berlin\",\n      \"postcode\": \"10115\",\n      \"country\": \"DE\"\n    },\n    \"contact\": {\n      \"name\": \"Anna Muster\",\n      \"phone\": \"+49 30 123456\",\n      \"email\": \"anna@muster.de\"\n    }\n  },\n  \"buyer\": {\n    \"name\": \"Beispiel AG\",\n    \"electronicAddress\": \"eingang@beispiel.de\",\n    \"electronicAddressScheme\": \"EM\",\n    \"address\": {\n      \"street\": \"Beispielallee 2\",\n      \"city\": \"Hamburg\",\n      \"postcode\": \"20095\",\n      \"country\": \"DE\"\n    }\n  },\n  \"payment\": {\n    \"meansCode\": \"58\",\n    \"iban\": \"DE02120300000000202051\"\n  },\n  \"paymentTerms\": \"Zahlbar innerhalb von 30 Tagen.\",\n  \"lines\": [\n    {\n      \"name\": \"Beratung\",\n      \"quantity\": 8,\n      \"unit\": \"HUR\",\n      \"unitPrice\": 120.0,\n      \"vatCategory\": \"S\",\n      \"vatRate\": 19\n    }\n  ],\n  \"deliveryDate\": \"2026-10-08\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "description": "Generate a fictional sample invoice from the included complete JSON. The generated invoice is checked against the official KoSIT rule set before delivery. Successful account-based requests count against the monthly generation allowance; HTTP 422 explains rejected invoice data and does not consume it."
          },
          "response": [
            {
              "name": "Generated XRechnung (CII)",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Accept",
                    "value": "application/xml, application/problem+json"
                  },
                  {
                    "key": "Accept-Language",
                    "value": "en",
                    "description": "Plain-language explanations: en or de. The official rule text is unchanged."
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/v1/invoices?syntax=cii",
                  "host": ["{{baseUrl}}"],
                  "path": ["v1", "invoices"],
                  "query": [
                    {
                      "key": "syntax",
                      "value": "cii",
                      "description": "Output format: ubl, cii or zugferd."
                    }
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"invoiceNumber\": \"POSTMAN-2026-0001\",\n  \"issueDate\": \"2026-10-08\",\n  \"dueDate\": \"2026-11-07\",\n  \"currency\": \"EUR\",\n  \"buyerReference\": \"04011000-1234-56\",\n  \"seller\": {\n    \"name\": \"Muster GmbH\",\n    \"vatId\": \"DE123456789\",\n    \"electronicAddress\": \"rechnung@muster.de\",\n    \"electronicAddressScheme\": \"EM\",\n    \"address\": {\n      \"street\": \"Musterweg 1\",\n      \"city\": \"Berlin\",\n      \"postcode\": \"10115\",\n      \"country\": \"DE\"\n    },\n    \"contact\": {\n      \"name\": \"Anna Muster\",\n      \"phone\": \"+49 30 123456\",\n      \"email\": \"anna@muster.de\"\n    }\n  },\n  \"buyer\": {\n    \"name\": \"Beispiel AG\",\n    \"electronicAddress\": \"eingang@beispiel.de\",\n    \"electronicAddressScheme\": \"EM\",\n    \"address\": {\n      \"street\": \"Beispielallee 2\",\n      \"city\": \"Hamburg\",\n      \"postcode\": \"20095\",\n      \"country\": \"DE\"\n    }\n  },\n  \"payment\": {\n    \"meansCode\": \"58\",\n    \"iban\": \"DE02120300000000202051\"\n  },\n  \"paymentTerms\": \"Zahlbar innerhalb von 30 Tagen.\",\n  \"lines\": [\n    {\n      \"name\": \"Beratung\",\n      \"quantity\": 8,\n      \"unit\": \"HUR\",\n      \"unitPrice\": 120.0,\n      \"vatCategory\": \"S\",\n      \"vatRate\": 19\n    }\n  ],\n  \"deliveryDate\": \"2026-10-08\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "description": "Generate a fictional sample invoice from the included complete JSON. The generated invoice is checked against the official KoSIT rule set before delivery. Successful account-based requests count against the monthly generation allowance; HTTP 422 explains rejected invoice data and does not consume it."
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "content-type",
                  "value": "application/xml"
                },
                {
                  "key": "x-normapi-ruleset",
                  "value": "v2026-08-31"
                },
                {
                  "key": "x-normapi-scenario",
                  "value": "EN16931 XRechnung (CII)"
                }
              ],
              "cookie": [],
              "body": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<rsm:CrossIndustryInvoice xmlns:rsm=\"urn:un:unece:uncefact:data:standard:CrossIndustryInvoice:100\"\n  xmlns:ram=\"urn:un:unece:uncefact:data:standard:ReusableAggregateBusinessInformationEntity:100\"\n  xmlns:udt=\"urn:un:unece:uncefact:data:standard:UnqualifiedDataType:100\">\n  <rsm:ExchangedDocumentContext>\n    <ram:BusinessProcessSpecifiedDocumentContextParameter>\n      <ram:ID>urn:fdc:peppol.eu:2017:poacc:billing:01:1.0</ram:ID>\n    </ram:BusinessProcessSpecifiedDocumentContextParameter>\n    <ram:GuidelineSpecifiedDocumentContextParameter>\n      <ram:ID>urn:cen.eu:en16931:2017#compliant#urn:xeinkauf.de:kosit:xrechnung_3.0</ram:ID>\n    </ram:GuidelineSpecifiedDocumentContextParameter>\n  </rsm:ExchangedDocumentContext>\n  <rsm:ExchangedDocument>\n    <ram:ID>POSTMAN-2026-0001</ram:ID>\n    <ram:TypeCode>380</ram:TypeCode>\n    <ram:IssueDateTime>\n      <udt:DateTimeString format=\"102\">20261008</udt:DateTimeString>\n    </ram:IssueDateTime>\n  </rsm:ExchangedDocument>\n  <rsm:SupplyChainTradeTransaction>\n    <ram:IncludedSupplyChainTradeLineItem>\n      <ram:AssociatedDocumentLineDocument>\n        <ram:LineID>1</ram:LineID>\n      </ram:AssociatedDocumentLineDocument>\n      <ram:SpecifiedTradeProduct>\n        <ram:Name>Beratung</ram:Name>\n      </ram:SpecifiedTradeProduct>\n      <ram:SpecifiedLineTradeAgreement>\n        <ram:NetPriceProductTradePrice>\n          <ram:ChargeAmount>120.0</ram:ChargeAmount>\n        </ram:NetPriceProductTradePrice>\n      </ram:SpecifiedLineTradeAgreement>\n      <ram:SpecifiedLineTradeDelivery>\n        <ram:BilledQuantity unitCode=\"HUR\">8</ram:BilledQuantity>\n      </ram:SpecifiedLineTradeDelivery>\n      <ram:SpecifiedLineTradeSettlement>\n        <ram:ApplicableTradeTax>\n          <ram:TypeCode>VAT</ram:TypeCode>\n          <ram:CategoryCode>S</ram:CategoryCode>\n          <ram:RateApplicablePercent>19</ram:RateApplicablePercent>\n        </ram:ApplicableTradeTax>\n        <ram:SpecifiedTradeSettlementLineMonetarySummation>\n          <ram:LineTotalAmount>960.00</ram:LineTotalAmount>\n        </ram:SpecifiedTradeSettlementLineMonetarySummation>\n      </ram:SpecifiedLineTradeSettlement>\n    </ram:IncludedSupplyChainTradeLineItem>\n    <ram:ApplicableHeaderTradeAgreement>\n      <ram:BuyerReference>04011000-1234-56</ram:BuyerReference>\n      <ram:SellerTradeParty>\n        <ram:Name>Muster GmbH</ram:Name>\n        <ram:DefinedTradeContact>\n          <ram:PersonName>Anna Muster</ram:PersonName>\n          <ram:TelephoneUniversalCommunication>\n            <ram:CompleteNumber>+49 30 123456</ram:CompleteNumber>\n          </ram:TelephoneUniversalCommunication>\n          <ram:EmailURIUniversalCommunication>\n            <ram:URIID>anna@muster.de</ram:URIID>\n          </ram:EmailURIUniversalCommunication>\n        </ram:DefinedTradeContact>\n        <ram:PostalTradeAddress>\n          <ram:PostcodeCode>10115</ram:PostcodeCode>\n          <ram:LineOne>Musterweg 1</ram:LineOne>\n          <ram:CityName>Berlin</ram:CityName>\n          <ram:CountryID>DE</ram:CountryID>\n        </ram:PostalTradeAddress>\n        <ram:URIUniversalCommunication>\n          <ram:URIID schemeID=\"EM\">rechnung@muster.de</ram:URIID>\n        </ram:URIUniversalCommunication>\n        <ram:SpecifiedTaxRegistration>\n          <ram:ID schemeID=\"VA\">DE123456789</ram:ID>\n        </ram:SpecifiedTaxRegistration>\n      </ram:SellerTradeParty>\n      <ram:BuyerTradeParty>\n        <ram:Name>Beispiel AG</ram:Name>\n        <ram:PostalTradeAddress>\n          <ram:PostcodeCode>20095</ram:PostcodeCode>\n          <ram:LineOne>Beispielallee 2</ram:LineOne>\n          <ram:CityName>Hamburg</ram:CityName>\n          <ram:CountryID>DE</ram:CountryID>\n        </ram:PostalTradeAddress>\n        <ram:URIUniversalCommunication>\n          <ram:URIID schemeID=\"EM\">eingang@beispiel.de</ram:URIID>\n        </ram:URIUniversalCommunication>\n      </ram:BuyerTradeParty>\n    </ram:ApplicableHeaderTradeAgreement>\n    <ram:ApplicableHeaderTradeDelivery>\n      <ram:ActualDeliverySupplyChainEvent>\n        <ram:OccurrenceDateTime>\n          <udt:DateTimeString format=\"102\">20261008</udt:DateTimeString>\n        </ram:OccurrenceDateTime>\n      </ram:ActualDeliverySupplyChainEvent>\n    </ram:ApplicableHeaderTradeDelivery>\n    <ram:ApplicableHeaderTradeSettlement>\n      <ram:InvoiceCurrencyCode>EUR</ram:InvoiceCurrencyCode>\n      <ram:SpecifiedTradeSettlementPaymentMeans>\n        <ram:TypeCode>58</ram:TypeCode>\n        <ram:PayeePartyCreditorFinancialAccount>\n          <ram:IBANID>DE02120300000000202051</ram:IBANID>\n        </ram:PayeePartyCreditorFinancialAccount>\n      </ram:SpecifiedTradeSettlementPaymentMeans>\n      <ram:ApplicableTradeTax>\n        <ram:CalculatedAmount>182.40</ram:CalculatedAmount>\n        <ram:TypeCode>VAT</ram:TypeCode>\n        <ram:BasisAmount>960.00</ram:BasisAmount>\n        <ram:CategoryCode>S</ram:CategoryCode>\n        <ram:RateApplicablePercent>19.00</ram:RateApplicablePercent>\n      </ram:ApplicableTradeTax>\n      <ram:SpecifiedTradePaymentTerms>\n        <ram:Description>Zahlbar innerhalb von 30 Tagen.</ram:Description>\n        <ram:DueDateDateTime>\n          <udt:DateTimeString format=\"102\">20261107</udt:DateTimeString>\n        </ram:DueDateDateTime>\n      </ram:SpecifiedTradePaymentTerms>\n      <ram:SpecifiedTradeSettlementHeaderMonetarySummation>\n        <ram:LineTotalAmount>960.00</ram:LineTotalAmount>\n        <ram:TaxBasisTotalAmount>960.00</ram:TaxBasisTotalAmount>\n        <ram:TaxTotalAmount currencyID=\"EUR\">182.40</ram:TaxTotalAmount>\n        <ram:GrandTotalAmount>1142.40</ram:GrandTotalAmount>\n        <ram:DuePayableAmount>1142.40</ram:DuePayableAmount>\n      </ram:SpecifiedTradeSettlementHeaderMonetarySummation>\n    </ram:ApplicableHeaderTradeSettlement>\n  </rsm:SupplyChainTradeTransaction>\n</rsm:CrossIndustryInvoice>\n"
            }
          ]
        },
        {
          "name": "Generate a ZUGFeRD PDF",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/pdf, application/problem+json"
              },
              {
                "key": "Accept-Language",
                "value": "en",
                "description": "Plain-language explanations: en or de. The official rule text is unchanged."
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/invoices?syntax=zugferd",
              "host": ["{{baseUrl}}"],
              "path": ["v1", "invoices"],
              "query": [
                {
                  "key": "syntax",
                  "value": "zugferd",
                  "description": "Output format: ubl, cii or zugferd."
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"invoiceNumber\": \"POSTMAN-2026-0001\",\n  \"issueDate\": \"2026-10-08\",\n  \"dueDate\": \"2026-11-07\",\n  \"currency\": \"EUR\",\n  \"buyerReference\": \"04011000-1234-56\",\n  \"seller\": {\n    \"name\": \"Muster GmbH\",\n    \"vatId\": \"DE123456789\",\n    \"electronicAddress\": \"rechnung@muster.de\",\n    \"electronicAddressScheme\": \"EM\",\n    \"address\": {\n      \"street\": \"Musterweg 1\",\n      \"city\": \"Berlin\",\n      \"postcode\": \"10115\",\n      \"country\": \"DE\"\n    },\n    \"contact\": {\n      \"name\": \"Anna Muster\",\n      \"phone\": \"+49 30 123456\",\n      \"email\": \"anna@muster.de\"\n    }\n  },\n  \"buyer\": {\n    \"name\": \"Beispiel AG\",\n    \"electronicAddress\": \"eingang@beispiel.de\",\n    \"electronicAddressScheme\": \"EM\",\n    \"address\": {\n      \"street\": \"Beispielallee 2\",\n      \"city\": \"Hamburg\",\n      \"postcode\": \"20095\",\n      \"country\": \"DE\"\n    }\n  },\n  \"payment\": {\n    \"meansCode\": \"58\",\n    \"iban\": \"DE02120300000000202051\"\n  },\n  \"paymentTerms\": \"Zahlbar innerhalb von 30 Tagen.\",\n  \"lines\": [\n    {\n      \"name\": \"Beratung\",\n      \"quantity\": 8,\n      \"unit\": \"HUR\",\n      \"unitPrice\": 120.0,\n      \"vatCategory\": \"S\",\n      \"vatRate\": 19\n    }\n  ],\n  \"deliveryDate\": \"2026-10-08\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "description": "Generate a fictional sample invoice from the included complete JSON. The generated invoice is checked against the official KoSIT rule set before delivery. Successful account-based requests count against the monthly generation allowance; HTTP 422 explains rejected invoice data and does not consume it. Save the binary response as a .pdf file. The saved example shows the response headers; its binary PDF body is omitted."
          },
          "response": [
            {
              "name": "Generated ZUGFeRD PDF (binary body omitted)",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Accept",
                    "value": "application/pdf, application/problem+json"
                  },
                  {
                    "key": "Accept-Language",
                    "value": "en",
                    "description": "Plain-language explanations: en or de. The official rule text is unchanged."
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/v1/invoices?syntax=zugferd",
                  "host": ["{{baseUrl}}"],
                  "path": ["v1", "invoices"],
                  "query": [
                    {
                      "key": "syntax",
                      "value": "zugferd",
                      "description": "Output format: ubl, cii or zugferd."
                    }
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"invoiceNumber\": \"POSTMAN-2026-0001\",\n  \"issueDate\": \"2026-10-08\",\n  \"dueDate\": \"2026-11-07\",\n  \"currency\": \"EUR\",\n  \"buyerReference\": \"04011000-1234-56\",\n  \"seller\": {\n    \"name\": \"Muster GmbH\",\n    \"vatId\": \"DE123456789\",\n    \"electronicAddress\": \"rechnung@muster.de\",\n    \"electronicAddressScheme\": \"EM\",\n    \"address\": {\n      \"street\": \"Musterweg 1\",\n      \"city\": \"Berlin\",\n      \"postcode\": \"10115\",\n      \"country\": \"DE\"\n    },\n    \"contact\": {\n      \"name\": \"Anna Muster\",\n      \"phone\": \"+49 30 123456\",\n      \"email\": \"anna@muster.de\"\n    }\n  },\n  \"buyer\": {\n    \"name\": \"Beispiel AG\",\n    \"electronicAddress\": \"eingang@beispiel.de\",\n    \"electronicAddressScheme\": \"EM\",\n    \"address\": {\n      \"street\": \"Beispielallee 2\",\n      \"city\": \"Hamburg\",\n      \"postcode\": \"20095\",\n      \"country\": \"DE\"\n    }\n  },\n  \"payment\": {\n    \"meansCode\": \"58\",\n    \"iban\": \"DE02120300000000202051\"\n  },\n  \"paymentTerms\": \"Zahlbar innerhalb von 30 Tagen.\",\n  \"lines\": [\n    {\n      \"name\": \"Beratung\",\n      \"quantity\": 8,\n      \"unit\": \"HUR\",\n      \"unitPrice\": 120.0,\n      \"vatCategory\": \"S\",\n      \"vatRate\": 19\n    }\n  ],\n  \"deliveryDate\": \"2026-10-08\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "description": "Generate a fictional sample invoice from the included complete JSON. The generated invoice is checked against the official KoSIT rule set before delivery. Successful account-based requests count against the monthly generation allowance; HTTP 422 explains rejected invoice data and does not consume it. Save the binary response as a .pdf file. The saved example shows the response headers; its binary PDF body is omitted."
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "content-type",
                  "value": "application/pdf"
                },
                {
                  "key": "x-normapi-ruleset",
                  "value": "v2026-08-31"
                },
                {
                  "key": "x-normapi-scenario",
                  "value": "EN16931 XRechnung (CII)"
                }
              ],
              "cookie": [],
              "body": ""
            }
          ]
        },
        {
          "name": "Generate a ZUGFeRD PDF for a business (EN 16931)",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/pdf, application/problem+json"
              },
              {
                "key": "Accept-Language",
                "value": "en",
                "description": "Plain-language explanations: en or de. The official rule text is unchanged."
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/invoices?syntax=zugferd&profile=en16931",
              "host": ["{{baseUrl}}"],
              "path": ["v1", "invoices"],
              "query": [
                {
                  "key": "syntax",
                  "value": "zugferd",
                  "description": "Output format: ubl, cii or zugferd."
                },
                {
                  "key": "profile",
                  "value": "en16931",
                  "description": "The rules: xrechnung (default, public-sector buyers) or en16931 (businesses)."
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"invoiceNumber\": \"POSTMAN-2026-0002\",\n  \"issueDate\": \"2026-10-08\",\n  \"dueDate\": \"2026-11-07\",\n  \"currency\": \"EUR\",\n  \"seller\": {\n    \"name\": \"Muster GmbH\",\n    \"vatId\": \"DE123456789\",\n    \"address\": {\n      \"street\": \"Musterweg 1\",\n      \"city\": \"Berlin\",\n      \"postcode\": \"10115\",\n      \"country\": \"DE\"\n    }\n  },\n  \"buyer\": {\n    \"name\": \"Beispiel AG\",\n    \"address\": {\n      \"street\": \"Beispielallee 2\",\n      \"city\": \"Hamburg\",\n      \"postcode\": \"20095\",\n      \"country\": \"DE\"\n    }\n  },\n  \"payment\": {\n    \"meansCode\": \"58\",\n    \"iban\": \"DE02120300000000202051\"\n  },\n  \"paymentTerms\": \"Zahlbar innerhalb von 30 Tagen.\",\n  \"lines\": [\n    {\n      \"name\": \"Beratung\",\n      \"quantity\": 8,\n      \"unit\": \"HUR\",\n      \"unitPrice\": 120.0,\n      \"vatCategory\": \"S\",\n      \"vatRate\": 19\n    }\n  ],\n  \"deliveryDate\": \"2026-10-08\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "description": "Generate a fictional sample invoice to a business: profile=en16931 checks it against EN 16931 alone, so the buyer reference, seller contact and electronic addresses XRechnung adds may be left out, and the PDF carries the ZUGFeRD profile EN 16931. The generated invoice is checked against the official KoSIT rule set before delivery. Successful account-based requests count against the monthly generation allowance; HTTP 422 explains rejected invoice data and does not consume it. Save the binary response as a .pdf file. The saved example shows the response headers; its binary PDF body is omitted."
          },
          "response": [
            {
              "name": "Generated ZUGFeRD EN 16931 PDF (binary body omitted)",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Accept",
                    "value": "application/pdf, application/problem+json"
                  },
                  {
                    "key": "Accept-Language",
                    "value": "en",
                    "description": "Plain-language explanations: en or de. The official rule text is unchanged."
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/v1/invoices?syntax=zugferd&profile=en16931",
                  "host": ["{{baseUrl}}"],
                  "path": ["v1", "invoices"],
                  "query": [
                    {
                      "key": "syntax",
                      "value": "zugferd",
                      "description": "Output format: ubl, cii or zugferd."
                    },
                    {
                      "key": "profile",
                      "value": "en16931",
                      "description": "The rules: xrechnung (default, public-sector buyers) or en16931 (businesses)."
                    }
                  ]
                },
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"invoiceNumber\": \"POSTMAN-2026-0002\",\n  \"issueDate\": \"2026-10-08\",\n  \"dueDate\": \"2026-11-07\",\n  \"currency\": \"EUR\",\n  \"seller\": {\n    \"name\": \"Muster GmbH\",\n    \"vatId\": \"DE123456789\",\n    \"address\": {\n      \"street\": \"Musterweg 1\",\n      \"city\": \"Berlin\",\n      \"postcode\": \"10115\",\n      \"country\": \"DE\"\n    }\n  },\n  \"buyer\": {\n    \"name\": \"Beispiel AG\",\n    \"address\": {\n      \"street\": \"Beispielallee 2\",\n      \"city\": \"Hamburg\",\n      \"postcode\": \"20095\",\n      \"country\": \"DE\"\n    }\n  },\n  \"payment\": {\n    \"meansCode\": \"58\",\n    \"iban\": \"DE02120300000000202051\"\n  },\n  \"paymentTerms\": \"Zahlbar innerhalb von 30 Tagen.\",\n  \"lines\": [\n    {\n      \"name\": \"Beratung\",\n      \"quantity\": 8,\n      \"unit\": \"HUR\",\n      \"unitPrice\": 120.0,\n      \"vatCategory\": \"S\",\n      \"vatRate\": 19\n    }\n  ],\n  \"deliveryDate\": \"2026-10-08\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "description": "Generate a fictional sample invoice to a business: profile=en16931 checks it against EN 16931 alone, so the buyer reference, seller contact and electronic addresses XRechnung adds may be left out, and the PDF carries the ZUGFeRD profile EN 16931. The generated invoice is checked against the official KoSIT rule set before delivery. Successful account-based requests count against the monthly generation allowance; HTTP 422 explains rejected invoice data and does not consume it. Save the binary response as a .pdf file. The saved example shows the response headers; its binary PDF body is omitted."
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "content-type",
                  "value": "application/pdf"
                },
                {
                  "key": "x-normapi-ruleset",
                  "value": "v2026-08-31"
                },
                {
                  "key": "x-normapi-scenario",
                  "value": "EN16931 (CII)"
                }
              ],
              "cookie": [],
              "body": ""
            }
          ]
        },
        {
          "name": "Generate an invoice with attachments (UBL)",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/xml, application/problem+json"
              },
              {
                "key": "Accept-Language",
                "value": "en",
                "description": "Plain-language explanations: en or de. The official rule text is unchanged."
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/invoices?syntax=ubl",
              "host": ["{{baseUrl}}"],
              "path": ["v1", "invoices"],
              "query": [
                {
                  "key": "syntax",
                  "value": "ubl",
                  "description": "Output format: ubl, cii or zugferd."
                }
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"invoiceNumber\": \"POSTMAN-2026-0003\",\n  \"issueDate\": \"2026-10-08\",\n  \"dueDate\": \"2026-11-07\",\n  \"currency\": \"EUR\",\n  \"buyerReference\": \"04011000-1234-56\",\n  \"seller\": {\n    \"name\": \"Muster GmbH\",\n    \"vatId\": \"DE123456789\",\n    \"electronicAddress\": \"rechnung@muster.de\",\n    \"electronicAddressScheme\": \"EM\",\n    \"address\": {\n      \"street\": \"Musterweg 1\",\n      \"city\": \"Berlin\",\n      \"postcode\": \"10115\",\n      \"country\": \"DE\"\n    },\n    \"contact\": {\n      \"name\": \"Anna Muster\",\n      \"phone\": \"+49 30 123456\",\n      \"email\": \"anna@muster.de\"\n    }\n  },\n  \"buyer\": {\n    \"name\": \"Beispiel AG\",\n    \"electronicAddress\": \"eingang@beispiel.de\",\n    \"electronicAddressScheme\": \"EM\",\n    \"address\": {\n      \"street\": \"Beispielallee 2\",\n      \"city\": \"Hamburg\",\n      \"postcode\": \"20095\",\n      \"country\": \"DE\"\n    }\n  },\n  \"payment\": {\n    \"meansCode\": \"58\",\n    \"iban\": \"DE02120300000000202051\"\n  },\n  \"paymentTerms\": \"Zahlbar innerhalb von 30 Tagen.\",\n  \"lines\": [\n    {\n      \"name\": \"Beratung\",\n      \"quantity\": 8,\n      \"unit\": \"HUR\",\n      \"unitPrice\": 120.0,\n      \"vatCategory\": \"S\",\n      \"vatRate\": 19\n    }\n  ],\n  \"deliveryDate\": \"2026-10-08\",\n  \"attachments\": [\n    {\n      \"id\": \"SN-2026-10\",\n      \"description\": \"Stundennachweis Oktober 2026\",\n      \"filename\": \"stundennachweis-2026-10.csv\",\n      \"mimeCode\": \"text/csv\",\n      \"content\": \"RGF0dW07U3R1bmRlbjtUw6R0aWdrZWl0CjIwMjYtMTAtMDY7NDtXb3Jrc2hvcAoyMDI2LTEwLTA3OzQ7S29uemVwdAo=\"\n    },\n    {\n      \"id\": \"Leistungsbeschreibung\",\n      \"url\": \"https://www.example.com/leistungsbeschreibung.pdf\"\n    }\n  ]\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "description": "Generate a fictional sample XRechnung with supporting documents (BG-24): a timesheet carried inside the invoice as base64, and a document by link. PDF, PNG, JPEG, CSV, XLSX and ODS are permitted, up to 20 files and 3 MB together; another type (BR-CL-24) or a filename used twice (BR-DE-22) is an HTTP 422 that names the rule. The generated invoice is checked against the official KoSIT rule set before delivery. Successful account-based requests count against the monthly generation allowance."
          },
          "response": []
        }
      ]
    },
    {
      "name": "Customers",
      "description": "For software that invoices on behalf of its own customers. Name the customer of a call in the X-Normapi-Customer header — your own reference for it, never a name or an email address — and NormAPI counts each customer on its own within your one allowance. List what each customer used in a month, and set or remove a monthly ceiling per customer: past it, generation for that customer answers HTTP 429 customer-quota-exceeded while validation and your other customers carry on. These requests need a key that belongs to an account; none of them uses the generation allowance.",
      "item": [
        {
          "name": "Validate for a customer",
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('HTTP 200', () => pm.response.to.have.status(200));",
                  "pm.test('The customer is sent back', () => pm.expect(pm.response.headers.get('X-Normapi-Customer')).to.eql('tenant-42'));"
                ]
              }
            }
          ],
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/xml"
              },
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "X-Normapi-Customer",
                "value": "tenant-42",
                "description": "Your own reference for the customer this call is for: 1–64 letters, digits and . _ : -, starting with a letter or digit. Counted and logged on calls with an API key; ignored without one."
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/validate",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "validate"
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Invoice xmlns=\"urn:oasis:names:specification:ubl:schema:xsd:Invoice-2\"\n  xmlns:cac=\"urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2\"\n  xmlns:cbc=\"urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2\">\n  <cbc:CustomizationID>urn:cen.eu:en16931:2017#compliant#urn:xeinkauf.de:kosit:xrechnung_3.0</cbc:CustomizationID>\n  <cbc:ProfileID>urn:fdc:peppol.eu:2017:poacc:billing:01:1.0</cbc:ProfileID>\n  <cbc:ID>POSTMAN-2026-0001</cbc:ID>\n  <cbc:IssueDate>2026-10-08</cbc:IssueDate>\n  <cbc:DueDate>2026-11-07</cbc:DueDate>\n  <cbc:InvoiceTypeCode>380</cbc:InvoiceTypeCode>\n  <cbc:DocumentCurrencyCode>EUR</cbc:DocumentCurrencyCode>\n  <cbc:BuyerReference>04011000-1234-56</cbc:BuyerReference>\n  <cac:AccountingSupplierParty>\n    <cac:Party>\n      <cbc:EndpointID schemeID=\"EM\">rechnung@muster.de</cbc:EndpointID>\n      <cac:PostalAddress>\n        <cbc:StreetName>Musterweg 1</cbc:StreetName>\n        <cbc:CityName>Berlin</cbc:CityName>\n        <cbc:PostalZone>10115</cbc:PostalZone>\n        <cac:Country>\n          <cbc:IdentificationCode>DE</cbc:IdentificationCode>\n        </cac:Country>\n      </cac:PostalAddress>\n      <cac:PartyTaxScheme>\n        <cbc:CompanyID>DE123456789</cbc:CompanyID>\n        <cac:TaxScheme>\n          <cbc:ID>VAT</cbc:ID>\n        </cac:TaxScheme>\n      </cac:PartyTaxScheme>\n      <cac:PartyLegalEntity>\n        <cbc:RegistrationName>Muster GmbH</cbc:RegistrationName>\n      </cac:PartyLegalEntity>\n      <cac:Contact>\n        <cbc:Name>Anna Muster</cbc:Name>\n        <cbc:Telephone>+49 30 123456</cbc:Telephone>\n        <cbc:ElectronicMail>anna@muster.de</cbc:ElectronicMail>\n      </cac:Contact>\n    </cac:Party>\n  </cac:AccountingSupplierParty>\n  <cac:AccountingCustomerParty>\n    <cac:Party>\n      <cbc:EndpointID schemeID=\"EM\">eingang@beispiel.de</cbc:EndpointID>\n      <cac:PostalAddress>\n        <cbc:StreetName>Beispielallee 2</cbc:StreetName>\n        <cbc:CityName>Hamburg</cbc:CityName>\n        <cbc:PostalZone>20095</cbc:PostalZone>\n        <cac:Country>\n          <cbc:IdentificationCode>DE</cbc:IdentificationCode>\n        </cac:Country>\n      </cac:PostalAddress>\n      <cac:PartyLegalEntity>\n        <cbc:RegistrationName>Beispiel AG</cbc:RegistrationName>\n      </cac:PartyLegalEntity>\n    </cac:Party>\n  </cac:AccountingCustomerParty>\n  <cac:Delivery>\n    <cbc:ActualDeliveryDate>2026-10-08</cbc:ActualDeliveryDate>\n  </cac:Delivery>\n  <cac:PaymentMeans>\n    <cbc:PaymentMeansCode>58</cbc:PaymentMeansCode>\n    <cac:PayeeFinancialAccount>\n      <cbc:ID>DE02120300000000202051</cbc:ID>\n    </cac:PayeeFinancialAccount>\n  </cac:PaymentMeans>\n  <cac:PaymentTerms>\n    <cbc:Note>Zahlbar innerhalb von 30 Tagen.</cbc:Note>\n  </cac:PaymentTerms>\n  <cac:TaxTotal>\n    <cbc:TaxAmount currencyID=\"EUR\">182.40</cbc:TaxAmount>\n    <cac:TaxSubtotal>\n      <cbc:TaxableAmount currencyID=\"EUR\">960.00</cbc:TaxableAmount>\n      <cbc:TaxAmount currencyID=\"EUR\">182.40</cbc:TaxAmount>\n      <cac:TaxCategory>\n        <cbc:ID>S</cbc:ID>\n        <cbc:Percent>19.00</cbc:Percent>\n        <cac:TaxScheme>\n          <cbc:ID>VAT</cbc:ID>\n        </cac:TaxScheme>\n      </cac:TaxCategory>\n    </cac:TaxSubtotal>\n  </cac:TaxTotal>\n  <cac:LegalMonetaryTotal>\n    <cbc:LineExtensionAmount currencyID=\"EUR\">960.00</cbc:LineExtensionAmount>\n    <cbc:TaxExclusiveAmount currencyID=\"EUR\">960.00</cbc:TaxExclusiveAmount>\n    <cbc:TaxInclusiveAmount currencyID=\"EUR\">1142.40</cbc:TaxInclusiveAmount>\n    <cbc:PayableAmount currencyID=\"EUR\">1142.40</cbc:PayableAmount>\n  </cac:LegalMonetaryTotal>\n  <cac:InvoiceLine>\n    <cbc:ID>1</cbc:ID>\n    <cbc:InvoicedQuantity unitCode=\"HUR\">8</cbc:InvoicedQuantity>\n    <cbc:LineExtensionAmount currencyID=\"EUR\">960.00</cbc:LineExtensionAmount>\n    <cac:Item>\n      <cbc:Name>Beratung</cbc:Name>\n      <cac:ClassifiedTaxCategory>\n        <cbc:ID>S</cbc:ID>\n        <cbc:Percent>19</cbc:Percent>\n        <cac:TaxScheme>\n          <cbc:ID>VAT</cbc:ID>\n        </cac:TaxScheme>\n      </cac:ClassifiedTaxCategory>\n    </cac:Item>\n    <cac:Price>\n      <cbc:PriceAmount currencyID=\"EUR\">120.0</cbc:PriceAmount>\n    </cac:Price>\n  </cac:InvoiceLine>\n</Invoice>\n"
            },
            "description": "Validate an invoice for the customer tenant-42. The response sends X-Normapi-Customer back, and the call counts for tenant-42 under GET /v1/customers. The body is the same fictional sample as Validation → Validate an invoice (XML); replace it with an invoice of your own. Validation does not use the generation allowance."
          },
          "response": []
        },
        {
          "name": "List customers of a month",
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('HTTP 200', () => pm.response.to.have.status(200));",
                  "pm.test('Lists customers', () => pm.expect(pm.response.json().customers).to.be.an('array'));"
                ]
              }
            }
          ],
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/customers?month=2026-10&limit=100",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "customers"
              ],
              "query": [
                {
                  "key": "month",
                  "value": "2026-10",
                  "description": "The calendar month, YYYY-MM. Leave out for the current one."
                },
                {
                  "key": "limit",
                  "value": "100",
                  "description": "1–1000 customers per page.",
                  "disabled": true
                }
              ]
            },
            "description": "Every customer of the month, most invoices generated first: invoices generated, generations refused with 4xx, calls per endpoint and the ceiling (monthlyInvoices, null without one). withoutCustomer counts the calls that named no customer. When nextCursor is not null, pass it as cursor for the next page. A key bound to a customer sees that customer only; a key without an account gets HTTP 403."
          },
          "response": []
        },
        {
          "name": "Get one customer",
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('HTTP 200', () => pm.response.to.have.status(200));"
                ]
              }
            }
          ],
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/customers/tenant-42",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "customers",
                "tenant-42"
              ]
            },
            "description": "One customer in the current month (add ?month=YYYY-MM for another): zeros for a customer that has not called yet."
          },
          "response": []
        },
        {
          "name": "Set a customer ceiling",
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('HTTP 200', () => pm.response.to.have.status(200));",
                  "pm.test('Ceiling in force', () => pm.expect(pm.response.json().monthlyInvoices).to.eql(500));"
                ]
              }
            }
          ],
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/customers/tenant-42/allowance",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "customers",
                "tenant-42",
                "allowance"
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"monthlyInvoices\": 500\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "description": "tenant-42 may generate at most 500 invoices a calendar month (1 to 10,000,000), from the next call and for the whole month. Only successful generations count, and a replay under an Idempotency-Key is never refused. A key bound to a customer cannot change a ceiling (HTTP 403)."
          },
          "response": []
        },
        {
          "name": "Remove a customer ceiling",
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('HTTP 204', () => pm.response.to.have.status(204));"
                ]
              }
            }
          ],
          "request": {
            "method": "DELETE",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/customers/tenant-42/allowance",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "customers",
                "tenant-42",
                "allowance"
              ]
            },
            "description": "Removes the ceiling of tenant-42. HTTP 204 whether there was one or not, so it is safe to repeat."
          },
          "response": []
        }
      ]
    }
  ]
}
