{
  "info": {
    "name": "normbill API",
    "description": "Generated from the public OpenAPI contract at https://normbill.com/openapi.json. Replace {{apiKey}} with your sk_live_… or sk_test_… key.",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "variable": [
    { "key": "baseUrl", "value": "https://api.normbill.com" },
    { "key": "apiKey", "value": "sk_live_..." }
  ],
  "item": [
    {
      "name": "Generate invoice",
      "request": {
        "method": "POST",
        "header": [
          { "key": "Authorization", "value": "Bearer {{apiKey}}" },
          { "key": "Content-Type", "value": "application/json" }
        ],
        "url": "{{baseUrl}}/v1/invoices/generate",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"format\": \"xrechnung-3.0\",\n  \"invoice\": {\n    \"number\": \"RE-2026-001\",\n    \"issue_date\": \"2026-07-01\",\n    \"currency\": \"EUR\",\n    \"seller\": {\n      \"name\": \"Muster GmbH\",\n      \"vat_id\": \"DE123456789\",\n      \"address\": {\n        \"line1\": \"Beispielstr. 1\",\n        \"city\": \"Berlin\",\n        \"postal_code\": \"10115\",\n        \"country\": \"DE\"\n      }\n    },\n    \"buyer\": {\n      \"name\": \"Stadt Musterstadt\",\n      \"buyer_reference\": \"04011000-12345-67\",\n      \"address\": {\n        \"line1\": \"Rathausplatz 1\",\n        \"city\": \"Musterstadt\",\n        \"postal_code\": \"12345\",\n        \"country\": \"DE\"\n      }\n    },\n    \"lines\": [\n      {\n        \"id\": \"1\",\n        \"name\": \"Beratung\",\n        \"quantity\": 1,\n        \"unit\": \"C62\",\n        \"unit_price\": \"100.00\",\n        \"vat\": { \"category\": \"S\", \"rate\": \"19\" }\n      }\n    ],\n    \"payment\": { \"iban\": \"DE89370400440532013000\", \"bic\": \"COBADEFFXXX\" }\n  }\n}"
        }
      }
    },
    {
      "name": "Validate invoice XML",
      "request": {
        "method": "POST",
        "header": [
          { "key": "Authorization", "value": "Bearer {{apiKey}}" },
          { "key": "Content-Type", "value": "application/json" }
        ],
        "url": "{{baseUrl}}/v1/invoices/validate",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"format\": \"xrechnung-3.0\",\n  \"xml\": \"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>…\"\n}"
        }
      }
    },
    {
      "name": "Parse invoice XML",
      "request": {
        "method": "POST",
        "header": [
          { "key": "Authorization", "value": "Bearer {{apiKey}}" },
          { "key": "Content-Type", "value": "application/json" }
        ],
        "url": "{{baseUrl}}/v1/invoices/parse",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"xml\": \"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>…\"\n}"
        }
      }
    }
  ]
}
