{
  "info": {
    "_postman_id": "6f1d2c1e-6b8e-4a51-9d0e-fa4b7a3c2e01",
    "name": "FakturWire API",
    "description": "Validate and convert EU e-invoices — **Peppol BIS 3.0, XRechnung 3.x, Factur-X / ZUGFeRD (EN 16931)** — and extract invoices from PDFs. No code needed: fill in your API key and press Send.\n\n**Setup (1 minute)**\n1. Get a free API key at https://fakturwire.com/signup/ (free credits, no card).\n2. Import this collection *and* `FakturWire.postman_environment.json`, select the **FakturWire** environment and paste your key into `apiKey` (it is a secret variable).\n3. Run **Account → Get account & credit balance** to check the key.\n\nAuth: `Authorization: Bearer fw_live_…` (set once on the collection). Credits: validate = 1, convert = 2, extract = 10; free tools and account calls cost nothing. A conversion that fails the target's rules returns **422 with findings and is not charged**.\n\nAmounts are strings (\"120.00\"). Docs: https://fakturwire.com/docs/",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "auth": {
    "type": "bearer",
    "bearer": [
      {
        "key": "token",
        "value": "{{apiKey}}",
        "type": "string"
      }
    ]
  },
  "variable": [
    {
      "key": "baseUrl",
      "value": "https://fakturwire.com",
      "type": "string"
    }
  ],
  "item": [
    {
      "name": "Account",
      "description": "Free calls — check your key and credit balance.",
      "item": [
        {
          "name": "Get account & credit balance",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/me",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "me"
              ]
            },
            "description": "Free. Returns your account and current credit balance. Good first call to test your API key."
          },
          "response": [
            {
              "name": "200 — account",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/v1/me",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "v1",
                    "me"
                  ]
                },
                "description": "Free. Returns your account and current credit balance. Good first call to test your API key."
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json; charset=utf-8"
                }
              ],
              "cookie": [],
              "body": "{\n  \"accountId\": 1234,\n  \"email\": \"you@example.com\",\n  \"credits\": 91,\n  \"referral\": {\n    \"code\": \"AB12CD34\",\n    \"referred\": 0,\n    \"earned\": 0,\n    \"reward\": 250\n  }\n}"
            },
            {
              "name": "401 — wrong or missing API key",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/v1/me",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "v1",
                    "me"
                  ]
                },
                "description": "Free. Returns your account and current credit balance. Good first call to test your API key."
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json; charset=utf-8"
                }
              ],
              "cookie": [],
              "body": "{\n  \"error\": \"Invalid or missing API key.\"\n}"
            }
          ],
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('HTTP 200 — API key works', () => pm.response.to.have.status(200));",
                  "pm.test('has credits', () => pm.expect(pm.response.json().credits).to.be.a('number'));"
                ]
              }
            }
          ]
        },
        {
          "name": "Usage & recent activity",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/usage",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "usage"
              ]
            },
            "description": "Free. Balance, lifetime totals and the 25 most recent operations (metadata only — never invoice content)."
          },
          "response": [
            {
              "name": "200 — usage",
              "originalRequest": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{baseUrl}}/v1/usage",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "v1",
                    "usage"
                  ]
                },
                "description": "Free. Balance, lifetime totals and the 25 most recent operations (metadata only — never invoice content)."
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json; charset=utf-8"
                }
              ],
              "cookie": [],
              "body": "{\n  \"balance\": 91,\n  \"creditsUsed\": 9,\n  \"operations\": 6,\n  \"recent\": [\n    {\n      \"operation\": \"validate\",\n      \"cost\": 1,\n      \"detail\": {\n        \"profile\": \"xrechnung\",\n        \"source\": \"json\",\n        \"errors\": 1\n      },\n      \"createdAt\": \"2026-11-10T09:48:57.898Z\"\n    },\n    {\n      \"operation\": \"convert\",\n      \"cost\": 2,\n      \"detail\": {\n        \"target\": \"facturx-en16931\",\n        \"source\": \"json\"\n      },\n      \"createdAt\": \"2026-11-10T09:48:57.896Z\"\n    },\n    {\n      \"operation\": \"convert\",\n      \"cost\": 2,\n      \"detail\": {\n        \"target\": \"xrechnung-ubl\",\n        \"source\": \"json\"\n      },\n      \"createdAt\": \"2026-11-10T09:48:57.895Z\"\n    },\n    {\n      \"operation\": \"validate\",\n      \"cost\": 1,\n      \"detail\": {\n        \"profile\": \"peppol-bis-3\",\n        \"source\": \"xml\",\n        \"errors\": 0\n      },\n      \"createdAt\": \"2026-11-10T09:48:57.894Z\"\n    },\n    {\n      \"operation\": \"convert\",\n      \"cost\": 2,\n      \"detail\": {\n        \"target\": \"peppol-bis-3\",\n        \"source\": \"json\"\n      },\n      \"createdAt\": \"2026-11-10T09:48:57.882Z\"\n    },\n    {\n      \"operation\": \"validate\",\n      \"cost\": 1,\n      \"detail\": {\n        \"profile\": \"xrechnung\",\n        \"source\": \"json\",\n        \"errors\": 0\n      },\n      \"createdAt\": \"2026-11-10T09:48:57.880Z\"\n    }\n  ]\n}"
            }
          ],
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('HTTP 200 — usage', () => pm.response.to.have.status(200));",
                  "pm.test('has recent[]', () => pm.expect(pm.response.json().recent).to.be.an('array'));"
                ]
              }
            }
          ]
        }
      ]
    },
    {
      "name": "Validate (1 credit)",
      "description": "Check an invoice against EN 16931, Peppol BIS 3.0 or XRechnung rules. Profile: `en16931` (default) · `peppol-bis-3` · `xrechnung`. An invalid invoice still returns 200 with `valid: false` and `findings[]` — each finding says what to fix.",
      "item": [
        {
          "name": "Validate invoice JSON (XRechnung rules)",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/validate",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "validate"
              ]
            },
            "description": "Send the canonical EN 16931 JSON as `invoice`. 1 credit.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"profile\": \"xrechnung\",\n  \"invoice\": {\n    \"number\": \"INV-2026-0042\",\n    \"issueDate\": \"2026-07-01\",\n    \"dueDate\": \"2026-07-31\",\n    \"currency\": \"EUR\",\n    \"buyerReference\": \"04011000-12345-67\",\n    \"seller\": {\n      \"name\": \"Example Kft.\",\n      \"vatId\": \"HU12345678\",\n      \"legalRegistrationId\": \"01-09-123456\",\n      \"electronicAddress\": {\n        \"schemeId\": \"9910\",\n        \"value\": \"HU12345678\"\n      },\n      \"address\": {\n        \"streetName\": \"Fő utca 1.\",\n        \"city\": \"Budapest\",\n        \"postalZone\": \"1011\",\n        \"countryCode\": \"HU\"\n      },\n      \"contact\": {\n        \"name\": \"Anna Kovács\",\n        \"phone\": \"+36 1 234 5678\",\n        \"email\": \"anna@example.hu\"\n      }\n    },\n    \"buyer\": {\n      \"name\": \"Muster GmbH\",\n      \"vatId\": \"DE123456789\",\n      \"electronicAddress\": {\n        \"schemeId\": \"9930\",\n        \"value\": \"DE123456789\"\n      },\n      \"address\": {\n        \"streetName\": \"Hauptstraße 5\",\n        \"city\": \"Berlin\",\n        \"postalZone\": \"10115\",\n        \"countryCode\": \"DE\"\n      }\n    },\n    \"payment\": {\n      \"meansCode\": \"58\",\n      \"iban\": \"HU42117730161111101800000000\",\n      \"bic\": \"OTPVHUHB\",\n      \"terms\": \"Payment within 30 days\",\n      \"reference\": \"INV-2026-0042\"\n    },\n    \"lines\": [\n      {\n        \"id\": \"1\",\n        \"name\": \"Consulting services\",\n        \"quantity\": \"10\",\n        \"unitCode\": \"HUR\",\n        \"unitPrice\": \"120.00\",\n        \"vat\": {\n          \"categoryCode\": \"AE\",\n          \"rate\": \"0\"\n        }\n      },\n      {\n        \"id\": \"2\",\n        \"name\": \"Software licence\",\n        \"quantity\": \"2\",\n        \"unitPrice\": \"250.00\",\n        \"vat\": {\n          \"categoryCode\": \"AE\",\n          \"rate\": \"0\"\n        }\n      }\n    ],\n    \"vatBreakdown\": [\n      {\n        \"categoryCode\": \"AE\",\n        \"rate\": \"0.00\",\n        \"taxableAmount\": \"1700.00\",\n        \"taxAmount\": \"0.00\",\n        \"exemptionReasonCode\": \"VATEX-EU-AE\",\n        \"exemptionReason\": \"Reverse charge\"\n      }\n    ]\n  }\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": [
            {
              "name": "200 — valid",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/v1/validate",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "v1",
                    "validate"
                  ]
                },
                "description": "Send the canonical EN 16931 JSON as `invoice`. 1 credit.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"profile\": \"xrechnung\",\n  \"invoice\": {\n    \"number\": \"INV-2026-0042\",\n    \"issueDate\": \"2026-07-01\",\n    \"dueDate\": \"2026-07-31\",\n    \"currency\": \"EUR\",\n    \"buyerReference\": \"04011000-12345-67\",\n    \"seller\": {\n      \"name\": \"Example Kft.\",\n      \"vatId\": \"HU12345678\",\n      \"legalRegistrationId\": \"01-09-123456\",\n      \"electronicAddress\": {\n        \"schemeId\": \"9910\",\n        \"value\": \"HU12345678\"\n      },\n      \"address\": {\n        \"streetName\": \"Fő utca 1.\",\n        \"city\": \"Budapest\",\n        \"postalZone\": \"1011\",\n        \"countryCode\": \"HU\"\n      },\n      \"contact\": {\n        \"name\": \"Anna Kovács\",\n        \"phone\": \"+36 1 234 5678\",\n        \"email\": \"anna@example.hu\"\n      }\n    },\n    \"buyer\": {\n      \"name\": \"Muster GmbH\",\n      \"vatId\": \"DE123456789\",\n      \"electronicAddress\": {\n        \"schemeId\": \"9930\",\n        \"value\": \"DE123456789\"\n      },\n      \"address\": {\n        \"streetName\": \"Hauptstraße 5\",\n        \"city\": \"Berlin\",\n        \"postalZone\": \"10115\",\n        \"countryCode\": \"DE\"\n      }\n    },\n    \"payment\": {\n      \"meansCode\": \"58\",\n      \"iban\": \"HU42117730161111101800000000\",\n      \"bic\": \"OTPVHUHB\",\n      \"terms\": \"Payment within 30 days\",\n      \"reference\": \"INV-2026-0042\"\n    },\n    \"lines\": [\n      {\n        \"id\": \"1\",\n        \"name\": \"Consulting services\",\n        \"quantity\": \"10\",\n        \"unitCode\": \"HUR\",\n        \"unitPrice\": \"120.00\",\n        \"vat\": {\n          \"categoryCode\": \"AE\",\n          \"rate\": \"0\"\n        }\n      },\n      {\n        \"id\": \"2\",\n        \"name\": \"Software licence\",\n        \"quantity\": \"2\",\n        \"unitPrice\": \"250.00\",\n        \"vat\": {\n          \"categoryCode\": \"AE\",\n          \"rate\": \"0\"\n        }\n      }\n    ],\n    \"vatBreakdown\": [\n      {\n        \"categoryCode\": \"AE\",\n        \"rate\": \"0.00\",\n        \"taxableAmount\": \"1700.00\",\n        \"taxAmount\": \"0.00\",\n        \"exemptionReasonCode\": \"VATEX-EU-AE\",\n        \"exemptionReason\": \"Reverse charge\"\n      }\n    ]\n  }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json; charset=utf-8"
                }
              ],
              "cookie": [],
              "body": "{\n  \"valid\": true,\n  \"profile\": \"xrechnung\",\n  \"findings\": [],\n  \"counts\": {\n    \"errors\": 0,\n    \"warnings\": 0\n  },\n  \"credits\": 99\n}"
            },
            {
              "name": "200 — invalid (findings to fix)",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/v1/validate",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "v1",
                    "validate"
                  ]
                },
                "description": "Send the canonical EN 16931 JSON as `invoice`. 1 credit.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"profile\": \"xrechnung\",\n  \"invoice\": {\n    \"number\": \"INV-2026-0042\",\n    \"issueDate\": \"2026-07-01\",\n    \"dueDate\": \"2026-07-31\",\n    \"currency\": \"EUR\",\n    \"buyerReference\": \"04011000-12345-67\",\n    \"seller\": {\n      \"name\": \"Example Kft.\",\n      \"vatId\": \"HU12345678\",\n      \"legalRegistrationId\": \"01-09-123456\",\n      \"electronicAddress\": {\n        \"schemeId\": \"9910\",\n        \"value\": \"HU12345678\"\n      },\n      \"address\": {\n        \"streetName\": \"Fő utca 1.\",\n        \"city\": \"Budapest\",\n        \"postalZone\": \"1011\",\n        \"countryCode\": \"HU\"\n      },\n      \"contact\": {\n        \"name\": \"Anna Kovács\",\n        \"phone\": \"+36 1 234 5678\",\n        \"email\": \"anna@example.hu\"\n      }\n    },\n    \"buyer\": {\n      \"name\": \"Muster GmbH\",\n      \"vatId\": \"DE123456789\",\n      \"electronicAddress\": {\n        \"schemeId\": \"9930\",\n        \"value\": \"DE123456789\"\n      },\n      \"address\": {\n        \"streetName\": \"Hauptstraße 5\",\n        \"city\": \"Berlin\",\n        \"postalZone\": \"10115\",\n        \"countryCode\": \"DE\"\n      }\n    },\n    \"payment\": {\n      \"meansCode\": \"58\",\n      \"iban\": \"HU42117730161111101800000000\",\n      \"bic\": \"OTPVHUHB\",\n      \"terms\": \"Payment within 30 days\",\n      \"reference\": \"INV-2026-0042\"\n    },\n    \"lines\": [\n      {\n        \"id\": \"1\",\n        \"name\": \"Consulting services\",\n        \"quantity\": \"10\",\n        \"unitCode\": \"HUR\",\n        \"unitPrice\": \"120.00\",\n        \"vat\": {\n          \"categoryCode\": \"AE\",\n          \"rate\": \"0\"\n        }\n      },\n      {\n        \"id\": \"2\",\n        \"name\": \"Software licence\",\n        \"quantity\": \"2\",\n        \"unitPrice\": \"250.00\",\n        \"vat\": {\n          \"categoryCode\": \"AE\",\n          \"rate\": \"0\"\n        }\n      }\n    ],\n    \"vatBreakdown\": [\n      {\n        \"categoryCode\": \"AE\",\n        \"rate\": \"0.00\",\n        \"taxableAmount\": \"1700.00\",\n        \"taxAmount\": \"0.00\",\n        \"exemptionReasonCode\": \"VATEX-EU-AE\",\n        \"exemptionReason\": \"Reverse charge\"\n      }\n    ]\n  }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json; charset=utf-8"
                }
              ],
              "cookie": [],
              "body": "{\n  \"valid\": false,\n  \"profile\": \"xrechnung\",\n  \"findings\": [\n    {\n      \"rule\": \"BR-DE-15\",\n      \"severity\": \"error\",\n      \"message\": \"BuyerReference (BT-10) is mandatory in XRechnung — for B2G this is the Leitweg-ID.\",\n      \"path\": \"buyerReference\"\n    }\n  ],\n  \"counts\": {\n    \"errors\": 1,\n    \"warnings\": 0\n  },\n  \"credits\": 91\n}"
            },
            {
              "name": "402 — out of credits",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/v1/validate",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "v1",
                    "validate"
                  ]
                },
                "description": "Send the canonical EN 16931 JSON as `invoice`. 1 credit.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"profile\": \"xrechnung\",\n  \"invoice\": {\n    \"number\": \"INV-2026-0042\",\n    \"issueDate\": \"2026-07-01\",\n    \"dueDate\": \"2026-07-31\",\n    \"currency\": \"EUR\",\n    \"buyerReference\": \"04011000-12345-67\",\n    \"seller\": {\n      \"name\": \"Example Kft.\",\n      \"vatId\": \"HU12345678\",\n      \"legalRegistrationId\": \"01-09-123456\",\n      \"electronicAddress\": {\n        \"schemeId\": \"9910\",\n        \"value\": \"HU12345678\"\n      },\n      \"address\": {\n        \"streetName\": \"Fő utca 1.\",\n        \"city\": \"Budapest\",\n        \"postalZone\": \"1011\",\n        \"countryCode\": \"HU\"\n      },\n      \"contact\": {\n        \"name\": \"Anna Kovács\",\n        \"phone\": \"+36 1 234 5678\",\n        \"email\": \"anna@example.hu\"\n      }\n    },\n    \"buyer\": {\n      \"name\": \"Muster GmbH\",\n      \"vatId\": \"DE123456789\",\n      \"electronicAddress\": {\n        \"schemeId\": \"9930\",\n        \"value\": \"DE123456789\"\n      },\n      \"address\": {\n        \"streetName\": \"Hauptstraße 5\",\n        \"city\": \"Berlin\",\n        \"postalZone\": \"10115\",\n        \"countryCode\": \"DE\"\n      }\n    },\n    \"payment\": {\n      \"meansCode\": \"58\",\n      \"iban\": \"HU42117730161111101800000000\",\n      \"bic\": \"OTPVHUHB\",\n      \"terms\": \"Payment within 30 days\",\n      \"reference\": \"INV-2026-0042\"\n    },\n    \"lines\": [\n      {\n        \"id\": \"1\",\n        \"name\": \"Consulting services\",\n        \"quantity\": \"10\",\n        \"unitCode\": \"HUR\",\n        \"unitPrice\": \"120.00\",\n        \"vat\": {\n          \"categoryCode\": \"AE\",\n          \"rate\": \"0\"\n        }\n      },\n      {\n        \"id\": \"2\",\n        \"name\": \"Software licence\",\n        \"quantity\": \"2\",\n        \"unitPrice\": \"250.00\",\n        \"vat\": {\n          \"categoryCode\": \"AE\",\n          \"rate\": \"0\"\n        }\n      }\n    ],\n    \"vatBreakdown\": [\n      {\n        \"categoryCode\": \"AE\",\n        \"rate\": \"0.00\",\n        \"taxableAmount\": \"1700.00\",\n        \"taxAmount\": \"0.00\",\n        \"exemptionReasonCode\": \"VATEX-EU-AE\",\n        \"exemptionReason\": \"Reverse charge\"\n      }\n    ]\n  }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Payment Required",
              "code": 402,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json; charset=utf-8"
                }
              ],
              "cookie": [],
              "body": "{\n  \"error\": \"Insufficient credits.\",\n  \"credits\": 1\n}"
            }
          ],
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('HTTP 200 — validated', () => pm.response.to.have.status(200));",
                  "pm.test('invoice is valid', () => pm.expect(pm.response.json().valid).to.eql(true));"
                ]
              }
            }
          ]
        },
        {
          "name": "Validate e-invoice XML (UBL / CII / ZUGFeRD)",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/validate",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "validate"
              ]
            },
            "description": "Send an existing e-invoice XML string as `xml` — UBL (Peppol, XRechnung) or CII (Factur-X / ZUGFeRD). 1 credit.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"profile\": \"peppol-bis-3\",\n  \"xml\": \"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\\n<Invoice xmlns=\\\"urn:oasis:names:specification:ubl:schema:xsd:Invoice-2\\\" xmlns:cac=\\\"urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2\\\" xmlns:cbc=\\\"urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2\\\">\\n  <cbc:CustomizationID>urn:cen.eu:en16931:2017#compliant#urn:fdc:peppol.eu:2017:poacc:billing:3.0</cbc:CustomizationID>\\n  <cbc:ProfileID>urn:fdc:peppol.eu:2017:poacc:billing:01:1.0</cbc:ProfileID>\\n  <cbc:ID>INV-2026-0042</cbc:ID>\\n  <cbc:IssueDate>2026-07-01</cbc:IssueDate>\\n  <cbc:DueDate>2026-07-31</cbc:DueDate>\\n  <cbc:InvoiceTypeCode>380</cbc:InvoiceTypeCode>\\n  <cbc:DocumentCurrencyCode>EUR</cbc:DocumentCurrencyCode>\\n  <cbc:BuyerReference>04011000-12345-67</cbc:BuyerReference>\\n  <cac:AccountingSupplierParty>\\n    <cac:Party>\\n      <cbc:EndpointID schemeID=\\\"9910\\\">HU12345678</cbc:EndpointID>\\n      <cac:PostalAddress>\\n        <cbc:StreetName>Fő utca 1.</cbc:StreetName>\\n        <cbc:CityName>Budapest</cbc:CityName>\\n        <cbc:PostalZone>1011</cbc:PostalZone>\\n        <cac:Country>\\n          <cbc:IdentificationCode>HU</cbc:IdentificationCode>\\n        </cac:Country>\\n      </cac:PostalAddress>\\n      <cac:PartyTaxScheme>\\n        <cbc:CompanyID>HU12345678</cbc:CompanyID>\\n        <cac:TaxScheme>\\n          <cbc:ID>VAT</cbc:ID>\\n        </cac:TaxScheme>\\n      </cac:PartyTaxScheme>\\n      <cac:PartyLegalEntity>\\n        <cbc:RegistrationName>Example Kft.</cbc:RegistrationName>\\n        <cbc:CompanyID>01-09-123456</cbc:CompanyID>\\n      </cac:PartyLegalEntity>\\n      <cac:Contact>\\n        <cbc:Name>Anna Kovács</cbc:Name>\\n        <cbc:Telephone>+36 1 234 5678</cbc:Telephone>\\n        <cbc:ElectronicMail>anna@example.hu</cbc:ElectronicMail>\\n      </cac:Contact>\\n    </cac:Party>\\n  </cac:AccountingSupplierParty>\\n  <cac:AccountingCustomerParty>\\n    <cac:Party>\\n      <cbc:EndpointID schemeID=\\\"9930\\\">DE123456789</cbc:EndpointID>\\n      <cac:PostalAddress>\\n        <cbc:StreetName>Hauptstraße 5</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:Party>\\n  </cac:AccountingCustomerParty>\\n  <cac:PaymentMeans>\\n    <cbc:PaymentMeansCode>58</cbc:PaymentMeansCode>\\n    <cbc:PaymentID>INV-2026-0042</cbc:PaymentID>\\n    <cac:PayeeFinancialAccount>\\n      <cbc:ID>HU42117730161111101800000000</cbc:ID>\\n      <cac:FinancialInstitutionBranch>\\n        <cbc:ID>OTPVHUHB</cbc:ID>\\n      </cac:FinancialInstitutionBranch>\\n    </cac:PayeeFinancialAccount>\\n  </cac:PaymentMeans>\\n  <cac:PaymentTerms>\\n    <cbc:Note>Payment within 30 days</cbc:Note>\\n  </cac:PaymentTerms>\\n  <cac:TaxTotal>\\n    <cbc:TaxAmount currencyID=\\\"EUR\\\">0.00</cbc:TaxAmount>\\n    <cac:TaxSubtotal>\\n      <cbc:TaxableAmount currencyID=\\\"EUR\\\">1700.00</cbc:TaxableAmount>\\n      <cbc:TaxAmount currencyID=\\\"EUR\\\">0.00</cbc:TaxAmount>\\n      <cac:TaxCategory>\\n        <cbc:ID>AE</cbc:ID>\\n        <cbc:Percent>0.00</cbc:Percent>\\n        <cbc:TaxExemptionReasonCode>VATEX-EU-AE</cbc:TaxExemptionReasonCode>\\n        <cbc:TaxExemptionReason>Reverse charge</cbc:TaxExemptionReason>\\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\\\">1700.00</cbc:LineExtensionAmount>\\n    <cbc:TaxExclusiveAmount currencyID=\\\"EUR\\\">1700.00</cbc:TaxExclusiveAmount>\\n    <cbc:TaxInclusiveAmount currencyID=\\\"EUR\\\">1700.00</cbc:TaxInclusiveAmount>\\n    <cbc:PayableAmount currencyID=\\\"EUR\\\">1700.00</cbc:PayableAmount>\\n  </cac:LegalMonetaryTotal>\\n  <cac:InvoiceLine>\\n    <cbc:ID>1</cbc:ID>\\n    <cbc:InvoicedQuantity unitCode=\\\"HUR\\\">10</cbc:InvoicedQuantity>\\n    <cbc:LineExtensionAmount currencyID=\\\"EUR\\\">1200.00</cbc:LineExtensionAmount>\\n    <cac:Item>\\n      <cbc:Name>Consulting services</cbc:Name>\\n      <cac:ClassifiedTaxCategory>\\n        <cbc:ID>AE</cbc:ID>\\n        <cbc:Percent>0</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.00</cbc:PriceAmount>\\n    </cac:Price>\\n  </cac:InvoiceLine>\\n  <cac:InvoiceLine>\\n    <cbc:ID>2</cbc:ID>\\n    <cbc:InvoicedQuantity unitCode=\\\"C62\\\">2</cbc:InvoicedQuantity>\\n    <cbc:LineExtensionAmount currencyID=\\\"EUR\\\">500.00</cbc:LineExtensionAmount>\\n    <cac:Item>\\n      <cbc:Name>Software licence</cbc:Name>\\n      <cac:ClassifiedTaxCategory>\\n        <cbc:ID>AE</cbc:ID>\\n        <cbc:Percent>0</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\\\">250.00</cbc:PriceAmount>\\n    </cac:Price>\\n  </cac:InvoiceLine>\\n</Invoice>\\n\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": [
            {
              "name": "200 — valid",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/v1/validate",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "v1",
                    "validate"
                  ]
                },
                "description": "Send an existing e-invoice XML string as `xml` — UBL (Peppol, XRechnung) or CII (Factur-X / ZUGFeRD). 1 credit.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"profile\": \"peppol-bis-3\",\n  \"xml\": \"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\\n<Invoice xmlns=\\\"urn:oasis:names:specification:ubl:schema:xsd:Invoice-2\\\" xmlns:cac=\\\"urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2\\\" xmlns:cbc=\\\"urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2\\\">\\n  <cbc:CustomizationID>urn:cen.eu:en16931:2017#compliant#urn:fdc:peppol.eu:2017:poacc:billing:3.0</cbc:CustomizationID>\\n  <cbc:ProfileID>urn:fdc:peppol.eu:2017:poacc:billing:01:1.0</cbc:ProfileID>\\n  <cbc:ID>INV-2026-0042</cbc:ID>\\n  <cbc:IssueDate>2026-07-01</cbc:IssueDate>\\n  <cbc:DueDate>2026-07-31</cbc:DueDate>\\n  <cbc:InvoiceTypeCode>380</cbc:InvoiceTypeCode>\\n  <cbc:DocumentCurrencyCode>EUR</cbc:DocumentCurrencyCode>\\n  <cbc:BuyerReference>04011000-12345-67</cbc:BuyerReference>\\n  <cac:AccountingSupplierParty>\\n    <cac:Party>\\n      <cbc:EndpointID schemeID=\\\"9910\\\">HU12345678</cbc:EndpointID>\\n      <cac:PostalAddress>\\n        <cbc:StreetName>Fő utca 1.</cbc:StreetName>\\n        <cbc:CityName>Budapest</cbc:CityName>\\n        <cbc:PostalZone>1011</cbc:PostalZone>\\n        <cac:Country>\\n          <cbc:IdentificationCode>HU</cbc:IdentificationCode>\\n        </cac:Country>\\n      </cac:PostalAddress>\\n      <cac:PartyTaxScheme>\\n        <cbc:CompanyID>HU12345678</cbc:CompanyID>\\n        <cac:TaxScheme>\\n          <cbc:ID>VAT</cbc:ID>\\n        </cac:TaxScheme>\\n      </cac:PartyTaxScheme>\\n      <cac:PartyLegalEntity>\\n        <cbc:RegistrationName>Example Kft.</cbc:RegistrationName>\\n        <cbc:CompanyID>01-09-123456</cbc:CompanyID>\\n      </cac:PartyLegalEntity>\\n      <cac:Contact>\\n        <cbc:Name>Anna Kovács</cbc:Name>\\n        <cbc:Telephone>+36 1 234 5678</cbc:Telephone>\\n        <cbc:ElectronicMail>anna@example.hu</cbc:ElectronicMail>\\n      </cac:Contact>\\n    </cac:Party>\\n  </cac:AccountingSupplierParty>\\n  <cac:AccountingCustomerParty>\\n    <cac:Party>\\n      <cbc:EndpointID schemeID=\\\"9930\\\">DE123456789</cbc:EndpointID>\\n      <cac:PostalAddress>\\n        <cbc:StreetName>Hauptstraße 5</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:Party>\\n  </cac:AccountingCustomerParty>\\n  <cac:PaymentMeans>\\n    <cbc:PaymentMeansCode>58</cbc:PaymentMeansCode>\\n    <cbc:PaymentID>INV-2026-0042</cbc:PaymentID>\\n    <cac:PayeeFinancialAccount>\\n      <cbc:ID>HU42117730161111101800000000</cbc:ID>\\n      <cac:FinancialInstitutionBranch>\\n        <cbc:ID>OTPVHUHB</cbc:ID>\\n      </cac:FinancialInstitutionBranch>\\n    </cac:PayeeFinancialAccount>\\n  </cac:PaymentMeans>\\n  <cac:PaymentTerms>\\n    <cbc:Note>Payment within 30 days</cbc:Note>\\n  </cac:PaymentTerms>\\n  <cac:TaxTotal>\\n    <cbc:TaxAmount currencyID=\\\"EUR\\\">0.00</cbc:TaxAmount>\\n    <cac:TaxSubtotal>\\n      <cbc:TaxableAmount currencyID=\\\"EUR\\\">1700.00</cbc:TaxableAmount>\\n      <cbc:TaxAmount currencyID=\\\"EUR\\\">0.00</cbc:TaxAmount>\\n      <cac:TaxCategory>\\n        <cbc:ID>AE</cbc:ID>\\n        <cbc:Percent>0.00</cbc:Percent>\\n        <cbc:TaxExemptionReasonCode>VATEX-EU-AE</cbc:TaxExemptionReasonCode>\\n        <cbc:TaxExemptionReason>Reverse charge</cbc:TaxExemptionReason>\\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\\\">1700.00</cbc:LineExtensionAmount>\\n    <cbc:TaxExclusiveAmount currencyID=\\\"EUR\\\">1700.00</cbc:TaxExclusiveAmount>\\n    <cbc:TaxInclusiveAmount currencyID=\\\"EUR\\\">1700.00</cbc:TaxInclusiveAmount>\\n    <cbc:PayableAmount currencyID=\\\"EUR\\\">1700.00</cbc:PayableAmount>\\n  </cac:LegalMonetaryTotal>\\n  <cac:InvoiceLine>\\n    <cbc:ID>1</cbc:ID>\\n    <cbc:InvoicedQuantity unitCode=\\\"HUR\\\">10</cbc:InvoicedQuantity>\\n    <cbc:LineExtensionAmount currencyID=\\\"EUR\\\">1200.00</cbc:LineExtensionAmount>\\n    <cac:Item>\\n      <cbc:Name>Consulting services</cbc:Name>\\n      <cac:ClassifiedTaxCategory>\\n        <cbc:ID>AE</cbc:ID>\\n        <cbc:Percent>0</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.00</cbc:PriceAmount>\\n    </cac:Price>\\n  </cac:InvoiceLine>\\n  <cac:InvoiceLine>\\n    <cbc:ID>2</cbc:ID>\\n    <cbc:InvoicedQuantity unitCode=\\\"C62\\\">2</cbc:InvoicedQuantity>\\n    <cbc:LineExtensionAmount currencyID=\\\"EUR\\\">500.00</cbc:LineExtensionAmount>\\n    <cac:Item>\\n      <cbc:Name>Software licence</cbc:Name>\\n      <cac:ClassifiedTaxCategory>\\n        <cbc:ID>AE</cbc:ID>\\n        <cbc:Percent>0</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\\\">250.00</cbc:PriceAmount>\\n    </cac:Price>\\n  </cac:InvoiceLine>\\n</Invoice>\\n\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json; charset=utf-8"
                }
              ],
              "cookie": [],
              "body": "{\n  \"valid\": true,\n  \"profile\": \"peppol-bis-3\",\n  \"findings\": [],\n  \"counts\": {\n    \"errors\": 0,\n    \"warnings\": 0\n  },\n  \"credits\": 96\n}"
            }
          ],
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('HTTP 200 — validated', () => pm.response.to.have.status(200));",
                  "pm.test('has findings[]', () => pm.expect(pm.response.json().findings).to.be.an('array'));"
                ]
              }
            }
          ]
        }
      ]
    },
    {
      "name": "Convert (2 credits)",
      "description": "Convert canonical JSON (or UBL/CII XML) into a compliant e-invoice. 2 credits. If the invoice breaks the target format's rules you get **HTTP 422 with the findings list and are not charged**.",
      "item": [
        {
          "name": "Convert → XRechnung 3.x (UBL)",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/convert",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "convert"
              ]
            },
            "description": "Germany (B2G now, B2B from 2027). `buyerReference` = Leitweg-ID for public buyers. Response `xml` is the XRechnung document — save it as `.xml`.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"target\": \"xrechnung-ubl\",\n  \"invoice\": {\n    \"number\": \"INV-2026-0042\",\n    \"issueDate\": \"2026-07-01\",\n    \"dueDate\": \"2026-07-31\",\n    \"currency\": \"EUR\",\n    \"buyerReference\": \"04011000-12345-67\",\n    \"seller\": {\n      \"name\": \"Example Kft.\",\n      \"vatId\": \"HU12345678\",\n      \"legalRegistrationId\": \"01-09-123456\",\n      \"electronicAddress\": {\n        \"schemeId\": \"9910\",\n        \"value\": \"HU12345678\"\n      },\n      \"address\": {\n        \"streetName\": \"Fő utca 1.\",\n        \"city\": \"Budapest\",\n        \"postalZone\": \"1011\",\n        \"countryCode\": \"HU\"\n      },\n      \"contact\": {\n        \"name\": \"Anna Kovács\",\n        \"phone\": \"+36 1 234 5678\",\n        \"email\": \"anna@example.hu\"\n      }\n    },\n    \"buyer\": {\n      \"name\": \"Muster GmbH\",\n      \"vatId\": \"DE123456789\",\n      \"electronicAddress\": {\n        \"schemeId\": \"9930\",\n        \"value\": \"DE123456789\"\n      },\n      \"address\": {\n        \"streetName\": \"Hauptstraße 5\",\n        \"city\": \"Berlin\",\n        \"postalZone\": \"10115\",\n        \"countryCode\": \"DE\"\n      }\n    },\n    \"payment\": {\n      \"meansCode\": \"58\",\n      \"iban\": \"HU42117730161111101800000000\",\n      \"bic\": \"OTPVHUHB\",\n      \"terms\": \"Payment within 30 days\",\n      \"reference\": \"INV-2026-0042\"\n    },\n    \"lines\": [\n      {\n        \"id\": \"1\",\n        \"name\": \"Consulting services\",\n        \"quantity\": \"10\",\n        \"unitCode\": \"HUR\",\n        \"unitPrice\": \"120.00\",\n        \"vat\": {\n          \"categoryCode\": \"AE\",\n          \"rate\": \"0\"\n        }\n      },\n      {\n        \"id\": \"2\",\n        \"name\": \"Software licence\",\n        \"quantity\": \"2\",\n        \"unitPrice\": \"250.00\",\n        \"vat\": {\n          \"categoryCode\": \"AE\",\n          \"rate\": \"0\"\n        }\n      }\n    ],\n    \"vatBreakdown\": [\n      {\n        \"categoryCode\": \"AE\",\n        \"rate\": \"0.00\",\n        \"taxableAmount\": \"1700.00\",\n        \"taxAmount\": \"0.00\",\n        \"exemptionReasonCode\": \"VATEX-EU-AE\",\n        \"exemptionReason\": \"Reverse charge\"\n      }\n    ]\n  }\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": [
            {
              "name": "200 — XRechnung XML",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/v1/convert",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "v1",
                    "convert"
                  ]
                },
                "description": "Germany (B2G now, B2B from 2027). `buyerReference` = Leitweg-ID for public buyers. Response `xml` is the XRechnung document — save it as `.xml`.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"target\": \"xrechnung-ubl\",\n  \"invoice\": {\n    \"number\": \"INV-2026-0042\",\n    \"issueDate\": \"2026-07-01\",\n    \"dueDate\": \"2026-07-31\",\n    \"currency\": \"EUR\",\n    \"buyerReference\": \"04011000-12345-67\",\n    \"seller\": {\n      \"name\": \"Example Kft.\",\n      \"vatId\": \"HU12345678\",\n      \"legalRegistrationId\": \"01-09-123456\",\n      \"electronicAddress\": {\n        \"schemeId\": \"9910\",\n        \"value\": \"HU12345678\"\n      },\n      \"address\": {\n        \"streetName\": \"Fő utca 1.\",\n        \"city\": \"Budapest\",\n        \"postalZone\": \"1011\",\n        \"countryCode\": \"HU\"\n      },\n      \"contact\": {\n        \"name\": \"Anna Kovács\",\n        \"phone\": \"+36 1 234 5678\",\n        \"email\": \"anna@example.hu\"\n      }\n    },\n    \"buyer\": {\n      \"name\": \"Muster GmbH\",\n      \"vatId\": \"DE123456789\",\n      \"electronicAddress\": {\n        \"schemeId\": \"9930\",\n        \"value\": \"DE123456789\"\n      },\n      \"address\": {\n        \"streetName\": \"Hauptstraße 5\",\n        \"city\": \"Berlin\",\n        \"postalZone\": \"10115\",\n        \"countryCode\": \"DE\"\n      }\n    },\n    \"payment\": {\n      \"meansCode\": \"58\",\n      \"iban\": \"HU42117730161111101800000000\",\n      \"bic\": \"OTPVHUHB\",\n      \"terms\": \"Payment within 30 days\",\n      \"reference\": \"INV-2026-0042\"\n    },\n    \"lines\": [\n      {\n        \"id\": \"1\",\n        \"name\": \"Consulting services\",\n        \"quantity\": \"10\",\n        \"unitCode\": \"HUR\",\n        \"unitPrice\": \"120.00\",\n        \"vat\": {\n          \"categoryCode\": \"AE\",\n          \"rate\": \"0\"\n        }\n      },\n      {\n        \"id\": \"2\",\n        \"name\": \"Software licence\",\n        \"quantity\": \"2\",\n        \"unitPrice\": \"250.00\",\n        \"vat\": {\n          \"categoryCode\": \"AE\",\n          \"rate\": \"0\"\n        }\n      }\n    ],\n    \"vatBreakdown\": [\n      {\n        \"categoryCode\": \"AE\",\n        \"rate\": \"0.00\",\n        \"taxableAmount\": \"1700.00\",\n        \"taxAmount\": \"0.00\",\n        \"exemptionReasonCode\": \"VATEX-EU-AE\",\n        \"exemptionReason\": \"Reverse charge\"\n      }\n    ]\n  }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json; charset=utf-8"
                }
              ],
              "cookie": [],
              "body": "{\n  \"target\": \"xrechnung-ubl\",\n  \"xml\": \"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\\n<Invoice xmlns=\\\"urn:oasis:names:specification:ubl:schema:xsd:Invoice-2\\\" xmlns:cac=\\\"urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2\\\" 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>INV-2026-0042</cbc:ID>\\n  <cbc:IssueDate>2026-07-01</cbc:IssueDate>\\n  <cbc:DueDate>2026-07-31</cbc:DueDate>\\n  <cbc:InvoiceTypeCode>380</cbc:InvoiceTypeCode>\\n  <cbc:DocumentCurrencyCode>EUR</cbc:DocumentCurrencyCode>\\n  <cbc:BuyerReference>04011000-12345-67</cbc:BuyerReference>\\n  <cac:AccountingSupplierParty>\\n    <cac:Party>\\n      <cbc:EndpointID schemeID=\\\"9910\\\">HU12345678</cbc:EndpointID>\\n      <cac:PostalAddress>\\n        <cbc:StreetName>Fő utca 1.</cbc:StreetName>\\n        <cbc:CityName>Budapest</cbc:CityName>\\n        <cbc:PostalZone>1011</cbc:PostalZone>\\n        <cac:Country>\\n          <cbc:IdentificationCode>HU</cbc:IdentificationCode>\\n        </cac:Country>\\n      </cac:PostalAddress>\\n      <cac:PartyTaxScheme>\\n        <cbc:CompanyID>HU12345678</cbc:CompanyID>\\n        <cac:TaxScheme>\\n          <cbc:ID>VAT</cbc:ID>\\n        </cac:TaxScheme>\\n      </cac:PartyTaxScheme>\\n      <cac:PartyLegalEntity>\\n        <cbc:RegistrationName>Example Kft.</cbc:RegistrationName>\\n        <cbc:CompanyID>01-09-123456</cbc:CompanyID>\\n      </cac:PartyLegalEntity>\\n      <cac:Contact>\\n        <cbc:Name>Anna Kovács</cbc:Name>\\n        <cbc:Telephone>+36 1 234 5678</cbc:Telephone>\\n        <cbc:ElectronicMail>anna@example.hu</cbc:ElectronicMail>\\n      </cac:Contact>\\n    </cac:Party>\\n  </cac:AccountingSupplierParty>\\n  <cac:AccountingCustomerParty>\\n    <cac:Party>\\n      <cbc:EndpointID schemeID=\\\"9930\\\">DE123456789</cbc:EndpointID>\\n      <cac:PostalAddress>\\n        <cbc:StreetName>Hauptstraße 5</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:Party>\\n  </cac:AccountingCustomerParty>\\n  <cac:PaymentMeans>\\n    <cbc:PaymentMeansCode>58</cbc:PaymentMeansCode>\\n    <cbc:PaymentID>INV-2026-0042</cbc:PaymentID>\\n    <cac:PayeeFinancialAccount>\\n      <cbc:ID>HU42117730161111101800000000</cbc:ID>\\n      <cac:FinancialInstitutionBranch>\\n        <cbc:ID>OTPVHUHB</cbc:ID>\\n      </cac:FinancialInstitutionBranch>\\n    </cac:PayeeFinancialAccount>\\n  </cac:PaymentMeans>\\n  <cac:PaymentTerms>\\n    <cbc:Note>Payment within 30 days</cbc:Note>\\n  </cac:PaymentTerms>\\n  <cac:TaxTotal>\\n    <cbc:TaxAmount currencyID=\\\"EUR\\\">0.00</cbc:TaxAmount>\\n    <cac:TaxSubtotal>\\n      <cbc:TaxableAmount currencyID=\\\"EUR\\\">1700.00</cbc:TaxableAmount>\\n      <cbc:TaxAmount currencyID=\\\"EUR\\\">0.00</cbc:TaxAmount>\\n      <cac:TaxCategory>\\n        <cbc:ID>AE</cbc:ID>\\n        <cbc:Percent>0.00</cbc:Percent>\\n        <cbc:TaxExemptionReasonCode>VATEX-EU-AE</cbc:TaxExemptionReasonCode>\\n        <cbc:TaxExemptionReason>Reverse charge</cbc:TaxExemptionReason>\\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\\\">1700.00</cbc:LineExtensionAmount>\\n    <cbc:TaxExclusiveAmount currencyID=\\\"EUR\\\">1700.00</cbc:TaxExclusiveAmount>\\n    <cbc:TaxInclusiveAmount currencyID=\\\"EUR\\\">1700.00</cbc:TaxInclusiveAmount>\\n    <cbc:PayableAmount currencyID=\\\"EUR\\\">1700.00</cbc:PayableAmount>\\n  </cac:LegalMonetaryTotal>\\n  <cac:InvoiceLine>\\n    <cbc:ID>1</cbc:ID>\\n    <cbc:InvoicedQuantity unitCode=\\\"HUR\\\">10</cbc:InvoicedQuantity>\\n    <cbc:LineExtensionAmount currencyID=\\\"EUR\\\">1200.00</cbc:LineExtensionAmount>\\n    <cac:Item>\\n      <cbc:Name>Consulting services</cbc:Name>\\n      <cac:ClassifiedTaxCategory>\\n        <cbc:ID>AE</cbc:ID>\\n        <cbc:Percent>0</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.00</cbc:PriceAmount>\\n    </cac:Price>\\n  </cac:InvoiceLine>\\n  <cac:InvoiceLine>\\n    <cbc:ID>2</cbc:ID>\\n    <cbc:InvoicedQuantity unitCode=\\\"C62\\\">2</cbc:InvoicedQuantity>\\n    <cbc:LineExtensionAmount currencyID=\\\"EUR\\\">500.00</cbc:LineExtensionAmount>\\n    <cac:Item>\\n      <cbc:Name>Software licence</cbc:Name>\\n      <cac:ClassifiedTaxCategory>\\n        <cbc:ID>AE</cbc:ID>\\n        <cbc:Percent>0</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\\\">250.00</cbc:PriceAmount>\\n    </cac:Price>\\n  </cac:InvoiceLine>\\n</Invoice>\\n\",\n  \"warnings\": [],\n  \"credits\": 94\n}"
            },
            {
              "name": "422 — fix these first (not charged)",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/v1/convert",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "v1",
                    "convert"
                  ]
                },
                "description": "Germany (B2G now, B2B from 2027). `buyerReference` = Leitweg-ID for public buyers. Response `xml` is the XRechnung document — save it as `.xml`.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"target\": \"xrechnung-ubl\",\n  \"invoice\": {\n    \"number\": \"INV-2026-0042\",\n    \"issueDate\": \"2026-07-01\",\n    \"dueDate\": \"2026-07-31\",\n    \"currency\": \"EUR\",\n    \"buyerReference\": \"04011000-12345-67\",\n    \"seller\": {\n      \"name\": \"Example Kft.\",\n      \"vatId\": \"HU12345678\",\n      \"legalRegistrationId\": \"01-09-123456\",\n      \"electronicAddress\": {\n        \"schemeId\": \"9910\",\n        \"value\": \"HU12345678\"\n      },\n      \"address\": {\n        \"streetName\": \"Fő utca 1.\",\n        \"city\": \"Budapest\",\n        \"postalZone\": \"1011\",\n        \"countryCode\": \"HU\"\n      },\n      \"contact\": {\n        \"name\": \"Anna Kovács\",\n        \"phone\": \"+36 1 234 5678\",\n        \"email\": \"anna@example.hu\"\n      }\n    },\n    \"buyer\": {\n      \"name\": \"Muster GmbH\",\n      \"vatId\": \"DE123456789\",\n      \"electronicAddress\": {\n        \"schemeId\": \"9930\",\n        \"value\": \"DE123456789\"\n      },\n      \"address\": {\n        \"streetName\": \"Hauptstraße 5\",\n        \"city\": \"Berlin\",\n        \"postalZone\": \"10115\",\n        \"countryCode\": \"DE\"\n      }\n    },\n    \"payment\": {\n      \"meansCode\": \"58\",\n      \"iban\": \"HU42117730161111101800000000\",\n      \"bic\": \"OTPVHUHB\",\n      \"terms\": \"Payment within 30 days\",\n      \"reference\": \"INV-2026-0042\"\n    },\n    \"lines\": [\n      {\n        \"id\": \"1\",\n        \"name\": \"Consulting services\",\n        \"quantity\": \"10\",\n        \"unitCode\": \"HUR\",\n        \"unitPrice\": \"120.00\",\n        \"vat\": {\n          \"categoryCode\": \"AE\",\n          \"rate\": \"0\"\n        }\n      },\n      {\n        \"id\": \"2\",\n        \"name\": \"Software licence\",\n        \"quantity\": \"2\",\n        \"unitPrice\": \"250.00\",\n        \"vat\": {\n          \"categoryCode\": \"AE\",\n          \"rate\": \"0\"\n        }\n      }\n    ],\n    \"vatBreakdown\": [\n      {\n        \"categoryCode\": \"AE\",\n        \"rate\": \"0.00\",\n        \"taxableAmount\": \"1700.00\",\n        \"taxAmount\": \"0.00\",\n        \"exemptionReasonCode\": \"VATEX-EU-AE\",\n        \"exemptionReason\": \"Reverse charge\"\n      }\n    ]\n  }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Unprocessable Entity",
              "code": 422,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json; charset=utf-8"
                }
              ],
              "cookie": [],
              "body": "{\n  \"error\": \"Invoice fails validation for the target format; fix the errors below (validation was not charged).\",\n  \"valid\": false,\n  \"profile\": \"xrechnung\",\n  \"findings\": [\n    {\n      \"rule\": \"BR-DE-15\",\n      \"severity\": \"error\",\n      \"message\": \"BuyerReference (BT-10) is mandatory in XRechnung — for B2G this is the Leitweg-ID.\",\n      \"path\": \"buyerReference\"\n    }\n  ],\n  \"counts\": {\n    \"errors\": 1,\n    \"warnings\": 0\n  }\n}"
            }
          ],
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('HTTP 200 — converted', () => pm.response.to.have.status(200));",
                  "const body = pm.response.json();",
                  "pm.test('XML returned', () => pm.expect(body.xml).to.include('xeinkauf.de'));",
                  "// Keep the XML for later requests / copy-paste: {{lastXrechnungXml}}",
                  "pm.collectionVariables.set('lastXrechnungXml', body.xml);"
                ]
              }
            }
          ]
        },
        {
          "name": "Convert → Peppol BIS Billing 3.0 (UBL)",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/convert",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "convert"
              ]
            },
            "description": "Belgium, Nordics, and any Peppol network delivery.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"target\": \"peppol-bis-3\",\n  \"invoice\": {\n    \"number\": \"INV-2026-0042\",\n    \"issueDate\": \"2026-07-01\",\n    \"dueDate\": \"2026-07-31\",\n    \"currency\": \"EUR\",\n    \"buyerReference\": \"04011000-12345-67\",\n    \"seller\": {\n      \"name\": \"Example Kft.\",\n      \"vatId\": \"HU12345678\",\n      \"legalRegistrationId\": \"01-09-123456\",\n      \"electronicAddress\": {\n        \"schemeId\": \"9910\",\n        \"value\": \"HU12345678\"\n      },\n      \"address\": {\n        \"streetName\": \"Fő utca 1.\",\n        \"city\": \"Budapest\",\n        \"postalZone\": \"1011\",\n        \"countryCode\": \"HU\"\n      },\n      \"contact\": {\n        \"name\": \"Anna Kovács\",\n        \"phone\": \"+36 1 234 5678\",\n        \"email\": \"anna@example.hu\"\n      }\n    },\n    \"buyer\": {\n      \"name\": \"Muster GmbH\",\n      \"vatId\": \"DE123456789\",\n      \"electronicAddress\": {\n        \"schemeId\": \"9930\",\n        \"value\": \"DE123456789\"\n      },\n      \"address\": {\n        \"streetName\": \"Hauptstraße 5\",\n        \"city\": \"Berlin\",\n        \"postalZone\": \"10115\",\n        \"countryCode\": \"DE\"\n      }\n    },\n    \"payment\": {\n      \"meansCode\": \"58\",\n      \"iban\": \"HU42117730161111101800000000\",\n      \"bic\": \"OTPVHUHB\",\n      \"terms\": \"Payment within 30 days\",\n      \"reference\": \"INV-2026-0042\"\n    },\n    \"lines\": [\n      {\n        \"id\": \"1\",\n        \"name\": \"Consulting services\",\n        \"quantity\": \"10\",\n        \"unitCode\": \"HUR\",\n        \"unitPrice\": \"120.00\",\n        \"vat\": {\n          \"categoryCode\": \"AE\",\n          \"rate\": \"0\"\n        }\n      },\n      {\n        \"id\": \"2\",\n        \"name\": \"Software licence\",\n        \"quantity\": \"2\",\n        \"unitPrice\": \"250.00\",\n        \"vat\": {\n          \"categoryCode\": \"AE\",\n          \"rate\": \"0\"\n        }\n      }\n    ],\n    \"vatBreakdown\": [\n      {\n        \"categoryCode\": \"AE\",\n        \"rate\": \"0.00\",\n        \"taxableAmount\": \"1700.00\",\n        \"taxAmount\": \"0.00\",\n        \"exemptionReasonCode\": \"VATEX-EU-AE\",\n        \"exemptionReason\": \"Reverse charge\"\n      }\n    ]\n  }\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": [
            {
              "name": "200 — Peppol UBL XML",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/v1/convert",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "v1",
                    "convert"
                  ]
                },
                "description": "Belgium, Nordics, and any Peppol network delivery.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"target\": \"peppol-bis-3\",\n  \"invoice\": {\n    \"number\": \"INV-2026-0042\",\n    \"issueDate\": \"2026-07-01\",\n    \"dueDate\": \"2026-07-31\",\n    \"currency\": \"EUR\",\n    \"buyerReference\": \"04011000-12345-67\",\n    \"seller\": {\n      \"name\": \"Example Kft.\",\n      \"vatId\": \"HU12345678\",\n      \"legalRegistrationId\": \"01-09-123456\",\n      \"electronicAddress\": {\n        \"schemeId\": \"9910\",\n        \"value\": \"HU12345678\"\n      },\n      \"address\": {\n        \"streetName\": \"Fő utca 1.\",\n        \"city\": \"Budapest\",\n        \"postalZone\": \"1011\",\n        \"countryCode\": \"HU\"\n      },\n      \"contact\": {\n        \"name\": \"Anna Kovács\",\n        \"phone\": \"+36 1 234 5678\",\n        \"email\": \"anna@example.hu\"\n      }\n    },\n    \"buyer\": {\n      \"name\": \"Muster GmbH\",\n      \"vatId\": \"DE123456789\",\n      \"electronicAddress\": {\n        \"schemeId\": \"9930\",\n        \"value\": \"DE123456789\"\n      },\n      \"address\": {\n        \"streetName\": \"Hauptstraße 5\",\n        \"city\": \"Berlin\",\n        \"postalZone\": \"10115\",\n        \"countryCode\": \"DE\"\n      }\n    },\n    \"payment\": {\n      \"meansCode\": \"58\",\n      \"iban\": \"HU42117730161111101800000000\",\n      \"bic\": \"OTPVHUHB\",\n      \"terms\": \"Payment within 30 days\",\n      \"reference\": \"INV-2026-0042\"\n    },\n    \"lines\": [\n      {\n        \"id\": \"1\",\n        \"name\": \"Consulting services\",\n        \"quantity\": \"10\",\n        \"unitCode\": \"HUR\",\n        \"unitPrice\": \"120.00\",\n        \"vat\": {\n          \"categoryCode\": \"AE\",\n          \"rate\": \"0\"\n        }\n      },\n      {\n        \"id\": \"2\",\n        \"name\": \"Software licence\",\n        \"quantity\": \"2\",\n        \"unitPrice\": \"250.00\",\n        \"vat\": {\n          \"categoryCode\": \"AE\",\n          \"rate\": \"0\"\n        }\n      }\n    ],\n    \"vatBreakdown\": [\n      {\n        \"categoryCode\": \"AE\",\n        \"rate\": \"0.00\",\n        \"taxableAmount\": \"1700.00\",\n        \"taxAmount\": \"0.00\",\n        \"exemptionReasonCode\": \"VATEX-EU-AE\",\n        \"exemptionReason\": \"Reverse charge\"\n      }\n    ]\n  }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json; charset=utf-8"
                }
              ],
              "cookie": [],
              "body": "{\n  \"target\": \"peppol-bis-3\",\n  \"xml\": \"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\\n<Invoice xmlns=\\\"urn:oasis:names:specification:ubl:schema:xsd:Invoice-2\\\" xmlns:cac=\\\"urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2\\\" xmlns:cbc=\\\"urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2\\\">\\n  <cbc:CustomizationID>urn:cen.eu:en16931:2017#compliant#urn:fdc:peppol.eu:2017:poacc:billing:3.0</cbc:CustomizationID>\\n  <cbc:ProfileID>urn:fdc:peppol.eu:2017:poacc:billing:01:1.0</cbc:ProfileID>\\n  <cbc:ID>INV-2026-0042</cbc:ID>\\n  <cbc:IssueDate>2026-07-01</cbc:IssueDate>\\n  <cbc:DueDate>2026-07-31</cbc:DueDate>\\n  <cbc:InvoiceTypeCode>380</cbc:InvoiceTypeCode>\\n  <cbc:DocumentCurrencyCode>EUR</cbc:DocumentCurrencyCode>\\n  <cbc:BuyerReference>04011000-12345-67</cbc:BuyerReference>\\n  <cac:AccountingSupplierParty>\\n    <cac:Party>\\n      <cbc:EndpointID schemeID=\\\"9910\\\">HU12345678</cbc:EndpointID>\\n      <cac:PostalAddress>\\n        <cbc:StreetName>Fő utca 1.</cbc:StreetName>\\n        <cbc:CityName>Budapest</cbc:CityName>\\n        <cbc:PostalZone>1011</cbc:PostalZone>\\n        <cac:Country>\\n          <cbc:IdentificationCode>HU</cbc:IdentificationCode>\\n        </cac:Country>\\n      </cac:PostalAddress>\\n      <cac:PartyTaxScheme>\\n        <cbc:CompanyID>HU12345678</cbc:CompanyID>\\n        <cac:TaxScheme>\\n          <cbc:ID>VAT</cbc:ID>\\n        </cac:TaxScheme>\\n      </cac:PartyTaxScheme>\\n      <cac:PartyLegalEntity>\\n        <cbc:RegistrationName>Example Kft.</cbc:RegistrationName>\\n        <cbc:CompanyID>01-09-123456</cbc:CompanyID>\\n      </cac:PartyLegalEntity>\\n      <cac:Contact>\\n        <cbc:Name>Anna Kovács</cbc:Name>\\n        <cbc:Telephone>+36 1 234 5678</cbc:Telephone>\\n        <cbc:ElectronicMail>anna@example.hu</cbc:ElectronicMail>\\n      </cac:Contact>\\n    </cac:Party>\\n  </cac:AccountingSupplierParty>\\n  <cac:AccountingCustomerParty>\\n    <cac:Party>\\n      <cbc:EndpointID schemeID=\\\"9930\\\">DE123456789</cbc:EndpointID>\\n      <cac:PostalAddress>\\n        <cbc:StreetName>Hauptstraße 5</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:Party>\\n  </cac:AccountingCustomerParty>\\n  <cac:PaymentMeans>\\n    <cbc:PaymentMeansCode>58</cbc:PaymentMeansCode>\\n    <cbc:PaymentID>INV-2026-0042</cbc:PaymentID>\\n    <cac:PayeeFinancialAccount>\\n      <cbc:ID>HU42117730161111101800000000</cbc:ID>\\n      <cac:FinancialInstitutionBranch>\\n        <cbc:ID>OTPVHUHB</cbc:ID>\\n      </cac:FinancialInstitutionBranch>\\n    </cac:PayeeFinancialAccount>\\n  </cac:PaymentMeans>\\n  <cac:PaymentTerms>\\n    <cbc:Note>Payment within 30 days</cbc:Note>\\n  </cac:PaymentTerms>\\n  <cac:TaxTotal>\\n    <cbc:TaxAmount currencyID=\\\"EUR\\\">0.00</cbc:TaxAmount>\\n    <cac:TaxSubtotal>\\n      <cbc:TaxableAmount currencyID=\\\"EUR\\\">1700.00</cbc:TaxableAmount>\\n      <cbc:TaxAmount currencyID=\\\"EUR\\\">0.00</cbc:TaxAmount>\\n      <cac:TaxCategory>\\n        <cbc:ID>AE</cbc:ID>\\n        <cbc:Percent>0.00</cbc:Percent>\\n        <cbc:TaxExemptionReasonCode>VATEX-EU-AE</cbc:TaxExemptionReasonCode>\\n        <cbc:TaxExemptionReason>Reverse charge</cbc:TaxExemptionReason>\\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\\\">1700.00</cbc:LineExtensionAmount>\\n    <cbc:TaxExclusiveAmount currencyID=\\\"EUR\\\">1700.00</cbc:TaxExclusiveAmount>\\n    <cbc:TaxInclusiveAmount currencyID=\\\"EUR\\\">1700.00</cbc:TaxInclusiveAmount>\\n    <cbc:PayableAmount currencyID=\\\"EUR\\\">1700.00</cbc:PayableAmount>\\n  </cac:LegalMonetaryTotal>\\n  <cac:InvoiceLine>\\n    <cbc:ID>1</cbc:ID>\\n    <cbc:InvoicedQuantity unitCode=\\\"HUR\\\">10</cbc:InvoicedQuantity>\\n    <cbc:LineExtensionAmount currencyID=\\\"EUR\\\">1200.00</cbc:LineExtensionAmount>\\n    <cac:Item>\\n      <cbc:Name>Consulting services</cbc:Name>\\n      <cac:ClassifiedTaxCategory>\\n        <cbc:ID>AE</cbc:ID>\\n        <cbc:Percent>0</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.00</cbc:PriceAmount>\\n    </cac:Price>\\n  </cac:InvoiceLine>\\n  <cac:InvoiceLine>\\n    <cbc:ID>2</cbc:ID>\\n    <cbc:InvoicedQuantity unitCode=\\\"C62\\\">2</cbc:InvoicedQuantity>\\n    <cbc:LineExtensionAmount currencyID=\\\"EUR\\\">500.00</cbc:LineExtensionAmount>\\n    <cac:Item>\\n      <cbc:Name>Software licence</cbc:Name>\\n      <cac:ClassifiedTaxCategory>\\n        <cbc:ID>AE</cbc:ID>\\n        <cbc:Percent>0</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\\\">250.00</cbc:PriceAmount>\\n    </cac:Price>\\n  </cac:InvoiceLine>\\n</Invoice>\\n\",\n  \"warnings\": [],\n  \"credits\": 97\n}"
            }
          ],
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('HTTP 200 — converted', () => pm.response.to.have.status(200));",
                  "const body = pm.response.json();",
                  "pm.test('XML returned', () => pm.expect(body.xml).to.include('peppol.eu'));",
                  "// Keep the XML for later requests / copy-paste: {{lastPeppolXml}}",
                  "pm.collectionVariables.set('lastPeppolXml', body.xml);"
                ]
              }
            }
          ]
        },
        {
          "name": "Convert → Factur-X / ZUGFeRD (CII, EN 16931)",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/convert",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "convert"
              ]
            },
            "description": "France / Germany. Returns the CII XML payload (`factur-x.xml`) of a Factur-X / ZUGFeRD invoice.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"target\": \"facturx-en16931\",\n  \"invoice\": {\n    \"number\": \"INV-2026-0042\",\n    \"issueDate\": \"2026-07-01\",\n    \"dueDate\": \"2026-07-31\",\n    \"currency\": \"EUR\",\n    \"buyerReference\": \"04011000-12345-67\",\n    \"seller\": {\n      \"name\": \"Example Kft.\",\n      \"vatId\": \"HU12345678\",\n      \"legalRegistrationId\": \"01-09-123456\",\n      \"electronicAddress\": {\n        \"schemeId\": \"9910\",\n        \"value\": \"HU12345678\"\n      },\n      \"address\": {\n        \"streetName\": \"Fő utca 1.\",\n        \"city\": \"Budapest\",\n        \"postalZone\": \"1011\",\n        \"countryCode\": \"HU\"\n      },\n      \"contact\": {\n        \"name\": \"Anna Kovács\",\n        \"phone\": \"+36 1 234 5678\",\n        \"email\": \"anna@example.hu\"\n      }\n    },\n    \"buyer\": {\n      \"name\": \"Muster GmbH\",\n      \"vatId\": \"DE123456789\",\n      \"electronicAddress\": {\n        \"schemeId\": \"9930\",\n        \"value\": \"DE123456789\"\n      },\n      \"address\": {\n        \"streetName\": \"Hauptstraße 5\",\n        \"city\": \"Berlin\",\n        \"postalZone\": \"10115\",\n        \"countryCode\": \"DE\"\n      }\n    },\n    \"payment\": {\n      \"meansCode\": \"58\",\n      \"iban\": \"HU42117730161111101800000000\",\n      \"bic\": \"OTPVHUHB\",\n      \"terms\": \"Payment within 30 days\",\n      \"reference\": \"INV-2026-0042\"\n    },\n    \"lines\": [\n      {\n        \"id\": \"1\",\n        \"name\": \"Consulting services\",\n        \"quantity\": \"10\",\n        \"unitCode\": \"HUR\",\n        \"unitPrice\": \"120.00\",\n        \"vat\": {\n          \"categoryCode\": \"AE\",\n          \"rate\": \"0\"\n        }\n      },\n      {\n        \"id\": \"2\",\n        \"name\": \"Software licence\",\n        \"quantity\": \"2\",\n        \"unitPrice\": \"250.00\",\n        \"vat\": {\n          \"categoryCode\": \"AE\",\n          \"rate\": \"0\"\n        }\n      }\n    ],\n    \"vatBreakdown\": [\n      {\n        \"categoryCode\": \"AE\",\n        \"rate\": \"0.00\",\n        \"taxableAmount\": \"1700.00\",\n        \"taxAmount\": \"0.00\",\n        \"exemptionReasonCode\": \"VATEX-EU-AE\",\n        \"exemptionReason\": \"Reverse charge\"\n      }\n    ]\n  }\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": [
            {
              "name": "200 — CII XML",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/v1/convert",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "v1",
                    "convert"
                  ]
                },
                "description": "France / Germany. Returns the CII XML payload (`factur-x.xml`) of a Factur-X / ZUGFeRD invoice.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"target\": \"facturx-en16931\",\n  \"invoice\": {\n    \"number\": \"INV-2026-0042\",\n    \"issueDate\": \"2026-07-01\",\n    \"dueDate\": \"2026-07-31\",\n    \"currency\": \"EUR\",\n    \"buyerReference\": \"04011000-12345-67\",\n    \"seller\": {\n      \"name\": \"Example Kft.\",\n      \"vatId\": \"HU12345678\",\n      \"legalRegistrationId\": \"01-09-123456\",\n      \"electronicAddress\": {\n        \"schemeId\": \"9910\",\n        \"value\": \"HU12345678\"\n      },\n      \"address\": {\n        \"streetName\": \"Fő utca 1.\",\n        \"city\": \"Budapest\",\n        \"postalZone\": \"1011\",\n        \"countryCode\": \"HU\"\n      },\n      \"contact\": {\n        \"name\": \"Anna Kovács\",\n        \"phone\": \"+36 1 234 5678\",\n        \"email\": \"anna@example.hu\"\n      }\n    },\n    \"buyer\": {\n      \"name\": \"Muster GmbH\",\n      \"vatId\": \"DE123456789\",\n      \"electronicAddress\": {\n        \"schemeId\": \"9930\",\n        \"value\": \"DE123456789\"\n      },\n      \"address\": {\n        \"streetName\": \"Hauptstraße 5\",\n        \"city\": \"Berlin\",\n        \"postalZone\": \"10115\",\n        \"countryCode\": \"DE\"\n      }\n    },\n    \"payment\": {\n      \"meansCode\": \"58\",\n      \"iban\": \"HU42117730161111101800000000\",\n      \"bic\": \"OTPVHUHB\",\n      \"terms\": \"Payment within 30 days\",\n      \"reference\": \"INV-2026-0042\"\n    },\n    \"lines\": [\n      {\n        \"id\": \"1\",\n        \"name\": \"Consulting services\",\n        \"quantity\": \"10\",\n        \"unitCode\": \"HUR\",\n        \"unitPrice\": \"120.00\",\n        \"vat\": {\n          \"categoryCode\": \"AE\",\n          \"rate\": \"0\"\n        }\n      },\n      {\n        \"id\": \"2\",\n        \"name\": \"Software licence\",\n        \"quantity\": \"2\",\n        \"unitPrice\": \"250.00\",\n        \"vat\": {\n          \"categoryCode\": \"AE\",\n          \"rate\": \"0\"\n        }\n      }\n    ],\n    \"vatBreakdown\": [\n      {\n        \"categoryCode\": \"AE\",\n        \"rate\": \"0.00\",\n        \"taxableAmount\": \"1700.00\",\n        \"taxAmount\": \"0.00\",\n        \"exemptionReasonCode\": \"VATEX-EU-AE\",\n        \"exemptionReason\": \"Reverse charge\"\n      }\n    ]\n  }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json; charset=utf-8"
                }
              ],
              "cookie": [],
              "body": "{\n  \"target\": \"facturx-en16931\",\n  \"xml\": \"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\\n<rsm:CrossIndustryInvoice xmlns:rsm=\\\"urn:un:unece:uncefact:data:standard:CrossIndustryInvoice:100\\\" xmlns:ram=\\\"urn:un:unece:uncefact:data:standard:ReusableAggregateBusinessInformationEntity:100\\\" xmlns:udt=\\\"urn:un:unece:uncefact:data:standard:UnqualifiedDataType:100\\\" xmlns:qdt=\\\"urn:un:unece:uncefact:data:standard:QualifiedDataType: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</ram:ID>\\n    </ram:GuidelineSpecifiedDocumentContextParameter>\\n  </rsm:ExchangedDocumentContext>\\n  <rsm:ExchangedDocument>\\n    <ram:ID>INV-2026-0042</ram:ID>\\n    <ram:TypeCode>380</ram:TypeCode>\\n    <ram:IssueDateTime>\\n      <udt:DateTimeString format=\\\"102\\\">20260701</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>Consulting services</ram:Name>\\n      </ram:SpecifiedTradeProduct>\\n      <ram:SpecifiedLineTradeAgreement>\\n        <ram:NetPriceProductTradePrice>\\n          <ram:ChargeAmount>120.00</ram:ChargeAmount>\\n        </ram:NetPriceProductTradePrice>\\n      </ram:SpecifiedLineTradeAgreement>\\n      <ram:SpecifiedLineTradeDelivery>\\n        <ram:BilledQuantity unitCode=\\\"HUR\\\">10</ram:BilledQuantity>\\n      </ram:SpecifiedLineTradeDelivery>\\n      <ram:SpecifiedLineTradeSettlement>\\n        <ram:ApplicableTradeTax>\\n          <ram:TypeCode>VAT</ram:TypeCode>\\n          <ram:CategoryCode>AE</ram:CategoryCode>\\n          <ram:RateApplicablePercent>0</ram:RateApplicablePercent>\\n        </ram:ApplicableTradeTax>\\n        <ram:SpecifiedTradeSettlementLineMonetarySummation>\\n          <ram:LineTotalAmount>1200.00</ram:LineTotalAmount>\\n        </ram:SpecifiedTradeSettlementLineMonetarySummation>\\n      </ram:SpecifiedLineTradeSettlement>\\n    </ram:IncludedSupplyChainTradeLineItem>\\n    <ram:IncludedSupplyChainTradeLineItem>\\n      <ram:AssociatedDocumentLineDocument>\\n        <ram:LineID>2</ram:LineID>\\n      </ram:AssociatedDocumentLineDocument>\\n      <ram:SpecifiedTradeProduct>\\n        <ram:Name>Software licence</ram:Name>\\n      </ram:SpecifiedTradeProduct>\\n      <ram:SpecifiedLineTradeAgreement>\\n        <ram:NetPriceProductTradePrice>\\n          <ram:ChargeAmount>250.00</ram:ChargeAmount>\\n        </ram:NetPriceProductTradePrice>\\n      </ram:SpecifiedLineTradeAgreement>\\n      <ram:SpecifiedLineTradeDelivery>\\n        <ram:BilledQuantity unitCode=\\\"C62\\\">2</ram:BilledQuantity>\\n      </ram:SpecifiedLineTradeDelivery>\\n      <ram:SpecifiedLineTradeSettlement>\\n        <ram:ApplicableTradeTax>\\n          <ram:TypeCode>VAT</ram:TypeCode>\\n          <ram:CategoryCode>AE</ram:CategoryCode>\\n          <ram:RateApplicablePercent>0</ram:RateApplicablePercent>\\n        </ram:ApplicableTradeTax>\\n        <ram:SpecifiedTradeSettlementLineMonetarySummation>\\n          <ram:LineTotalAmount>500.00</ram:LineTotalAmount>\\n        </ram:SpecifiedTradeSettlementLineMonetarySummation>\\n      </ram:SpecifiedLineTradeSettlement>\\n    </ram:IncludedSupplyChainTradeLineItem>\\n    <ram:ApplicableHeaderTradeAgreement>\\n      <ram:BuyerReference>04011000-12345-67</ram:BuyerReference>\\n      <ram:SellerTradeParty>\\n        <ram:Name>Example Kft.</ram:Name>\\n        <ram:SpecifiedLegalOrganization>\\n          <ram:ID>01-09-123456</ram:ID>\\n        </ram:SpecifiedLegalOrganization>\\n        <ram:DefinedTradeContact>\\n          <ram:PersonName>Anna Kovács</ram:PersonName>\\n          <ram:TelephoneUniversalCommunication>\\n            <ram:CompleteNumber>+36 1 234 5678</ram:CompleteNumber>\\n          </ram:TelephoneUniversalCommunication>\\n          <ram:EmailURIUniversalCommunication>\\n            <ram:URIID>anna@example.hu</ram:URIID>\\n          </ram:EmailURIUniversalCommunication>\\n        </ram:DefinedTradeContact>\\n        <ram:PostalTradeAddress>\\n          <ram:PostcodeCode>1011</ram:PostcodeCode>\\n          <ram:LineOne>Fő utca 1.</ram:LineOne>\\n          <ram:CityName>Budapest</ram:CityName>\\n          <ram:CountryID>HU</ram:CountryID>\\n        </ram:PostalTradeAddress>\\n        <ram:URIUniversalCommunication>\\n          <ram:URIID schemeID=\\\"9910\\\">HU12345678</ram:URIID>\\n        </ram:URIUniversalCommunication>\\n        <ram:SpecifiedTaxRegistration>\\n          <ram:ID schemeID=\\\"VA\\\">HU12345678</ram:ID>\\n        </ram:SpecifiedTaxRegistration>\\n      </ram:SellerTradeParty>\\n      <ram:BuyerTradeParty>\\n        <ram:Name>Muster GmbH</ram:Name>\\n        <ram:PostalTradeAddress>\\n          <ram:PostcodeCode>10115</ram:PostcodeCode>\\n          <ram:LineOne>Hauptstraße 5</ram:LineOne>\\n          <ram:CityName>Berlin</ram:CityName>\\n          <ram:CountryID>DE</ram:CountryID>\\n        </ram:PostalTradeAddress>\\n        <ram:URIUniversalCommunication>\\n          <ram:URIID schemeID=\\\"9930\\\">DE123456789</ram:URIID>\\n        </ram:URIUniversalCommunication>\\n        <ram:SpecifiedTaxRegistration>\\n          <ram:ID schemeID=\\\"VA\\\">DE123456789</ram:ID>\\n        </ram:SpecifiedTaxRegistration>\\n      </ram:BuyerTradeParty>\\n    </ram:ApplicableHeaderTradeAgreement>\\n    <ram:ApplicableHeaderTradeDelivery/>\\n    <ram:ApplicableHeaderTradeSettlement>\\n      <ram:PaymentReference>INV-2026-0042</ram:PaymentReference>\\n      <ram:InvoiceCurrencyCode>EUR</ram:InvoiceCurrencyCode>\\n      <ram:SpecifiedTradeSettlementPaymentMeans>\\n        <ram:TypeCode>58</ram:TypeCode>\\n        <ram:PayeePartyCreditorFinancialAccount>\\n          <ram:IBANID>HU42117730161111101800000000</ram:IBANID>\\n        </ram:PayeePartyCreditorFinancialAccount>\\n        <ram:PayeeSpecifiedCreditorFinancialInstitution>\\n          <ram:BICID>OTPVHUHB</ram:BICID>\\n        </ram:PayeeSpecifiedCreditorFinancialInstitution>\\n      </ram:SpecifiedTradeSettlementPaymentMeans>\\n      <ram:ApplicableTradeTax>\\n        <ram:CalculatedAmount>0.00</ram:CalculatedAmount>\\n        <ram:TypeCode>VAT</ram:TypeCode>\\n        <ram:ExemptionReason>Reverse charge</ram:ExemptionReason>\\n        <ram:BasisAmount>1700.00</ram:BasisAmount>\\n        <ram:CategoryCode>AE</ram:CategoryCode>\\n        <ram:ExemptionReasonCode>VATEX-EU-AE</ram:ExemptionReasonCode>\\n        <ram:RateApplicablePercent>0.00</ram:RateApplicablePercent>\\n      </ram:ApplicableTradeTax>\\n      <ram:SpecifiedTradePaymentTerms>\\n        <ram:Description>Payment within 30 days</ram:Description>\\n        <ram:DueDateDateTime>\\n          <udt:DateTimeString format=\\\"102\\\">20260731</udt:DateTimeString>\\n        </ram:DueDateDateTime>\\n      </ram:SpecifiedTradePaymentTerms>\\n      <ram:SpecifiedTradeSettlementHeaderMonetarySummation>\\n        <ram:LineTotalAmount>1700.00</ram:LineTotalAmount>\\n        <ram:TaxBasisTotalAmount>1700.00</ram:TaxBasisTotalAmount>\\n        <ram:TaxTotalAmount currencyID=\\\"EUR\\\">0.00</ram:TaxTotalAmount>\\n        <ram:GrandTotalAmount>1700.00</ram:GrandTotalAmount>\\n        <ram:DuePayableAmount>1700.00</ram:DuePayableAmount>\\n      </ram:SpecifiedTradeSettlementHeaderMonetarySummation>\\n    </ram:ApplicableHeaderTradeSettlement>\\n  </rsm:SupplyChainTradeTransaction>\\n</rsm:CrossIndustryInvoice>\\n\",\n  \"warnings\": [],\n  \"credits\": 92\n}"
            }
          ],
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('HTTP 200 — converted', () => pm.response.to.have.status(200));",
                  "const body = pm.response.json();",
                  "pm.test('XML returned', () => pm.expect(body.xml).to.include('CrossIndustryInvoice'));",
                  "// Keep the XML for later requests / copy-paste: {{lastFacturxXml}}",
                  "pm.collectionVariables.set('lastFacturxXml', body.xml);"
                ]
              }
            }
          ]
        },
        {
          "name": "Convert — invalid invoice (422, not charged)",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/convert",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "convert"
              ]
            },
            "description": "Demonstrates the fail-fast principle: this invoice has no `buyerReference`, which XRechnung requires (BR-DE-15). You get the findings and **no credits are charged**.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"target\": \"xrechnung-ubl\",\n  \"invoice\": {\n    \"number\": \"INV-2026-0042\",\n    \"issueDate\": \"2026-07-01\",\n    \"dueDate\": \"2026-07-31\",\n    \"currency\": \"EUR\",\n    \"seller\": {\n      \"name\": \"Example Kft.\",\n      \"vatId\": \"HU12345678\",\n      \"legalRegistrationId\": \"01-09-123456\",\n      \"electronicAddress\": {\n        \"schemeId\": \"9910\",\n        \"value\": \"HU12345678\"\n      },\n      \"address\": {\n        \"streetName\": \"Fő utca 1.\",\n        \"city\": \"Budapest\",\n        \"postalZone\": \"1011\",\n        \"countryCode\": \"HU\"\n      },\n      \"contact\": {\n        \"name\": \"Anna Kovács\",\n        \"phone\": \"+36 1 234 5678\",\n        \"email\": \"anna@example.hu\"\n      }\n    },\n    \"buyer\": {\n      \"name\": \"Muster GmbH\",\n      \"vatId\": \"DE123456789\",\n      \"electronicAddress\": {\n        \"schemeId\": \"9930\",\n        \"value\": \"DE123456789\"\n      },\n      \"address\": {\n        \"streetName\": \"Hauptstraße 5\",\n        \"city\": \"Berlin\",\n        \"postalZone\": \"10115\",\n        \"countryCode\": \"DE\"\n      }\n    },\n    \"payment\": {\n      \"meansCode\": \"58\",\n      \"iban\": \"HU42117730161111101800000000\",\n      \"bic\": \"OTPVHUHB\",\n      \"terms\": \"Payment within 30 days\",\n      \"reference\": \"INV-2026-0042\"\n    },\n    \"lines\": [\n      {\n        \"id\": \"1\",\n        \"name\": \"Consulting services\",\n        \"quantity\": \"10\",\n        \"unitCode\": \"HUR\",\n        \"unitPrice\": \"120.00\",\n        \"vat\": {\n          \"categoryCode\": \"AE\",\n          \"rate\": \"0\"\n        }\n      },\n      {\n        \"id\": \"2\",\n        \"name\": \"Software licence\",\n        \"quantity\": \"2\",\n        \"unitPrice\": \"250.00\",\n        \"vat\": {\n          \"categoryCode\": \"AE\",\n          \"rate\": \"0\"\n        }\n      }\n    ],\n    \"vatBreakdown\": [\n      {\n        \"categoryCode\": \"AE\",\n        \"rate\": \"0.00\",\n        \"taxableAmount\": \"1700.00\",\n        \"taxAmount\": \"0.00\",\n        \"exemptionReasonCode\": \"VATEX-EU-AE\",\n        \"exemptionReason\": \"Reverse charge\"\n      }\n    ]\n  }\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": [
            {
              "name": "422 — findings",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/v1/convert",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "v1",
                    "convert"
                  ]
                },
                "description": "Demonstrates the fail-fast principle: this invoice has no `buyerReference`, which XRechnung requires (BR-DE-15). You get the findings and **no credits are charged**.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"target\": \"xrechnung-ubl\",\n  \"invoice\": {\n    \"number\": \"INV-2026-0042\",\n    \"issueDate\": \"2026-07-01\",\n    \"dueDate\": \"2026-07-31\",\n    \"currency\": \"EUR\",\n    \"seller\": {\n      \"name\": \"Example Kft.\",\n      \"vatId\": \"HU12345678\",\n      \"legalRegistrationId\": \"01-09-123456\",\n      \"electronicAddress\": {\n        \"schemeId\": \"9910\",\n        \"value\": \"HU12345678\"\n      },\n      \"address\": {\n        \"streetName\": \"Fő utca 1.\",\n        \"city\": \"Budapest\",\n        \"postalZone\": \"1011\",\n        \"countryCode\": \"HU\"\n      },\n      \"contact\": {\n        \"name\": \"Anna Kovács\",\n        \"phone\": \"+36 1 234 5678\",\n        \"email\": \"anna@example.hu\"\n      }\n    },\n    \"buyer\": {\n      \"name\": \"Muster GmbH\",\n      \"vatId\": \"DE123456789\",\n      \"electronicAddress\": {\n        \"schemeId\": \"9930\",\n        \"value\": \"DE123456789\"\n      },\n      \"address\": {\n        \"streetName\": \"Hauptstraße 5\",\n        \"city\": \"Berlin\",\n        \"postalZone\": \"10115\",\n        \"countryCode\": \"DE\"\n      }\n    },\n    \"payment\": {\n      \"meansCode\": \"58\",\n      \"iban\": \"HU42117730161111101800000000\",\n      \"bic\": \"OTPVHUHB\",\n      \"terms\": \"Payment within 30 days\",\n      \"reference\": \"INV-2026-0042\"\n    },\n    \"lines\": [\n      {\n        \"id\": \"1\",\n        \"name\": \"Consulting services\",\n        \"quantity\": \"10\",\n        \"unitCode\": \"HUR\",\n        \"unitPrice\": \"120.00\",\n        \"vat\": {\n          \"categoryCode\": \"AE\",\n          \"rate\": \"0\"\n        }\n      },\n      {\n        \"id\": \"2\",\n        \"name\": \"Software licence\",\n        \"quantity\": \"2\",\n        \"unitPrice\": \"250.00\",\n        \"vat\": {\n          \"categoryCode\": \"AE\",\n          \"rate\": \"0\"\n        }\n      }\n    ],\n    \"vatBreakdown\": [\n      {\n        \"categoryCode\": \"AE\",\n        \"rate\": \"0.00\",\n        \"taxableAmount\": \"1700.00\",\n        \"taxAmount\": \"0.00\",\n        \"exemptionReasonCode\": \"VATEX-EU-AE\",\n        \"exemptionReason\": \"Reverse charge\"\n      }\n    ]\n  }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Unprocessable Entity",
              "code": 422,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json; charset=utf-8"
                }
              ],
              "cookie": [],
              "body": "{\n  \"error\": \"Invoice fails validation for the target format; fix the errors below (validation was not charged).\",\n  \"valid\": false,\n  \"profile\": \"xrechnung\",\n  \"findings\": [\n    {\n      \"rule\": \"BR-DE-15\",\n      \"severity\": \"error\",\n      \"message\": \"BuyerReference (BT-10) is mandatory in XRechnung — for B2G this is the Leitweg-ID.\",\n      \"path\": \"buyerReference\"\n    }\n  ],\n  \"counts\": {\n    \"errors\": 1,\n    \"warnings\": 0\n  }\n}"
            }
          ],
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('HTTP 422 — refused, not charged', () => pm.response.to.have.status(422));",
                  "pm.test('explains what to fix', () => pm.expect(pm.response.json().findings.map(f => f.rule)).to.include('BR-DE-15'));"
                ]
              }
            }
          ]
        }
      ]
    },
    {
      "name": "Extract (10 credits)",
      "description": "Turn a PDF invoice (digital or scanned) into canonical EN 16931 JSON with AI. Charged only on success. The PDF is never stored or logged.",
      "item": [
        {
          "name": "Extract invoice from PDF",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/pdf"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/extract",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "extract"
              ]
            },
            "description": "Send the PDF as the **raw request body** (Body → binary → select file) with `Content-Type: application/pdf`, up to 10 MB. Review `uncertainFields` before trusting the result; `invoice` pipes straight into Validate / Convert. Not a PDF → 400; unreadable or not an invoice → 422 (not charged).",
            "body": {
              "mode": "file",
              "file": {
                "src": "zugferd-minimal.pdf"
              }
            }
          },
          "response": [
            {
              "name": "200 — extracted invoice",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/pdf"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/v1/extract",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "v1",
                    "extract"
                  ]
                },
                "description": "Send the PDF as the **raw request body** (Body → binary → select file) with `Content-Type: application/pdf`, up to 10 MB. Review `uncertainFields` before trusting the result; `invoice` pipes straight into Validate / Convert. Not a PDF → 400; unreadable or not an invoice → 422 (not charged).",
                "body": {
                  "mode": "file",
                  "file": {
                    "src": "zugferd-minimal.pdf"
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json; charset=utf-8"
                }
              ],
              "cookie": [],
              "body": "{\n  \"invoice\": {\n    \"number\": \"INV-2026-0042\",\n    \"issueDate\": \"2026-07-01\",\n    \"dueDate\": \"2026-07-31\",\n    \"currency\": \"EUR\",\n    \"buyerReference\": \"04011000-12345-67\",\n    \"seller\": {\n      \"name\": \"Example Kft.\",\n      \"vatId\": \"HU12345678\",\n      \"legalRegistrationId\": \"01-09-123456\",\n      \"electronicAddress\": {\n        \"schemeId\": \"9910\",\n        \"value\": \"HU12345678\"\n      },\n      \"address\": {\n        \"streetName\": \"Fő utca 1.\",\n        \"city\": \"Budapest\",\n        \"postalZone\": \"1011\",\n        \"countryCode\": \"HU\"\n      },\n      \"contact\": {\n        \"name\": \"Anna Kovács\",\n        \"phone\": \"+36 1 234 5678\",\n        \"email\": \"anna@example.hu\"\n      }\n    },\n    \"buyer\": {\n      \"name\": \"Muster GmbH\",\n      \"vatId\": \"DE123456789\",\n      \"electronicAddress\": {\n        \"schemeId\": \"9930\",\n        \"value\": \"DE123456789\"\n      },\n      \"address\": {\n        \"streetName\": \"Hauptstraße 5\",\n        \"city\": \"Berlin\",\n        \"postalZone\": \"10115\",\n        \"countryCode\": \"DE\"\n      }\n    },\n    \"payment\": {\n      \"meansCode\": \"58\",\n      \"iban\": \"HU42117730161111101800000000\",\n      \"bic\": \"OTPVHUHB\",\n      \"terms\": \"Payment within 30 days\",\n      \"reference\": \"INV-2026-0042\"\n    },\n    \"lines\": [\n      {\n        \"id\": \"1\",\n        \"name\": \"Consulting services\",\n        \"quantity\": \"10\",\n        \"unitCode\": \"HUR\",\n        \"unitPrice\": \"120.00\",\n        \"vat\": {\n          \"categoryCode\": \"AE\",\n          \"rate\": \"0\"\n        }\n      },\n      {\n        \"id\": \"2\",\n        \"name\": \"Software licence\",\n        \"quantity\": \"2\",\n        \"unitPrice\": \"250.00\",\n        \"vat\": {\n          \"categoryCode\": \"AE\",\n          \"rate\": \"0\"\n        }\n      }\n    ],\n    \"vatBreakdown\": [\n      {\n        \"categoryCode\": \"AE\",\n        \"rate\": \"0.00\",\n        \"taxableAmount\": \"1700.00\",\n        \"taxAmount\": \"0.00\",\n        \"exemptionReasonCode\": \"VATEX-EU-AE\",\n        \"exemptionReason\": \"Reverse charge\"\n      }\n    ]\n  },\n  \"uncertainFields\": [\n    {\n      \"field\": \"buyer.vatId\",\n      \"reason\": \"Partially obscured on the scan.\"\n    }\n  ],\n  \"model\": \"claude-sonnet-4-6\",\n  \"credits\": 90\n}"
            },
            {
              "name": "422 — not an invoice (not charged)",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/pdf"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/v1/extract",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "v1",
                    "extract"
                  ]
                },
                "description": "Send the PDF as the **raw request body** (Body → binary → select file) with `Content-Type: application/pdf`, up to 10 MB. Review `uncertainFields` before trusting the result; `invoice` pipes straight into Validate / Convert. Not a PDF → 400; unreadable or not an invoice → 422 (not charged).",
                "body": {
                  "mode": "file",
                  "file": {
                    "src": "zugferd-minimal.pdf"
                  }
                }
              },
              "status": "Unprocessable Entity",
              "code": 422,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json; charset=utf-8"
                }
              ],
              "cookie": [],
              "body": "{\n  \"error\": \"This document does not appear to be an invoice.\"\n}"
            }
          ],
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('HTTP 200 — extracted', () => pm.response.to.have.status(200));",
                  "pm.test('has invoice', () => pm.expect(pm.response.json().invoice).to.be.an('object'));",
                  "pm.collectionVariables.set('lastExtractedInvoice', JSON.stringify(pm.response.json().invoice));"
                ]
              }
            }
          ]
        }
      ]
    },
    {
      "name": "Free tools (no API key)",
      "description": "Rate-limited free endpoints (about 10 requests/minute per IP). No API key needed.",
      "item": [
        {
          "name": "Free validator",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/public/validate",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "public",
                "validate"
              ]
            },
            "description": "Same rules as /v1/validate, free and rate-limited. Also returns the parsed `invoice`.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"profile\": \"peppol-bis-3\",\n  \"invoice\": {\n    \"number\": \"INV-2026-0042\",\n    \"issueDate\": \"2026-07-01\",\n    \"dueDate\": \"2026-07-31\",\n    \"currency\": \"EUR\",\n    \"buyerReference\": \"04011000-12345-67\",\n    \"seller\": {\n      \"name\": \"Example Kft.\",\n      \"vatId\": \"HU12345678\",\n      \"legalRegistrationId\": \"01-09-123456\",\n      \"electronicAddress\": {\n        \"schemeId\": \"9910\",\n        \"value\": \"HU12345678\"\n      },\n      \"address\": {\n        \"streetName\": \"Fő utca 1.\",\n        \"city\": \"Budapest\",\n        \"postalZone\": \"1011\",\n        \"countryCode\": \"HU\"\n      },\n      \"contact\": {\n        \"name\": \"Anna Kovács\",\n        \"phone\": \"+36 1 234 5678\",\n        \"email\": \"anna@example.hu\"\n      }\n    },\n    \"buyer\": {\n      \"name\": \"Muster GmbH\",\n      \"vatId\": \"DE123456789\",\n      \"electronicAddress\": {\n        \"schemeId\": \"9930\",\n        \"value\": \"DE123456789\"\n      },\n      \"address\": {\n        \"streetName\": \"Hauptstraße 5\",\n        \"city\": \"Berlin\",\n        \"postalZone\": \"10115\",\n        \"countryCode\": \"DE\"\n      }\n    },\n    \"payment\": {\n      \"meansCode\": \"58\",\n      \"iban\": \"HU42117730161111101800000000\",\n      \"bic\": \"OTPVHUHB\",\n      \"terms\": \"Payment within 30 days\",\n      \"reference\": \"INV-2026-0042\"\n    },\n    \"lines\": [\n      {\n        \"id\": \"1\",\n        \"name\": \"Consulting services\",\n        \"quantity\": \"10\",\n        \"unitCode\": \"HUR\",\n        \"unitPrice\": \"120.00\",\n        \"vat\": {\n          \"categoryCode\": \"AE\",\n          \"rate\": \"0\"\n        }\n      },\n      {\n        \"id\": \"2\",\n        \"name\": \"Software licence\",\n        \"quantity\": \"2\",\n        \"unitPrice\": \"250.00\",\n        \"vat\": {\n          \"categoryCode\": \"AE\",\n          \"rate\": \"0\"\n        }\n      }\n    ],\n    \"vatBreakdown\": [\n      {\n        \"categoryCode\": \"AE\",\n        \"rate\": \"0.00\",\n        \"taxableAmount\": \"1700.00\",\n        \"taxAmount\": \"0.00\",\n        \"exemptionReasonCode\": \"VATEX-EU-AE\",\n        \"exemptionReason\": \"Reverse charge\"\n      }\n    ]\n  }\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "auth": {
              "type": "noauth"
            }
          },
          "response": [
            {
              "name": "200 — valid",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/public/validate",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "public",
                    "validate"
                  ]
                },
                "description": "Same rules as /v1/validate, free and rate-limited. Also returns the parsed `invoice`.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"profile\": \"peppol-bis-3\",\n  \"invoice\": {\n    \"number\": \"INV-2026-0042\",\n    \"issueDate\": \"2026-07-01\",\n    \"dueDate\": \"2026-07-31\",\n    \"currency\": \"EUR\",\n    \"buyerReference\": \"04011000-12345-67\",\n    \"seller\": {\n      \"name\": \"Example Kft.\",\n      \"vatId\": \"HU12345678\",\n      \"legalRegistrationId\": \"01-09-123456\",\n      \"electronicAddress\": {\n        \"schemeId\": \"9910\",\n        \"value\": \"HU12345678\"\n      },\n      \"address\": {\n        \"streetName\": \"Fő utca 1.\",\n        \"city\": \"Budapest\",\n        \"postalZone\": \"1011\",\n        \"countryCode\": \"HU\"\n      },\n      \"contact\": {\n        \"name\": \"Anna Kovács\",\n        \"phone\": \"+36 1 234 5678\",\n        \"email\": \"anna@example.hu\"\n      }\n    },\n    \"buyer\": {\n      \"name\": \"Muster GmbH\",\n      \"vatId\": \"DE123456789\",\n      \"electronicAddress\": {\n        \"schemeId\": \"9930\",\n        \"value\": \"DE123456789\"\n      },\n      \"address\": {\n        \"streetName\": \"Hauptstraße 5\",\n        \"city\": \"Berlin\",\n        \"postalZone\": \"10115\",\n        \"countryCode\": \"DE\"\n      }\n    },\n    \"payment\": {\n      \"meansCode\": \"58\",\n      \"iban\": \"HU42117730161111101800000000\",\n      \"bic\": \"OTPVHUHB\",\n      \"terms\": \"Payment within 30 days\",\n      \"reference\": \"INV-2026-0042\"\n    },\n    \"lines\": [\n      {\n        \"id\": \"1\",\n        \"name\": \"Consulting services\",\n        \"quantity\": \"10\",\n        \"unitCode\": \"HUR\",\n        \"unitPrice\": \"120.00\",\n        \"vat\": {\n          \"categoryCode\": \"AE\",\n          \"rate\": \"0\"\n        }\n      },\n      {\n        \"id\": \"2\",\n        \"name\": \"Software licence\",\n        \"quantity\": \"2\",\n        \"unitPrice\": \"250.00\",\n        \"vat\": {\n          \"categoryCode\": \"AE\",\n          \"rate\": \"0\"\n        }\n      }\n    ],\n    \"vatBreakdown\": [\n      {\n        \"categoryCode\": \"AE\",\n        \"rate\": \"0.00\",\n        \"taxableAmount\": \"1700.00\",\n        \"taxAmount\": \"0.00\",\n        \"exemptionReasonCode\": \"VATEX-EU-AE\",\n        \"exemptionReason\": \"Reverse charge\"\n      }\n    ]\n  }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "auth": {
                  "type": "noauth"
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json; charset=utf-8"
                }
              ],
              "cookie": [],
              "body": "{\n  \"valid\": true,\n  \"profile\": \"peppol-bis-3\",\n  \"findings\": [],\n  \"counts\": {\n    \"errors\": 0,\n    \"warnings\": 0\n  },\n  \"invoice\": {\n    \"number\": \"INV-2026-0042\",\n    \"issueDate\": \"2026-07-01\",\n    \"dueDate\": \"2026-07-31\",\n    \"typeCode\": \"380\",\n    \"currency\": \"EUR\",\n    \"buyerReference\": \"04011000-12345-67\",\n    \"seller\": {\n      \"name\": \"Example Kft.\",\n      \"vatId\": \"HU12345678\",\n      \"legalRegistrationId\": \"01-09-123456\",\n      \"electronicAddress\": {\n        \"schemeId\": \"9910\",\n        \"value\": \"HU12345678\"\n      },\n      \"address\": {\n        \"streetName\": \"Fő utca 1.\",\n        \"city\": \"Budapest\",\n        \"postalZone\": \"1011\",\n        \"countryCode\": \"HU\"\n      },\n      \"contact\": {\n        \"name\": \"Anna Kovács\",\n        \"phone\": \"+36 1 234 5678\",\n        \"email\": \"anna@example.hu\"\n      }\n    },\n    \"buyer\": {\n      \"name\": \"Muster GmbH\",\n      \"vatId\": \"DE123456789\",\n      \"electronicAddress\": {\n        \"schemeId\": \"9930\",\n        \"value\": \"DE123456789\"\n      },\n      \"address\": {\n        \"streetName\": \"Hauptstraße 5\",\n        \"city\": \"Berlin\",\n        \"postalZone\": \"10115\",\n        \"countryCode\": \"DE\"\n      }\n    },\n    \"payment\": {\n      \"meansCode\": \"58\",\n      \"iban\": \"HU42117730161111101800000000\",\n      \"bic\": \"OTPVHUHB\",\n      \"reference\": \"INV-2026-0042\",\n      \"terms\": \"Payment within 30 days\"\n    },\n    \"lines\": [\n      {\n        \"id\": \"1\",\n        \"name\": \"Consulting services\",\n        \"quantity\": \"10\",\n        \"unitCode\": \"HUR\",\n        \"unitPrice\": \"120.00\",\n        \"vat\": {\n          \"categoryCode\": \"AE\",\n          \"rate\": \"0\"\n        }\n      },\n      {\n        \"id\": \"2\",\n        \"name\": \"Software licence\",\n        \"quantity\": \"2\",\n        \"unitCode\": \"C62\",\n        \"unitPrice\": \"250.00\",\n        \"vat\": {\n          \"categoryCode\": \"AE\",\n          \"rate\": \"0\"\n        }\n      }\n    ],\n    \"vatBreakdown\": [\n      {\n        \"categoryCode\": \"AE\",\n        \"rate\": \"0.00\",\n        \"taxableAmount\": \"1700.00\",\n        \"taxAmount\": \"0.00\",\n        \"exemptionReason\": \"Reverse charge\",\n        \"exemptionReasonCode\": \"VATEX-EU-AE\"\n      }\n    ]\n  }\n}"
            }
          ],
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('HTTP 200 — validated', () => pm.response.to.have.status(200));",
                  "pm.test('has valid flag', () => pm.expect(pm.response.json().valid).to.be.a('boolean'));"
                ]
              }
            }
          ]
        },
        {
          "name": "Read ZUGFeRD / Factur-X PDF (embedded XML)",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/pdf"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/public/zugferd?profile=en16931",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "public",
                "zugferd"
              ],
              "query": [
                {
                  "key": "profile",
                  "value": "en16931",
                  "description": "en16931 (default) · peppol-bis-3 · xrechnung"
                }
              ]
            },
            "description": "Extracts the XML embedded in a hybrid ZUGFeRD / Factur-X PDF (exact, no AI), parses and validates it. Body: raw PDF. Plain PDF without embedded XML → 422 (use Extract instead). Optional `profile` query parameter.",
            "body": {
              "mode": "file",
              "file": {
                "src": "zugferd-minimal.pdf"
              }
            },
            "auth": {
              "type": "noauth"
            }
          },
          "response": [
            {
              "name": "200 — embedded invoice",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/pdf"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/public/zugferd?profile=en16931",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "public",
                    "zugferd"
                  ],
                  "query": [
                    {
                      "key": "profile",
                      "value": "en16931",
                      "description": "en16931 (default) · peppol-bis-3 · xrechnung"
                    }
                  ]
                },
                "description": "Extracts the XML embedded in a hybrid ZUGFeRD / Factur-X PDF (exact, no AI), parses and validates it. Body: raw PDF. Plain PDF without embedded XML → 422 (use Extract instead). Optional `profile` query parameter.",
                "body": {
                  "mode": "file",
                  "file": {
                    "src": "zugferd-minimal.pdf"
                  }
                },
                "auth": {
                  "type": "noauth"
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json; charset=utf-8"
                }
              ],
              "cookie": [],
              "body": "{\n  \"source\": \"zugferd-embedded\",\n  \"xml\": \"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\\n<rsm:CrossIndustryInvoice xmlns:rsm=\\\"urn:un:unece:uncefact:data:standard:CrossIndustryInvoice:100\\\" xmlns:ram=\\\"urn:un:unece:uncefact:data:standard:ReusableAggregateBusinessInformationEntity:100\\\" xmlns:udt=\\\"urn:un:unece:uncefact:data:standard:UnqualifiedDataType:100\\\" xmlns:qdt=\\\"urn:un:unece:uncefact:data:standard:QualifiedDataType: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</ram:ID>\\n    </ram:GuidelineSpecifiedDocumentContextParameter>\\n  </rsm:ExchangedDocumentContext>\\n  <rsm:ExchangedDocument>\\n    <ram:ID>INV-2026-0042</ram:ID>\\n    <ram:TypeCode>380</ram:TypeCode>\\n    <ram:IssueDateTime>\\n      <ram:DateTimeString format=\\\"102\\\">20260701</ram: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>Consulting services</ram:Name>\\n      </ram:SpecifiedTradeProduct>\\n      <ram:SpecifiedLineTradeAgreement>\\n        <ram:NetPriceProductTradePrice>\\n          <ram:ChargeAmount>120.00</ram:ChargeAmount>\\n        </ram:NetPriceProductTradePrice>\\n      </ram:SpecifiedLineTradeAgreement>\\n      <ram:SpecifiedLineTradeDelivery>\\n        <ram:BilledQuantity unitCode=\\\"HUR\\\">10</ram:BilledQuantity>\\n      </ram:SpecifiedLineTradeDelivery>\\n      <ram:SpecifiedLineTradeSettlement>\\n        <ram:ApplicableTradeTax>\\n          <ram:TypeCode>VAT</ram:TypeCode>\\n          <ram:CategoryCode>AE</ram:CategoryCode>\\n          <ram:RateApplicablePercent>0</ram:RateApplicablePercent>\\n        </ram:ApplicableTradeTax>\\n        <ram:SpecifiedTradeSettlementLineMonetarySummation>\\n          <ram:LineTotalAmount>1200.00</ram:LineTotalAmount>\\n        </ram:SpecifiedTradeSettlementLineMonetarySummation>\\n      </ram:SpecifiedLineTradeSettlement>\\n    </ram:IncludedSupplyChainTradeLineItem>\\n    <ram:IncludedSupplyChainTradeLineItem>\\n      <ram:AssociatedDocumentLineDocument>\\n        <ram:LineID>2</ram:LineID>\\n      </ram:AssociatedDocumentLineDocument>\\n      <ram:SpecifiedTradeProduct>\\n        <ram:Name>Software licence</ram:Name>\\n      </ram:SpecifiedTradeProduct>\\n      <ram:SpecifiedLineTradeAgreement>\\n        <ram:NetPriceProductTradePrice>\\n          <ram:ChargeAmount>250.00</ram:ChargeAmount>\\n        </ram:NetPriceProductTradePrice>\\n      </ram:SpecifiedLineTradeAgreement>\\n      <ram:SpecifiedLineTradeDelivery>\\n        <ram:BilledQuantity unitCode=\\\"C62\\\">2</ram:BilledQuantity>\\n      </ram:SpecifiedLineTradeDelivery>\\n      <ram:SpecifiedLineTradeSettlement>\\n        <ram:ApplicableTradeTax>\\n          <ram:TypeCode>VAT</ram:TypeCode>\\n          <ram:CategoryCode>AE</ram:CategoryCode>\\n          <ram:RateApplicablePercent>0</ram:RateApplicablePercent>\\n        </ram:ApplicableTradeTax>\\n        <ram:SpecifiedTradeSettlementLineMonetarySummation>\\n          <ram:LineTotalAmount>500.00</ram:LineTotalAmount>\\n        </ram:SpecifiedTradeSettlementLineMonetarySummation>\\n      </ram:SpecifiedLineTradeSettlement>\\n    </ram:IncludedSupplyChainTradeLineItem>\\n    <ram:ApplicableHeaderTradeAgreement>\\n      <ram:BuyerReference>04011000-12345-67</ram:BuyerReference>\\n      <ram:SellerTradeParty>\\n        <ram:Name>Example Kft.</ram:Name>\\n        <ram:SpecifiedLegalOrganization>\\n          <ram:ID>01-09-123456</ram:ID>\\n        </ram:SpecifiedLegalOrganization>\\n        <ram:DefinedTradeContact>\\n          <ram:PersonName>Anna Kovács</ram:PersonName>\\n          <ram:TelephoneUniversalCommunication>\\n            <ram:CompleteNumber>+36 1 234 5678</ram:CompleteNumber>\\n          </ram:TelephoneUniversalCommunication>\\n          <ram:EmailURIUniversalCommunication>\\n            <ram:URIID>anna@example.hu</ram:URIID>\\n          </ram:EmailURIUniversalCommunication>\\n        </ram:DefinedTradeContact>\\n        <ram:PostalTradeAddress>\\n          <ram:PostcodeCode>1011</ram:PostcodeCode>\\n          <ram:LineOne>Fő utca 1.</ram:LineOne>\\n          <ram:CityName>Budapest</ram:CityName>\\n          <ram:CountryID>HU</ram:CountryID>\\n        </ram:PostalTradeAddress>\\n        <ram:URIUniversalCommunication>\\n          <ram:URIID schemeID=\\\"9910\\\">HU12345678</ram:URIID>\\n        </ram:URIUniversalCommunication>\\n        <ram:SpecifiedTaxRegistration>\\n          <ram:ID schemeID=\\\"VA\\\">HU12345678</ram:ID>\\n        </ram:SpecifiedTaxRegistration>\\n      </ram:SellerTradeParty>\\n      <ram:BuyerTradeParty>\\n        <ram:Name>Muster GmbH</ram:Name>\\n        <ram:PostalTradeAddress>\\n          <ram:PostcodeCode>10115</ram:PostcodeCode>\\n          <ram:LineOne>Hauptstraße 5</ram:LineOne>\\n          <ram:CityName>Berlin</ram:CityName>\\n          <ram:CountryID>DE</ram:CountryID>\\n        </ram:PostalTradeAddress>\\n        <ram:URIUniversalCommunication>\\n          <ram:URIID schemeID=\\\"9930\\\">DE123456789</ram:URIID>\\n        </ram:URIUniversalCommunication>\\n        <ram:SpecifiedTaxRegistration>\\n          <ram:ID schemeID=\\\"VA\\\">DE123456789</ram:ID>\\n        </ram:SpecifiedTaxRegistration>\\n      </ram:BuyerTradeParty>\\n    </ram:ApplicableHeaderTradeAgreement>\\n    <ram:ApplicableHeaderTradeDelivery/>\\n    <ram:ApplicableHeaderTradeSettlement>\\n      <ram:PaymentReference>INV-2026-0042</ram:PaymentReference>\\n      <ram:InvoiceCurrencyCode>EUR</ram:InvoiceCurrencyCode>\\n      <ram:SpecifiedTradeSettlementPaymentMeans>\\n        <ram:TypeCode>58</ram:TypeCode>\\n        <ram:PayeePartyCreditorFinancialAccount>\\n          <ram:IBANID>HU42117730161111101800000000</ram:IBANID>\\n        </ram:PayeePartyCreditorFinancialAccount>\\n        <ram:PayeeSpecifiedCreditorFinancialInstitution>\\n          <ram:BICID>OTPVHUHB</ram:BICID>\\n        </ram:PayeeSpecifiedCreditorFinancialInstitution>\\n      </ram:SpecifiedTradeSettlementPaymentMeans>\\n      <ram:ApplicableTradeTax>\\n        <ram:CalculatedAmount>0.00</ram:CalculatedAmount>\\n        <ram:TypeCode>VAT</ram:TypeCode>\\n        <ram:ExemptionReason>Reverse charge</ram:ExemptionReason>\\n        <ram:BasisAmount>1700.00</ram:BasisAmount>\\n        <ram:CategoryCode>AE</ram:CategoryCode>\\n        <ram:ExemptionReasonCode>VATEX-EU-AE</ram:ExemptionReasonCode>\\n        <ram:RateApplicablePercent>0.00</ram:RateApplicablePercent>\\n      </ram:ApplicableTradeTax>\\n      <ram:SpecifiedTradePaymentTerms>\\n        <ram:Description>Payment within 30 days</ram:Description>\\n        <ram:DueDateDateTime>\\n          <ram:DateTimeString format=\\\"102\\\">20260731</ram:DateTimeString>\\n        </ram:DueDateDateTime>\\n      </ram:SpecifiedTradePaymentTerms>\\n      <ram:SpecifiedTradeSettlementHeaderMonetarySummation>\\n        <ram:LineTotalAmount>1700.00</ram:LineTotalAmount>\\n        <ram:TaxBasisTotalAmount>1700.00</ram:TaxBasisTotalAmount>\\n        <ram:TaxTotalAmount currencyID=\\\"EUR\\\">0.00</ram:TaxTotalAmount>\\n        <ram:GrandTotalAmount>1700.00</ram:GrandTotalAmount>\\n        <ram:DuePayableAmount>1700.00</ram:DuePayableAmount>\\n      </ram:SpecifiedTradeSettlementHeaderMonetarySummation>\\n    </ram:ApplicableHeaderTradeSettlement>\\n  </rsm:SupplyChainTradeTransaction>\\n</rsm:CrossIndustryInvoice>\\n\",\n  \"invoice\": {\n    \"number\": \"INV-2026-0042\",\n    \"issueDate\": \"2026-07-01\",\n    \"dueDate\": \"2026-07-31\",\n    \"typeCode\": \"380\",\n    \"currency\": \"EUR\",\n    \"buyerReference\": \"04011000-12345-67\",\n    \"seller\": {\n      \"name\": \"Example Kft.\",\n      \"vatId\": \"HU12345678\",\n      \"legalRegistrationId\": \"01-09-123456\",\n      \"electronicAddress\": {\n        \"schemeId\": \"9910\",\n        \"value\": \"HU12345678\"\n      },\n      \"address\": {\n        \"streetName\": \"Fő utca 1.\",\n        \"city\": \"Budapest\",\n        \"postalZone\": \"1011\",\n        \"countryCode\": \"HU\"\n      },\n      \"contact\": {\n        \"name\": \"Anna Kovács\",\n        \"phone\": \"+36 1 234 5678\",\n        \"email\": \"anna@example.hu\"\n      }\n    },\n    \"buyer\": {\n      \"name\": \"Muster GmbH\",\n      \"vatId\": \"DE123456789\",\n      \"electronicAddress\": {\n        \"schemeId\": \"9930\",\n        \"value\": \"DE123456789\"\n      },\n      \"address\": {\n        \"streetName\": \"Hauptstraße 5\",\n        \"city\": \"Berlin\",\n        \"postalZone\": \"10115\",\n        \"countryCode\": \"DE\"\n      }\n    },\n    \"payment\": {\n      \"meansCode\": \"58\",\n      \"iban\": \"HU42117730161111101800000000\",\n      \"bic\": \"OTPVHUHB\",\n      \"reference\": \"INV-2026-0042\",\n      \"terms\": \"Payment within 30 days\"\n    },\n    \"lines\": [\n      {\n        \"id\": \"1\",\n        \"name\": \"Consulting services\",\n        \"quantity\": \"10\",\n        \"unitCode\": \"HUR\",\n        \"unitPrice\": \"120.00\",\n        \"netAmount\": \"1200.00\",\n        \"vat\": {\n          \"categoryCode\": \"AE\",\n          \"rate\": \"0\"\n        }\n      },\n      {\n        \"id\": \"2\",\n        \"name\": \"Software licence\",\n        \"quantity\": \"2\",\n        \"unitCode\": \"C62\",\n        \"unitPrice\": \"250.00\",\n        \"netAmount\": \"500.00\",\n        \"vat\": {\n          \"categoryCode\": \"AE\",\n          \"rate\": \"0\"\n        }\n      }\n    ],\n    \"totals\": {\n      \"sumOfLineNetAmounts\": \"1700.00\",\n      \"taxExclusiveAmount\": \"1700.00\",\n      \"taxInclusiveAmount\": \"1700.00\",\n      \"vatTotalAmount\": \"0.00\",\n      \"payableAmount\": \"1700.00\"\n    },\n    \"vatBreakdown\": [\n      {\n        \"categoryCode\": \"AE\",\n        \"rate\": \"0.00\",\n        \"taxableAmount\": \"1700.00\",\n        \"taxAmount\": \"0.00\",\n        \"exemptionReason\": \"Reverse charge\",\n        \"exemptionReasonCode\": \"VATEX-EU-AE\"\n      }\n    ]\n  },\n  \"valid\": true,\n  \"profile\": \"en16931\",\n  \"findings\": [],\n  \"counts\": {\n    \"errors\": 0,\n    \"warnings\": 0\n  }\n}"
            },
            {
              "name": "422 — plain PDF",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/pdf"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/public/zugferd?profile=en16931",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "public",
                    "zugferd"
                  ],
                  "query": [
                    {
                      "key": "profile",
                      "value": "en16931",
                      "description": "en16931 (default) · peppol-bis-3 · xrechnung"
                    }
                  ]
                },
                "description": "Extracts the XML embedded in a hybrid ZUGFeRD / Factur-X PDF (exact, no AI), parses and validates it. Body: raw PDF. Plain PDF without embedded XML → 422 (use Extract instead). Optional `profile` query parameter.",
                "body": {
                  "mode": "file",
                  "file": {
                    "src": "zugferd-minimal.pdf"
                  }
                },
                "auth": {
                  "type": "noauth"
                }
              },
              "status": "Unprocessable Entity",
              "code": 422,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json; charset=utf-8"
                }
              ],
              "cookie": [],
              "body": "{\n  \"error\": \"No embedded e-invoice (ZUGFeRD / Factur-X) found — this looks like a plain PDF. Use POST /v1/extract for AI-based extraction.\"\n}"
            }
          ],
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('HTTP 200 — embedded XML found', () => pm.response.to.have.status(200));",
                  "pm.test('source is zugferd-embedded', () => pm.expect(pm.response.json().source).to.eql('zugferd-embedded'));"
                ]
              }
            }
          ]
        },
        {
          "name": "Check EU VAT number (VIES)",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/public/vat-check",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "public",
                "vat-check"
              ]
            },
            "description": "Checks a VAT ID against the EU VIES service. Non-EU prefixes return `checkable: false`. VIES outages → 503.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"vatId\": \"DE123456789\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "auth": {
              "type": "noauth"
            }
          },
          "response": [
            {
              "name": "200 — valid VAT ID",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/public/vat-check",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "public",
                    "vat-check"
                  ]
                },
                "description": "Checks a VAT ID against the EU VIES service. Non-EU prefixes return `checkable: false`. VIES outages → 503.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"vatId\": \"DE123456789\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "auth": {
                  "type": "noauth"
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json; charset=utf-8"
                }
              ],
              "cookie": [],
              "body": "{\n  \"vatId\": \"DE811569869\",\n  \"countryCode\": \"DE\",\n  \"vatNumber\": \"811569869\",\n  \"checkable\": true,\n  \"valid\": true,\n  \"name\": \"---\",\n  \"address\": \"---\"\n}"
            },
            {
              "name": "200 — not registered",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/public/vat-check",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "public",
                    "vat-check"
                  ]
                },
                "description": "Checks a VAT ID against the EU VIES service. Non-EU prefixes return `checkable: false`. VIES outages → 503.",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"vatId\": \"DE123456789\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "auth": {
                  "type": "noauth"
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json; charset=utf-8"
                }
              ],
              "cookie": [],
              "body": "{\n  \"vatId\": \"DE123456789\",\n  \"countryCode\": \"DE\",\n  \"vatNumber\": \"123456789\",\n  \"checkable\": true,\n  \"valid\": false\n}"
            }
          ],
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test('HTTP 200 (or 503 if VIES is down)', () => pm.expect(pm.response.code).to.be.oneOf([200, 503]));"
                ]
              }
            }
          ]
        }
      ]
    }
  ]
}