{
  "info": {
    "name": "eezi - Norway (EHF / Peppol) - Invoices",
    "description": "Sample invoice requests for a Norwegian eezi organisation (7 requests).\n\n1. Open the collection's Variables tab and set apiToken to your organisation API key.\n2. Send a request and check the response.\n\nEvery ref must be unique: change the ref (for example Test-INV-001 to Test-INV-101) before sending a request again. See https://docs.eezi.io/docs/data-models-invoice-nor",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "item": [
    {
      "name": "01 - Standard Invoice (25% VAT, KID)",
      "event": [
        {
          "listen": "test",
          "script": {
            "type": "text/javascript",
            "exec": [
              "pm.test(\"Accepted (2xx)\", function () {",
              "    pm.expect(pm.response.code).to.be.within(200, 299);",
              "});"
            ]
          }
        }
      ],
      "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-11-18\",\n  \"dueDate\": \"2026-12-18\",\n  \"purchaseOrderRef\": \"PO-0001\",\n  \"customInfo\": {\n    \"nor\": {\n      \"deliveryDate\": \"2026-11-13\"\n    }\n  },\n  \"recipient\": {\n    \"name\": \"Example Buyer AS\",\n    \"taxId\": \"NO123456785MVA\",\n    \"address\": {\n      \"line1\": \"Example Street 1\",\n      \"city\": \"Oslo\",\n      \"postalCode\": \"0150\",\n      \"country\": \"NOR\"\n    },\n    \"peppolId\": {\n      \"endpointId\": \"iso6523-actorid-upis::0192:123456785\"\n    }\n  },\n  \"paymentMeans\": [\n    {\n      \"code\": \"30\",\n      \"ref\": \"1001001005\",\n      \"account\": {\n        \"number\": \"12345678903\"\n      }\n    }\n  ],\n  \"lines\": [\n    {\n      \"description\": \"Office chair\",\n      \"quantity\": 2,\n      \"unit\": \"H87\",\n      \"price\": {\n        \"amount\": 1500.0\n      },\n      \"vat\": {\n        \"type\": \"percent\",\n        \"amount\": 25,\n        \"code\": \"S\"\n      }\n    }\n  ],\n  \"total\": {\n    \"amount\": 3750.0,\n    \"currency\": \"NOK\"\n  }\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "{{baseUrl}}/v1/invoice",
          "host": ["{{baseUrl}}"],
          "path": ["v1", "invoice"]
        },
        "description": "Single-line invoice at 25% VAT, paid by bank transfer with a KID."
      }
    },
    {
      "name": "02 - Multi-Rate Invoice (25% + 15%)",
      "event": [
        {
          "listen": "test",
          "script": {
            "type": "text/javascript",
            "exec": [
              "pm.test(\"Accepted (2xx)\", function () {",
              "    pm.expect(pm.response.code).to.be.within(200, 299);",
              "});"
            ]
          }
        }
      ],
      "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-11-18\",\n  \"dueDate\": \"2026-12-18\",\n  \"purchaseOrderRef\": \"PO-0001\",\n  \"customInfo\": {\n    \"nor\": {\n      \"deliveryDate\": \"2026-11-13\"\n    }\n  },\n  \"recipient\": {\n    \"name\": \"Example Buyer AS\",\n    \"taxId\": \"NO123456785MVA\",\n    \"address\": {\n      \"line1\": \"Example Street 1\",\n      \"city\": \"Oslo\",\n      \"postalCode\": \"0150\",\n      \"country\": \"NOR\"\n    },\n    \"peppolId\": {\n      \"endpointId\": \"iso6523-actorid-upis::0192:123456785\"\n    }\n  },\n  \"paymentMeans\": [\n    {\n      \"code\": \"30\",\n      \"ref\": \"1001001005\",\n      \"account\": {\n        \"number\": \"12345678903\"\n      }\n    }\n  ],\n  \"lines\": [\n    {\n      \"description\": \"Office chair\",\n      \"quantity\": 2,\n      \"unit\": \"H87\",\n      \"price\": {\n        \"amount\": 1500.0\n      },\n      \"vat\": {\n        \"type\": \"percent\",\n        \"amount\": 25,\n        \"code\": \"S\"\n      }\n    },\n    {\n      \"description\": \"Coffee\",\n      \"quantity\": 10,\n      \"unit\": \"KGM\",\n      \"price\": {\n        \"amount\": 120.0\n      },\n      \"vat\": {\n        \"type\": \"percent\",\n        \"amount\": 15,\n        \"code\": \"S\"\n      }\n    }\n  ],\n  \"total\": {\n    \"amount\": 5130.0,\n    \"currency\": \"NOK\"\n  }\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "{{baseUrl}}/v1/invoice",
          "host": ["{{baseUrl}}"],
          "path": ["v1", "invoice"]
        },
        "description": "Two lines at different Norwegian VAT rates. eezi adds one VAT breakdown per rate."
      }
    },
    {
      "name": "03 - Fractional Quantity Invoice",
      "event": [
        {
          "listen": "test",
          "script": {
            "type": "text/javascript",
            "exec": [
              "pm.test(\"Accepted (2xx)\", function () {",
              "    pm.expect(pm.response.code).to.be.within(200, 299);",
              "});"
            ]
          }
        }
      ],
      "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-11-18\",\n  \"dueDate\": \"2026-12-18\",\n  \"purchaseOrderRef\": \"PO-0001\",\n  \"customInfo\": {\n    \"nor\": {\n      \"deliveryDate\": \"2026-11-13\"\n    }\n  },\n  \"recipient\": {\n    \"name\": \"Example Buyer AS\",\n    \"taxId\": \"NO123456785MVA\",\n    \"address\": {\n      \"line1\": \"Example Street 1\",\n      \"city\": \"Oslo\",\n      \"postalCode\": \"0150\",\n      \"country\": \"NOR\"\n    },\n    \"peppolId\": {\n      \"endpointId\": \"iso6523-actorid-upis::0192:123456785\"\n    }\n  },\n  \"paymentMeans\": [\n    {\n      \"code\": \"30\",\n      \"ref\": \"1001001005\",\n      \"account\": {\n        \"number\": \"12345678903\"\n      }\n    }\n  ],\n  \"lines\": [\n    {\n      \"description\": \"Consulting\",\n      \"quantity\": 2.5,\n      \"unit\": \"HUR\",\n      \"price\": {\n        \"amount\": 1200.0\n      },\n      \"vat\": {\n        \"type\": \"percent\",\n        \"amount\": 25,\n        \"code\": \"S\"\n      }\n    }\n  ],\n  \"total\": {\n    \"amount\": 3750.0,\n    \"currency\": \"NOK\"\n  }\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "{{baseUrl}}/v1/invoice",
          "host": ["{{baseUrl}}"],
          "path": ["v1", "invoice"]
        },
        "description": "Service billed in hours with a decimal quantity."
      }
    },
    {
      "name": "04 - Zero-Rated Invoice (Code Z)",
      "event": [
        {
          "listen": "test",
          "script": {
            "type": "text/javascript",
            "exec": [
              "pm.test(\"Accepted (2xx)\", function () {",
              "    pm.expect(pm.response.code).to.be.within(200, 299);",
              "});"
            ]
          }
        }
      ],
      "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-11-18\",\n  \"dueDate\": \"2026-12-18\",\n  \"purchaseOrderRef\": \"PO-0001\",\n  \"customInfo\": {\n    \"nor\": {\n      \"deliveryDate\": \"2026-11-13\"\n    }\n  },\n  \"recipient\": {\n    \"name\": \"Example Buyer AS\",\n    \"taxId\": \"NO123456785MVA\",\n    \"address\": {\n      \"line1\": \"Example Street 1\",\n      \"city\": \"Oslo\",\n      \"postalCode\": \"0150\",\n      \"country\": \"NOR\"\n    },\n    \"peppolId\": {\n      \"endpointId\": \"iso6523-actorid-upis::0192:123456785\"\n    }\n  },\n  \"paymentMeans\": [\n    {\n      \"code\": \"30\",\n      \"ref\": \"1001001005\",\n      \"account\": {\n        \"number\": \"12345678903\"\n      }\n    }\n  ],\n  \"lines\": [\n    {\n      \"description\": \"Newspaper subscription\",\n      \"quantity\": 1,\n      \"unit\": \"H87\",\n      \"price\": {\n        \"amount\": 200.0\n      },\n      \"vat\": {\n        \"type\": \"percent\",\n        \"amount\": 0,\n        \"code\": \"Z\"\n      }\n    }\n  ],\n  \"total\": {\n    \"amount\": 200.0,\n    \"currency\": \"NOK\"\n  }\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "{{baseUrl}}/v1/invoice",
          "host": ["{{baseUrl}}"],
          "path": ["v1", "invoice"]
        },
        "description": "Zero-rated supply (for example newspapers). No exemption reason for Z."
      }
    },
    {
      "name": "05 - Exempt Invoice (Code E)",
      "event": [
        {
          "listen": "test",
          "script": {
            "type": "text/javascript",
            "exec": [
              "pm.test(\"Accepted (2xx)\", function () {",
              "    pm.expect(pm.response.code).to.be.within(200, 299);",
              "});"
            ]
          }
        }
      ],
      "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-11-18\",\n  \"dueDate\": \"2026-12-18\",\n  \"purchaseOrderRef\": \"PO-0001\",\n  \"customInfo\": {\n    \"nor\": {\n      \"deliveryDate\": \"2026-11-13\"\n    }\n  },\n  \"recipient\": {\n    \"name\": \"Example Buyer AS\",\n    \"taxId\": \"NO123456785MVA\",\n    \"address\": {\n      \"line1\": \"Example Street 1\",\n      \"city\": \"Oslo\",\n      \"postalCode\": \"0150\",\n      \"country\": \"NOR\"\n    },\n    \"peppolId\": {\n      \"endpointId\": \"iso6523-actorid-upis::0192:123456785\"\n    }\n  },\n  \"paymentMeans\": [\n    {\n      \"code\": \"30\",\n      \"ref\": \"1001001005\",\n      \"account\": {\n        \"number\": \"12345678903\"\n      }\n    }\n  ],\n  \"lines\": [\n    {\n      \"description\": \"Medical service\",\n      \"quantity\": 1,\n      \"unit\": \"H87\",\n      \"price\": {\n        \"amount\": 500.0\n      },\n      \"vat\": {\n        \"type\": \"percent\",\n        \"amount\": 0,\n        \"code\": \"E\",\n        \"exemptReason\": \"Exempt under the Norwegian VAT Act section 3-2\"\n      }\n    }\n  ],\n  \"total\": {\n    \"amount\": 500.0,\n    \"currency\": \"NOK\"\n  }\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "{{baseUrl}}/v1/invoice",
          "host": ["{{baseUrl}}"],
          "path": ["v1", "invoice"]
        },
        "description": "Exempt supply. An exemption reason is required for E."
      }
    },
    {
      "name": "06 - Invoice with Delivery Address",
      "event": [
        {
          "listen": "test",
          "script": {
            "type": "text/javascript",
            "exec": [
              "pm.test(\"Accepted (2xx)\", function () {",
              "    pm.expect(pm.response.code).to.be.within(200, 299);",
              "});"
            ]
          }
        }
      ],
      "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-11-18\",\n  \"dueDate\": \"2026-12-18\",\n  \"purchaseOrderRef\": \"PO-0001\",\n  \"customInfo\": {\n    \"nor\": {\n      \"deliveryDate\": \"2026-11-13\"\n    }\n  },\n  \"recipient\": {\n    \"name\": \"Example Buyer AS\",\n    \"taxId\": \"NO123456785MVA\",\n    \"address\": {\n      \"line1\": \"Example Street 1\",\n      \"city\": \"Oslo\",\n      \"postalCode\": \"0150\",\n      \"country\": \"NOR\"\n    },\n    \"peppolId\": {\n      \"endpointId\": \"iso6523-actorid-upis::0192:123456785\"\n    }\n  },\n  \"paymentMeans\": [\n    {\n      \"code\": \"30\",\n      \"ref\": \"1001001005\",\n      \"account\": {\n        \"number\": \"12345678903\"\n      }\n    }\n  ],\n  \"lines\": [\n    {\n      \"description\": \"Office chair\",\n      \"quantity\": 2,\n      \"unit\": \"H87\",\n      \"price\": {\n        \"amount\": 1500.0\n      },\n      \"vat\": {\n        \"type\": \"percent\",\n        \"amount\": 25,\n        \"code\": \"S\"\n      }\n    }\n  ],\n  \"total\": {\n    \"amount\": 3750.0,\n    \"currency\": \"NOK\"\n  },\n  \"shipToParty\": {\n    \"name\": \"Example Buyer AS Warehouse\",\n    \"address\": {\n      \"line1\": \"Warehouse Road 5\",\n      \"city\": \"Drammen\",\n      \"postalCode\": \"3015\",\n      \"country\": \"NOR\"\n    }\n  }\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "{{baseUrl}}/v1/invoice",
          "host": ["{{baseUrl}}"],
          "path": ["v1", "invoice"]
        },
        "description": "Goods delivered to a different address than the customer's address (shipToParty)."
      }
    },
    {
      "name": "07 - Foreign Currency Invoice (EUR, Bring Your Own Rate)",
      "event": [
        {
          "listen": "test",
          "script": {
            "type": "text/javascript",
            "exec": [
              "pm.test(\"Accepted (2xx)\", function () {",
              "    pm.expect(pm.response.code).to.be.within(200, 299);",
              "});"
            ]
          }
        }
      ],
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          },
          {
            "key": "Authorization",
            "value": "{{apiToken}}"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"ref\": \"Test-INV-007\",\n  \"issued\": \"2026-11-18\",\n  \"dueDate\": \"2026-12-18\",\n  \"purchaseOrderRef\": \"PO-0001\",\n  \"customInfo\": {\n    \"nor\": {\n      \"deliveryDate\": \"2026-11-13\"\n    },\n    \"exchangeRate\": {\n      \"from\": \"EUR\",\n      \"to\": \"NOK\",\n      \"rate\": 11.735\n    }\n  },\n  \"recipient\": {\n    \"name\": \"Example Buyer AS\",\n    \"taxId\": \"NO123456785MVA\",\n    \"address\": {\n      \"line1\": \"Example Street 1\",\n      \"city\": \"Oslo\",\n      \"postalCode\": \"0150\",\n      \"country\": \"NOR\"\n    },\n    \"peppolId\": {\n      \"endpointId\": \"iso6523-actorid-upis::0192:123456785\"\n    }\n  },\n  \"paymentMeans\": [\n    {\n      \"code\": \"30\",\n      \"ref\": \"1001001005\",\n      \"account\": {\n        \"number\": \"12345678903\"\n      }\n    }\n  ],\n  \"lines\": [\n    {\n      \"description\": \"Consulting\",\n      \"quantity\": 1,\n      \"unit\": \"HUR\",\n      \"price\": {\n        \"amount\": 1000.0\n      },\n      \"vat\": {\n        \"type\": \"percent\",\n        \"amount\": 25,\n        \"code\": \"S\"\n      }\n    }\n  ],\n  \"total\": {\n    \"amount\": 1250.0,\n    \"currency\": \"EUR\"\n  }\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "{{baseUrl}}/v1/invoice",
          "host": ["{{baseUrl}}"],
          "path": ["v1", "invoice"]
        },
        "description": "Invoice in EUR with your own exchange rate. eezi adds the VAT total in NOK."
      }
    }
  ],
  "variable": [
    {
      "key": "baseUrl",
      "value": "https://api.uat.eezi.io"
    },
    {
      "key": "apiToken",
      "value": ""
    }
  ]
}
