{
  "info": {
    "name": "DEU-Collection",
    "description": "11 invoice test scenarios (positive) generated for eezi e-invoicing integration testing.",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "item": [
    {
      "name": "01 - Standard Single-Line Invoice",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          },
          {
            "key": "Authorization",
            "value": "{{apiToken}}"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n    \"ref\": \"Test-INV-001\",\n    \"issued\": \"2026-01-15\",\n    \"dueDate\": \"2026-02-14\",\n    \"purchaseOrderRef\": \"PO-0001\",\n    \"salesOrderRef\": \"SO-0001\",\n    \"recipient\": {\n        \"name\": \"Example Buyer GmbH\",\n        \"taxId\": \"DE123456789\",\n        \"address\": {\n            \"line1\": \"Example Street 1\",\n            \"line2\": \"Building A\",\n            \"city\": \"Berlin\",\n            \"state\": \"Berlin\",\n            \"country\": \"DEU\",\n            \"postalCode\": \"10115\"\n        },\n        \"contact\": {\n            \"email\": \"buyer@example.com\"\n        },\n        \"peppolId\": {\n            \"endpointId\": \"iso6523-actorid-upis::9930:de123456789\"\n        }\n    },\n    \"shipToParty\": {\n        \"name\": \"Example Warehouse GmbH\",\n        \"address\": {\n            \"line1\": \"Warehouse Road 1\",\n            \"line2\": \"Gate 2\",\n            \"city\": \"Hamburg\",\n            \"postalCode\": \"20095\",\n            \"country\": \"DEU\"\n        }\n    },\n    \"total\": {\n        \"amount\": 119,\n        \"currency\": \"EUR\"\n    },\n    \"lines\": [\n        {\n            \"description\": \"Example service\",\n            \"buyerAssignedId\": \"ITEM-0001\",\n            \"quantity\": 1,\n            \"unit\": \"C62\",\n            \"price\": {\n                \"amount\": 100\n            },\n            \"vat\": {\n                \"type\": \"percent\",\n                \"amount\": 19,\n                \"code\": \"S\"\n            }\n        }\n    ],\n    \"paymentMeans\": [\n        {\n            \"code\": \"58\",\n            \"ref\": \"INV-2026-0001\",\n            \"account\": {\n                \"iban\": \"DE89370400440532013000\",\n                \"accountName\": \"Example Seller GmbH\",\n                \"bic\": \"COBADEFFXXX\"\n            }\n        }\n    ],\n    \"customInfo\": {\n        \"deu\": {\n            \"paymentCode\": \"58\",\n            \"deliveryDate\": \"2026-01-15\",\n            \"buyerRef\": \"04011000-1234512345-06\",\n            \"projectRef\": \"PRJ-0001\",\n            \"contractRef\": \"CTR-0001\",\n            \"serviceStartDate\": \"2026-01-01\",\n            \"serviceEndDate\": \"2026-01-31\"\n        }\n    },\n    \"notes\": \"Standard single-line invoice at 19% VAT.\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "{{baseUrl}}/v1/invoice",
          "host": ["{{baseUrl}}"],
          "path": ["v1", "invoice"]
        }
      },
      "response": [],
      "event": [
        {
          "listen": "test",
          "script": {
            "type": "text/javascript",
            "exec": [
              "pm.test(\"Accepted (2xx)\", function () {",
              "    pm.expect(pm.response.code).to.be.within(200,299);",
              "});"
            ]
          }
        }
      ]
    },
    {
      "name": "02 - Multi-Line Invoice (3 Items)",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          },
          {
            "key": "Authorization",
            "value": "{{apiToken}}"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n    \"ref\": \"Test-INV-002\",\n    \"issued\": \"2026-01-15\",\n    \"dueDate\": \"2026-02-14\",\n    \"purchaseOrderRef\": \"PO-0001\",\n    \"salesOrderRef\": \"SO-0001\",\n    \"recipient\": {\n        \"name\": \"Example Buyer GmbH\",\n        \"taxId\": \"DE123456789\",\n        \"address\": {\n            \"line1\": \"Example Street 1\",\n            \"line2\": \"Building A\",\n            \"city\": \"Berlin\",\n            \"state\": \"Berlin\",\n            \"country\": \"DEU\",\n            \"postalCode\": \"10115\"\n        },\n        \"contact\": {\n            \"email\": \"buyer@example.com\"\n        },\n        \"peppolId\": {\n            \"endpointId\": \"iso6523-actorid-upis::9930:de123456789\"\n        }\n    },\n    \"shipToParty\": {\n        \"name\": \"Example Warehouse GmbH\",\n        \"address\": {\n            \"line1\": \"Warehouse Road 1\",\n            \"line2\": \"Gate 2\",\n            \"city\": \"Hamburg\",\n            \"postalCode\": \"20095\",\n            \"country\": \"DEU\"\n        }\n    },\n    \"total\": {\n        \"amount\": 595,\n        \"currency\": \"EUR\"\n    },\n    \"lines\": [\n        {\n            \"description\": \"Example service - Monthly Service\",\n            \"buyerAssignedId\": \"ITEM-0001\",\n            \"quantity\": 1,\n            \"unit\": \"C62\",\n            \"price\": {\n                \"amount\": 100\n            },\n            \"vat\": {\n                \"type\": \"percent\",\n                \"amount\": 19,\n                \"code\": \"S\"\n            }\n        },\n        {\n            \"description\": \"IT Support Services\",\n            \"buyerAssignedId\": \"ITEM-0001\",\n            \"quantity\": 3,\n            \"unit\": \"C62\",\n            \"price\": {\n                \"amount\": 100\n            },\n            \"vat\": {\n                \"type\": \"percent\",\n                \"amount\": 19,\n                \"code\": \"S\"\n            }\n        },\n        {\n            \"description\": \"Software Licence Fee\",\n            \"buyerAssignedId\": \"ITEM-0001\",\n            \"quantity\": 1,\n            \"unit\": \"C62\",\n            \"price\": {\n                \"amount\": 100\n            },\n            \"vat\": {\n                \"type\": \"percent\",\n                \"amount\": 19,\n                \"code\": \"S\"\n            }\n        }\n    ],\n    \"paymentMeans\": [\n        {\n            \"code\": \"58\",\n            \"ref\": \"INV-2026-0001\",\n            \"account\": {\n                \"iban\": \"DE89370400440532013000\",\n                \"accountName\": \"Example Seller GmbH\",\n                \"bic\": \"COBADEFFXXX\"\n            }\n        }\n    ],\n    \"customInfo\": {\n        \"deu\": {\n            \"paymentCode\": \"58\",\n            \"deliveryDate\": \"2026-01-15\",\n            \"buyerRef\": \"04011000-1234512345-06\",\n            \"projectRef\": \"PRJ-0001\",\n            \"contractRef\": \"CTR-0001\",\n            \"serviceStartDate\": \"2026-01-01\",\n            \"serviceEndDate\": \"2026-01-31\"\n        }\n    },\n    \"notes\": \"Multi-line invoice with three standard-rated line items.\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "{{baseUrl}}/v1/invoice",
          "host": ["{{baseUrl}}"],
          "path": ["v1", "invoice"]
        }
      },
      "response": [],
      "event": [
        {
          "listen": "test",
          "script": {
            "type": "text/javascript",
            "exec": [
              "pm.test(\"Accepted (2xx)\", function () {",
              "    pm.expect(pm.response.code).to.be.within(200,299);",
              "});"
            ]
          }
        }
      ]
    },
    {
      "name": "03 - Zero-Rate VAT Invoice (Code Z)",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          },
          {
            "key": "Authorization",
            "value": "{{apiToken}}"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n    \"ref\": \"Test-INV-003\",\n    \"issued\": \"2026-01-15\",\n    \"dueDate\": \"2026-02-14\",\n    \"purchaseOrderRef\": \"PO-0001\",\n    \"salesOrderRef\": \"SO-0001\",\n    \"recipient\": {\n        \"name\": \"Example Buyer GmbH\",\n        \"taxId\": \"DE123456789\",\n        \"address\": {\n            \"line1\": \"Example Street 1\",\n            \"line2\": \"Building A\",\n            \"city\": \"Berlin\",\n            \"state\": \"Berlin\",\n            \"country\": \"DEU\",\n            \"postalCode\": \"10115\"\n        },\n        \"contact\": {\n            \"email\": \"buyer@example.com\"\n        },\n        \"peppolId\": {\n            \"endpointId\": \"iso6523-actorid-upis::9930:de123456789\"\n        }\n    },\n    \"shipToParty\": {\n        \"name\": \"Example Warehouse GmbH\",\n        \"address\": {\n            \"line1\": \"Warehouse Road 1\",\n            \"line2\": \"Gate 2\",\n            \"city\": \"Hamburg\",\n            \"postalCode\": \"20095\",\n            \"country\": \"DEU\"\n        }\n    },\n    \"total\": {\n        \"amount\": 100,\n        \"currency\": \"EUR\"\n    },\n    \"lines\": [\n        {\n            \"description\": \"Example service\",\n            \"buyerAssignedId\": \"ITEM-0001\",\n            \"quantity\": 1,\n            \"unit\": \"C62\",\n            \"price\": {\n                \"amount\": 100\n            },\n            \"vat\": {\n                \"type\": \"percent\",\n                \"amount\": 0,\n                \"code\": \"Z\",\n                \"exemptReason\": \"Zero rated goods\"\n            }\n        }\n    ],\n    \"paymentMeans\": [\n        {\n            \"code\": \"58\",\n            \"ref\": \"INV-2026-0001\",\n            \"account\": {\n                \"iban\": \"DE89370400440532013000\",\n                \"accountName\": \"Example Seller GmbH\",\n                \"bic\": \"COBADEFFXXX\"\n            }\n        }\n    ],\n    \"customInfo\": {\n        \"deu\": {\n            \"paymentCode\": \"58\",\n            \"deliveryDate\": \"2026-01-15\",\n            \"buyerRef\": \"04011000-1234512345-06\",\n            \"projectRef\": \"PRJ-0001\",\n            \"contractRef\": \"CTR-0001\",\n            \"serviceStartDate\": \"2026-01-01\",\n            \"serviceEndDate\": \"2026-01-31\"\n        }\n    },\n    \"notes\": \"Zero-rated VAT invoice (code Z).\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "{{baseUrl}}/v1/invoice",
          "host": ["{{baseUrl}}"],
          "path": ["v1", "invoice"]
        }
      },
      "response": [],
      "event": [
        {
          "listen": "test",
          "script": {
            "type": "text/javascript",
            "exec": [
              "pm.test(\"Accepted (2xx)\", function () {",
              "    pm.expect(pm.response.code).to.be.within(200,299);",
              "});"
            ]
          }
        }
      ]
    },
    {
      "name": "04 - Fractional Quantity Invoice",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          },
          {
            "key": "Authorization",
            "value": "{{apiToken}}"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n    \"ref\": \"Test-INV-004\",\n    \"issued\": \"2026-01-15\",\n    \"dueDate\": \"2026-02-14\",\n    \"purchaseOrderRef\": \"PO-0001\",\n    \"salesOrderRef\": \"SO-0001\",\n    \"recipient\": {\n        \"name\": \"Example Buyer GmbH\",\n        \"taxId\": \"DE123456789\",\n        \"address\": {\n            \"line1\": \"Example Street 1\",\n            \"line2\": \"Building A\",\n            \"city\": \"Berlin\",\n            \"state\": \"Berlin\",\n            \"country\": \"DEU\",\n            \"postalCode\": \"10115\"\n        },\n        \"contact\": {\n            \"email\": \"buyer@example.com\"\n        },\n        \"peppolId\": {\n            \"endpointId\": \"iso6523-actorid-upis::9930:de123456789\"\n        }\n    },\n    \"shipToParty\": {\n        \"name\": \"Example Warehouse GmbH\",\n        \"address\": {\n            \"line1\": \"Warehouse Road 1\",\n            \"line2\": \"Gate 2\",\n            \"city\": \"Hamburg\",\n            \"postalCode\": \"20095\",\n            \"country\": \"DEU\"\n        }\n    },\n    \"total\": {\n        \"amount\": 297.5,\n        \"currency\": \"EUR\"\n    },\n    \"lines\": [\n        {\n            \"description\": \"Example service\",\n            \"buyerAssignedId\": \"ITEM-0001\",\n            \"quantity\": 2.5,\n            \"unit\": \"C62\",\n            \"price\": {\n                \"amount\": 100\n            },\n            \"vat\": {\n                \"type\": \"percent\",\n                \"amount\": 19,\n                \"code\": \"S\"\n            }\n        }\n    ],\n    \"paymentMeans\": [\n        {\n            \"code\": \"58\",\n            \"ref\": \"INV-2026-0001\",\n            \"account\": {\n                \"iban\": \"DE89370400440532013000\",\n                \"accountName\": \"Example Seller GmbH\",\n                \"bic\": \"COBADEFFXXX\"\n            }\n        }\n    ],\n    \"customInfo\": {\n        \"deu\": {\n            \"paymentCode\": \"58\",\n            \"deliveryDate\": \"2026-01-15\",\n            \"buyerRef\": \"04011000-1234512345-06\",\n            \"projectRef\": \"PRJ-0001\",\n            \"contractRef\": \"CTR-0001\",\n            \"serviceStartDate\": \"2026-01-01\",\n            \"serviceEndDate\": \"2026-01-31\"\n        }\n    },\n    \"notes\": \"Fractional quantity (2.5) at standard rate. Tests decimal quantity handling.\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "{{baseUrl}}/v1/invoice",
          "host": ["{{baseUrl}}"],
          "path": ["v1", "invoice"]
        }
      },
      "response": [],
      "event": [
        {
          "listen": "test",
          "script": {
            "type": "text/javascript",
            "exec": [
              "pm.test(\"Accepted (2xx)\", function () {",
              "    pm.expect(pm.response.code).to.be.within(200,299);",
              "});"
            ]
          }
        }
      ]
    },
    {
      "name": "05 - Exempt Invoice (Code E)",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          },
          {
            "key": "Authorization",
            "value": "{{apiToken}}"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n    \"ref\": \"Test-INV-005\",\n    \"issued\": \"2026-01-15\",\n    \"dueDate\": \"2026-02-14\",\n    \"purchaseOrderRef\": \"PO-0001\",\n    \"salesOrderRef\": \"SO-0001\",\n    \"recipient\": {\n        \"name\": \"Example Buyer GmbH\",\n        \"taxId\": \"DE123456789\",\n        \"address\": {\n            \"line1\": \"Example Street 1\",\n            \"line2\": \"Building A\",\n            \"city\": \"Berlin\",\n            \"state\": \"Berlin\",\n            \"country\": \"DEU\",\n            \"postalCode\": \"10115\"\n        },\n        \"contact\": {\n            \"email\": \"buyer@example.com\"\n        },\n        \"peppolId\": {\n            \"endpointId\": \"iso6523-actorid-upis::9930:de123456789\"\n        }\n    },\n    \"shipToParty\": {\n        \"name\": \"Example Warehouse GmbH\",\n        \"address\": {\n            \"line1\": \"Warehouse Road 1\",\n            \"line2\": \"Gate 2\",\n            \"city\": \"Hamburg\",\n            \"postalCode\": \"20095\",\n            \"country\": \"DEU\"\n        }\n    },\n    \"total\": {\n        \"amount\": 100,\n        \"currency\": \"EUR\"\n    },\n    \"lines\": [\n        {\n            \"description\": \"Example service\",\n            \"buyerAssignedId\": \"ITEM-0001\",\n            \"quantity\": 1,\n            \"unit\": \"C62\",\n            \"price\": {\n                \"amount\": 100\n            },\n            \"vat\": {\n                \"type\": \"percent\",\n                \"amount\": 0,\n                \"code\": \"E\",\n                \"exemptReason\": \"Exempt pursuant to Article 132 of Council Directive 2006/112/EC\"\n            }\n        }\n    ],\n    \"paymentMeans\": [\n        {\n            \"code\": \"58\",\n            \"ref\": \"INV-2026-0001\",\n            \"account\": {\n                \"iban\": \"DE89370400440532013000\",\n                \"accountName\": \"Example Seller GmbH\",\n                \"bic\": \"COBADEFFXXX\"\n            }\n        }\n    ],\n    \"customInfo\": {\n        \"deu\": {\n            \"paymentCode\": \"58\",\n            \"deliveryDate\": \"2026-01-15\",\n            \"buyerRef\": \"04011000-1234512345-06\",\n            \"projectRef\": \"PRJ-0001\",\n            \"contractRef\": \"CTR-0001\",\n            \"serviceStartDate\": \"2026-01-01\",\n            \"serviceEndDate\": \"2026-01-31\"\n        }\n    },\n    \"notes\": \"VAT exempt supply (code E).\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "{{baseUrl}}/v1/invoice",
          "host": ["{{baseUrl}}"],
          "path": ["v1", "invoice"]
        }
      },
      "response": [],
      "event": [
        {
          "listen": "test",
          "script": {
            "type": "text/javascript",
            "exec": [
              "pm.test(\"Accepted (2xx)\", function () {",
              "    pm.expect(pm.response.code).to.be.within(200,299);",
              "});"
            ]
          }
        }
      ]
    },
    {
      "name": "06 - Reduced VAT Rate 7% Invoice",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          },
          {
            "key": "Authorization",
            "value": "{{apiToken}}"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n    \"ref\": \"Test-INV-006\",\n    \"issued\": \"2026-01-15\",\n    \"dueDate\": \"2026-02-14\",\n    \"purchaseOrderRef\": \"PO-0001\",\n    \"salesOrderRef\": \"SO-0001\",\n    \"recipient\": {\n        \"name\": \"Example Buyer GmbH\",\n        \"taxId\": \"DE123456789\",\n        \"address\": {\n            \"line1\": \"Example Street 1\",\n            \"line2\": \"Building A\",\n            \"city\": \"Berlin\",\n            \"state\": \"Berlin\",\n            \"country\": \"DEU\",\n            \"postalCode\": \"10115\"\n        },\n        \"contact\": {\n            \"email\": \"buyer@example.com\"\n        },\n        \"peppolId\": {\n            \"endpointId\": \"iso6523-actorid-upis::9930:de123456789\"\n        }\n    },\n    \"shipToParty\": {\n        \"name\": \"Example Warehouse GmbH\",\n        \"address\": {\n            \"line1\": \"Warehouse Road 1\",\n            \"line2\": \"Gate 2\",\n            \"city\": \"Hamburg\",\n            \"postalCode\": \"20095\",\n            \"country\": \"DEU\"\n        }\n    },\n    \"total\": {\n        \"amount\": 107,\n        \"currency\": \"EUR\"\n    },\n    \"lines\": [\n        {\n            \"description\": \"Example service\",\n            \"buyerAssignedId\": \"ITEM-0001\",\n            \"quantity\": 1,\n            \"unit\": \"C62\",\n            \"price\": {\n                \"amount\": 100\n            },\n            \"vat\": {\n                \"type\": \"percent\",\n                \"amount\": 7,\n                \"code\": \"AA\"\n            }\n        }\n    ],\n    \"paymentMeans\": [\n        {\n            \"code\": \"58\",\n            \"ref\": \"INV-2026-0001\",\n            \"account\": {\n                \"iban\": \"DE89370400440532013000\",\n                \"accountName\": \"Example Seller GmbH\",\n                \"bic\": \"COBADEFFXXX\"\n            }\n        }\n    ],\n    \"customInfo\": {\n        \"deu\": {\n            \"paymentCode\": \"58\",\n            \"deliveryDate\": \"2026-01-15\",\n            \"buyerRef\": \"04011000-1234512345-06\",\n            \"projectRef\": \"PRJ-0001\",\n            \"contractRef\": \"CTR-0001\",\n            \"serviceStartDate\": \"2026-01-01\",\n            \"serviceEndDate\": \"2026-01-31\"\n        }\n    },\n    \"notes\": \"Reduced 7% VAT rate applied.\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "{{baseUrl}}/v1/invoice",
          "host": ["{{baseUrl}}"],
          "path": ["v1", "invoice"]
        }
      },
      "response": [],
      "event": [
        {
          "listen": "test",
          "script": {
            "type": "text/javascript",
            "exec": [
              "pm.test(\"Accepted (2xx)\", function () {",
              "    pm.expect(pm.response.code).to.be.within(200,299);",
              "});"
            ]
          }
        }
      ]
    }
  ],
  "variable": [
    {
      "key": "baseUrl",
      "value": "https://api.uat.eezi.io"
    },
    {
      "key": "apiToken",
      "value": ""
    }
  ]
}
