{
  "info": {
    "_postman_id": "0ade48e5-f8ae-4104-9330-12da81056ab4",
    "name": "Aigentrix – E-Invoice Entry (External API)",
    "description": "Full E-Invoice API collection using the External Gateway (X-API-KEY header).\n\nAuthentication: set the 'apiKey' collection variable to your API key.\n\nVariables to configure:\n  baseUrl        — e.g. http://localhost:8095\n  apiKey         — your X-API-KEY value\n  companyId      — your company ID\n  entryId        — an existing entry ID (for GET / PUT / DELETE / PDF)\n\nNote: the Get Companies request no longer needs an organisationId — your API key already resolves to your organisation server-side.\n\nScenario requests 1a-1d show the PINT-AE rules a client must follow (foreign currency, Corporate-Tax-only seller on 480, credit note, discounts/rounding). Each stores entryId; run 1z afterwards to confirm VALIDATION_PASSED.",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
    "_exporter_id": "13981399"
  },
  "item": [
    {
      "name": "1. Companies",
      "item": [
        {
          "name": "1.1 Get Companies",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "X-API-KEY",
                "value": "{{apiKey}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/external/api/v1/companies?page=0&perPage=10&sortBy=createdAt&orderBy=desc",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "external",
                "api",
                "v1",
                "companies"
              ],
              "query": [
                {
                  "key": "page",
                  "value": "0"
                },
                {
                  "key": "perPage",
                  "value": "10"
                },
                {
                  "key": "sortBy",
                  "value": "createdAt"
                },
                {
                  "key": "orderBy",
                  "value": "desc"
                },
                {
                  "key": "searchString",
                  "value": "",
                  "disabled": true
                },
                {
                  "key": "status",
                  "value": "true",
                  "disabled": true
                },
                {
                  "key": "filters",
                  "value": "",
                  "disabled": true
                }
              ]
            },
            "description": "Paginated list of companies accessible to your API key (owner's organisation, or the resolved admin's organisation for a global key), via the External Gateway (X-API-KEY). No organisationId needed — it's resolved server-side from the key."
          },
          "response": [
            {
              "name": "Success",
              "originalRequest": {
                "method": "GET",
                "header": [
                  {
                    "key": "X-API-KEY",
                    "value": "{{apiKey}}"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/external/api/v1/companies?page=0&perPage=10&sortBy=createdAt&orderBy=desc",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "external",
                    "api",
                    "v1",
                    "companies"
                  ],
                  "query": [
                    {
                      "key": "page",
                      "value": "0"
                    },
                    {
                      "key": "perPage",
                      "value": "10"
                    },
                    {
                      "key": "sortBy",
                      "value": "createdAt"
                    },
                    {
                      "key": "orderBy",
                      "value": "desc"
                    }
                  ]
                },
                "description": "Paginated list of companies accessible to your API key, via the External Gateway (X-API-KEY). No organisationId needed."
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n  \"totalRecords\": 1,\n  \"companies\": [\n    {\n      \"id\": 20,\n      \"code\": \"COMP001\",\n      \"nameEN\": \"Sample Trading LLC\",\n      \"nameAR\": \"شركة سامبل التجارية\",\n      \"cityEN\": \"Dubai\",\n      \"email\": \"finance@sampletrading.ae\",\n      \"taxVatRegistrationNumberEN\": \"100123456700003\",\n      \"viaPeppol\": true,\n      \"isInvoice\": true\n    }\n  ]\n}"
            }
          ]
        },
        {
          "name": "1.2 Get Company by ID",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "X-API-KEY",
                "value": "{{apiKey}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/external/api/v1/companies/{{companyId}}",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "external",
                "api",
                "v1",
                "companies",
                "{{companyId}}"
              ]
            },
            "description": "Fetch a single company by ID, via the External Gateway (X-API-KEY). No organisationId needed — the company is verified server-side to belong to your API key's organisation (or the resolved admin org, for a global key). Returns errorKey \"company.not.accessible\" if the company exists but belongs to a different organisation."
          },
          "response": [
            {
              "name": "Success",
              "originalRequest": {
                "method": "GET",
                "header": [
                  {
                    "key": "X-API-KEY",
                    "value": "{{apiKey}}"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/external/api/v1/companies/{{companyId}}",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "external",
                    "api",
                    "v1",
                    "companies",
                    "{{companyId}}"
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n  \"id\": 20,\n  \"code\": \"COMP001\",\n  \"nameEN\": \"Sample Trading LLC\",\n  \"nameAR\": \"شركة سامبل التجارية\",\n  \"cityEN\": \"Dubai\",\n  \"email\": \"finance@sampletrading.ae\",\n  \"taxVatRegistrationNumberEN\": \"100123456700003\",\n  \"viaPeppol\": true,\n  \"isInvoice\": true\n}"
            }
          ]
        }
      ],
      "description": "Find your companyId first."
    },
    {
      "name": "2. Create an invoice (JSON)",
      "item": [
        {
          "name": "2.1 Create E-Invoice Entry (Full JSON)",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "X-API-KEY",
                "value": "{{apiKey}}"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"companyId\": 20,\n  \"invoiceRef\": \"IIL-1001309\",\n\n  \"documentId\":                 \"IIL-1001309\",\n  \"issueDate\":                  \"2026-07-14\",\n  \"invoiceTypeCode\":            \"380\",\n  \"invoiceTransactionType\":     \"00000000\",\n  \"documentCurrencyCode\":       \"AED\",\n  \"noteEN\":                     \"INV\",\n  \"taxPointDate\":               null,\n  \"invoiceSupplyDate\":          null,\n  \"paymentDueDate\":             \"2026-09-12\",\n  \"orderReference\":             \"NA\",\n  \"contractDocumentReference\":  \"SIL-301358\",\n  \"originalInvoiceReference\":   \"SIL-301358\",\n  \"originalInvoiceReferenceDate\": \"2026-07-09\",\n  \"buyerReference\":             null,\n  \"invoicePeriodStartDate\":     null,\n  \"invoicePeriodEndDate\":       null,\n\n  \"sellerName\":                 \"TRONSTRIDE FZC\",\n  \"sellerVatTrn\":               \"104196887400003\",\n  \"sellerVatScheme\":            \"VAT\",\n  \"sellerRegisteredName\":       \"TRONSTRIDE FZC\",\n  \"sellerAddressLine1\":         \"BUSINESS CENTRE SHARJAH PUBLISHING CITY FREEZONE\",\n  \"sellerAddressLine2\":         \"NA\",\n  \"sellerCity\":                 \"Sharjah\",\n  \"sellerPostalZone\":           null,\n  \"sellerCountrySubdivision\":   \"SHJ\",\n  \"sellerCountryCode\":          \"AE\",\n  \"sellerTelephone\":            \"971529031765\",\n  \"sellerEmail\":                \"mohamed@tronstride.com\",\n  \"sellerPoBox\":                null,\n\n  \"buyerName\":                  \"HABIB MOHAMMAD SHARIF ABDULLA ALMULLA\",\n  \"buyerVatTrn\":                \"100711669800003\",\n  \"buyerVatScheme\":             \"VAT\",\n  \"buyerRegisteredName\":        \"HABIB MOHAMMAD SHARIF ABDULLA ALMULLA\",\n  \"buyerAddressLine1\":          \"Dubai, UAE\",\n  \"buyerAddressLine2\":          null,\n  \"buyerCity\":                  \"Dubai\",\n  \"buyerPostalZone\":            null,\n  \"buyerCountrySubdivision\":    \"DXB\",\n  \"buyerCountryCode\":           \"AE\",\n  \"buyerTelephone\":             null,\n  \"buyerEmail\":                 null,\n  \"buyerPoBox\":                 null,\n  \"buyerContact\":               null,\n\n  \"sellerLegalRegistrationId\":         \"714/2015\",\n  \"sellerLegalRegistrationType\":       \"TL\",\n  \"sellerLegalRegistrationAuthority\":  \"Dubai Economic Department\",\n  \"sellerOtherId\":                     null,\n  \"buyerLegalRegistrationId\":          null,\n  \"buyerLegalRegistrationType\":        null,\n  \"buyerLegalRegistrationAuthority\":   null,\n  \"buyerOtherId\":                      null,\n\n  \"lineExtensionTotal\":         37500.00,\n  \"docLevelDiscount\":           0.00,\n  \"docLevelCharges\":            0.00,\n  \"taxAmount\":                  1875.00,\n  \"totalIncludingTax\":          39375.00,\n  \"payableAmount\":              39375.00,\n  \"roundingAmount\":             0.00,\n\n  \"accountingCost\":             null,\n  \"specialTaxTreatment\":        null,\n  \"despatchDocRef\":             null,\n  \"receiptDocRef\":              null,\n  \"projectDocRef\":              null,\n  \"originatorDocRef\":           null,\n\n  \"prepaidAmount\":              null,\n  \"taxCurrencyCode\":            null,\n  \"vatInAccountingCurrency\":    null,\n  \"exchangeRate\":               null,\n  \"totalInLocalCurrency\":       null,\n\n  \"deliveryLocation\":           \"I & L\",\n  \"deliveryAddressLine1\":       \"P.O. BOX 3222\",\n  \"deliveryAddressLine2\":       \"SHARJAH, U.A.E.\",\n  \"deliveryAddressLine3\":       \"NA\",\n  \"deliveryCity\":               \"Sharjah\",\n  \"deliveryPostalZone\":         \"NA\",\n  \"deliveryCountrySubdivision\": \"NA\",\n  \"deliveryCountryCode\":        \"AE\",\n  \"deliverySchemeId\":           null,\n  \"deliveryPartyId\":            null,\n  \"deliveryPartyName\":          null,\n  \"deliveryIncoterms\":          null,\n\n  \"taxRepName\":                 null,\n  \"taxRepAddressLine1\":         null,\n  \"taxRepAddressLine2\":         null,\n  \"taxRepAddressLine3\":         null,\n  \"taxRepCity\":                 null,\n  \"taxRepPostalZone\":           null,\n  \"taxRepCountrySubdivision\":   null,\n  \"taxRepCountryCode\":          null,\n  \"taxRepTaxScheme\":            null,\n  \"taxRepTaxId\":                null,\n\n  \"supplierParticipantId\":      null,\n  \"customerParticipantId\":      null,\n\n  \"lines\": [\n    {\n      \"lineNumber\":            1,\n      \"itemName\":              \"Safe Oilgo\",\n      \"itemDescription\":       \"Safe Oilgo\",\n      \"sellerItemId\":          \"ILFGICS003\",\n      \"itemTypeGoodsServices\": null,\n      \"itemCountryOrigin\":     \"AE\",\n      \"quantity\":              15.0,\n      \"quantityUom\":           \"H87\",\n      \"unitPrice\":             2500.00,\n      \"priceBaseQty\":          1.0,\n      \"priceBaseQtyUom\":       \"H87\",\n      \"lineDiscountAmount\":    0,\n      \"lineDiscountPercent\":   0,\n      \"lineChargeAmount\":      0,\n      \"lineNetAmount\":         37500.00,\n      \"taxCategory\":           \"S\",\n      \"taxRatePercent\":        5.0,\n      \"taxScheme\":             \"VAT\",\n      \"lineTaxAmount\":         1875.00,\n      \"inclVatAmount\":         39375.00,\n      \"rcmCode\":               null,\n      \"accountingCost\":        null,\n      \"orderLineRef\":          null,\n      \"periodStart\":           null,\n      \"periodEnd\":             null,\n      \"vatExemptReasonCode\":   null,\n      \"vatExemptReasonText\":   null\n    }\n  ],\n\n  \"allowances\": [],\n\n  \"payments\": [\n    {\n      \"paymentMeansCode\":   \"30\",\n      \"paymentId\":          null,\n      \"remittanceInfo\":     null,\n      \"creditAccountIban\":  \"AE070260001012029678901\",\n      \"creditAccountScheme\": \"IBAN\",\n      \"creditAccountName\":  null,\n      \"cardNumberLast4\":    null,\n      \"cardHolderName\":     null,\n      \"bankBicSwift\":       null,\n      \"bankAddressLine1\":   null,\n      \"bankCity\":           null,\n      \"bankCountry\":        null,\n      \"mandateReferenceId\": null\n    }\n  ],\n\n  \"terms\": [\n    {\n      \"termId\":          null,\n      \"termNote\":        \"60 Days from Inv. Dt.\",\n      \"termAmount\":      39375.00,\n      \"termCurrency\":    \"AED\",\n      \"termInstallDate\": \"2026-09-12\"\n    }\n  ]\n}"
            },
            "url": {
              "raw": "{{baseUrl}}/external/api/v1/eInvoiceEntry/createFull",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "external",
                "api",
                "v1",
                "eInvoiceEntry",
                "createFull"
              ]
            },
            "description": "Standard AED invoice (380). Rules encoded on the server since 2026-09-04:\n- taxAmount is computed PER TAX BREAKDOWN (category+rate) on the summed net, not per line (PINT-AE 4.3). If your ERP rounds per line, put the difference in roundingAmount (IBT-114) and keep payableAmount = totalIncludingTax - prepaidAmount + roundingAmount.\n- Strings are trimmed server-side; TRN must be exactly 15 digits, country codes 2 letters, subdivisions for AE are emirate codes (AUH/DXB/SHJ/AJM/UAQ/RAK/FUJ).\n- Invoice type codes accepted: 380, 480 (Invoice root); 381, 81 (CreditNote root).\n- lineDiscountAmount / lineChargeAmount on a line become line-level AllowanceCharge in the XML (ibr-147-ae)."
          },
          "response": [
            {
              "name": "Success",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "X-API-KEY",
                    "value": "{{apiKey}}"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"companyId\": 20,\n  \"invoiceRef\": \"IIL-1001309\",\n\n  \"documentId\":                 \"IIL-1001309\",\n  \"issueDate\":                  \"2026-07-14\",\n  \"invoiceTypeCode\":            \"380\",\n  \"invoiceTransactionType\":     \"00000000\",\n  \"documentCurrencyCode\":       \"AED\",\n  \"noteEN\":                     \"INV\",\n  \"taxPointDate\":               null,\n  \"invoiceSupplyDate\":          null,\n  \"paymentDueDate\":             \"2026-09-12\",\n  \"orderReference\":             \"NA\",\n  \"contractDocumentReference\":  \"SIL-301358\",\n  \"originalInvoiceReference\":   \"SIL-301358\",\n  \"originalInvoiceReferenceDate\": \"2026-07-09\",\n  \"buyerReference\":             null,\n  \"invoicePeriodStartDate\":     null,\n  \"invoicePeriodEndDate\":       null,\n\n  \"sellerName\":                 \"TRONSTRIDE FZC\",\n  \"sellerVatTrn\":               \"104196887400003\",\n  \"sellerVatScheme\":            \"VAT\",\n  \"sellerRegisteredName\":       \"TRONSTRIDE FZC\",\n  \"sellerAddressLine1\":         \"BUSINESS CENTRE SHARJAH PUBLISHING CITY FREEZONE\",\n  \"sellerAddressLine2\":         \"NA\",\n  \"sellerCity\":                 \"Sharjah\",\n  \"sellerPostalZone\":           null,\n  \"sellerCountrySubdivision\":   \"SHJ\",\n  \"sellerCountryCode\":          \"AE\",\n  \"sellerTelephone\":            \"971529031765\",\n  \"sellerEmail\":                \"mohamed@tronstride.com\",\n  \"sellerPoBox\":                null,\n\n  \"buyerName\":                  \"HABIB MOHAMMAD SHARIF ABDULLA ALMULLA\",\n  \"buyerVatTrn\":                \"100711669800003\",\n  \"buyerVatScheme\":             \"VAT\",\n  \"buyerRegisteredName\":        \"HABIB MOHAMMAD SHARIF ABDULLA ALMULLA\",\n  \"buyerAddressLine1\":          \"Dubai, UAE\",\n  \"buyerAddressLine2\":          null,\n  \"buyerCity\":                  \"Dubai\",\n  \"buyerPostalZone\":            null,\n  \"buyerCountrySubdivision\":    \"DXB\",\n  \"buyerCountryCode\":           \"AE\",\n  \"buyerTelephone\":             null,\n  \"buyerEmail\":                 null,\n  \"buyerPoBox\":                 null,\n  \"buyerContact\":               null,\n\n  \"sellerLegalRegistrationId\":         \"714/2015\",\n  \"sellerLegalRegistrationType\":       \"TL\",\n  \"sellerLegalRegistrationAuthority\":  \"Dubai Economic Department\",\n  \"sellerOtherId\":                     null,\n  \"buyerLegalRegistrationId\":          null,\n  \"buyerLegalRegistrationType\":        null,\n  \"buyerLegalRegistrationAuthority\":   null,\n  \"buyerOtherId\":                      null,\n\n  \"lineExtensionTotal\":         37500.00,\n  \"docLevelDiscount\":           0.00,\n  \"docLevelCharges\":            0.00,\n  \"taxAmount\":                  1875.00,\n  \"totalIncludingTax\":          39375.00,\n  \"payableAmount\":              39375.00,\n  \"roundingAmount\":             0.00,\n\n  \"accountingCost\":             null,\n  \"specialTaxTreatment\":        null,\n  \"despatchDocRef\":             null,\n  \"receiptDocRef\":              null,\n  \"projectDocRef\":              null,\n  \"originatorDocRef\":           null,\n\n  \"prepaidAmount\":              null,\n  \"taxCurrencyCode\":            null,\n  \"vatInAccountingCurrency\":    null,\n  \"exchangeRate\":               null,\n  \"totalInLocalCurrency\":       null,\n\n  \"deliveryLocation\":           \"I & L\",\n  \"deliveryAddressLine1\":       \"P.O. BOX 3222\",\n  \"deliveryAddressLine2\":       \"SHARJAH, U.A.E.\",\n  \"deliveryAddressLine3\":       \"NA\",\n  \"deliveryCity\":               \"Sharjah\",\n  \"deliveryPostalZone\":         \"NA\",\n  \"deliveryCountrySubdivision\": \"NA\",\n  \"deliveryCountryCode\":        \"AE\",\n  \"deliverySchemeId\":           null,\n  \"deliveryPartyId\":            null,\n  \"deliveryPartyName\":          null,\n  \"deliveryIncoterms\":          null,\n\n  \"taxRepName\":                 null,\n  \"taxRepAddressLine1\":         null,\n  \"taxRepAddressLine2\":         null,\n  \"taxRepAddressLine3\":         null,\n  \"taxRepCity\":                 null,\n  \"taxRepPostalZone\":           null,\n  \"taxRepCountrySubdivision\":   null,\n  \"taxRepCountryCode\":          null,\n  \"taxRepTaxScheme\":            null,\n  \"taxRepTaxId\":                null,\n\n  \"supplierParticipantId\":      null,\n  \"customerParticipantId\":      null,\n\n  \"lines\": [\n    {\n      \"lineNumber\":            1,\n      \"itemName\":              \"Safe Oilgo\",\n      \"itemDescription\":       \"Safe Oilgo\",\n      \"sellerItemId\":          \"ILFGICS003\",\n      \"itemTypeGoodsServices\": null,\n      \"itemCountryOrigin\":     \"AE\",\n      \"quantity\":              15.0,\n      \"quantityUom\":           \"H87\",\n      \"unitPrice\":             2500.00,\n      \"priceBaseQty\":          1.0,\n      \"priceBaseQtyUom\":       \"H87\",\n      \"lineDiscountAmount\":    0,\n      \"lineDiscountPercent\":   0,\n      \"lineChargeAmount\":      0,\n      \"lineNetAmount\":         37500.00,\n      \"taxCategory\":           \"S\",\n      \"taxRatePercent\":        5.0,\n      \"taxScheme\":             \"VAT\",\n      \"lineTaxAmount\":         1875.00,\n      \"inclVatAmount\":         39375.00,\n      \"rcmCode\":               null,\n      \"accountingCost\":        null,\n      \"orderLineRef\":          null,\n      \"periodStart\":           null,\n      \"periodEnd\":             null,\n      \"vatExemptReasonCode\":   null,\n      \"vatExemptReasonText\":   null\n    }\n  ],\n\n  \"allowances\": [],\n\n  \"payments\": [\n    {\n      \"paymentMeansCode\":   \"30\",\n      \"paymentId\":          null,\n      \"remittanceInfo\":     null,\n      \"creditAccountIban\":  \"AE070260001012029678901\",\n      \"creditAccountScheme\": \"IBAN\",\n      \"creditAccountName\":  null,\n      \"cardNumberLast4\":    null,\n      \"cardHolderName\":     null,\n      \"bankBicSwift\":       null,\n      \"bankAddressLine1\":   null,\n      \"bankCity\":           null,\n      \"bankCountry\":        null,\n      \"mandateReferenceId\": null\n    }\n  ],\n\n  \"terms\": [\n    {\n      \"termId\":          null,\n      \"termNote\":        \"60 Days from Inv. Dt.\",\n      \"termAmount\":      39375.00,\n      \"termCurrency\":    \"AED\",\n      \"termInstallDate\": \"2026-09-12\"\n    }\n  ]\n}"
                },
                "url": {
                  "raw": "{{baseUrl}}/external/api/v1/eInvoiceEntry/createFull",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "external",
                    "api",
                    "v1",
                    "eInvoiceEntry",
                    "createFull"
                  ]
                },
                "description": "Creates a full e-invoice entry with lines, allowances, payments, and terms in a single JSON call.\nAll dates: yyyy-MM-dd. For taxCategory='E' the vatExemptReasonCode is mandatory ([ibr-167-ae]).\n\nPeppol routing:\n  supplierParticipantId — seller's Peppol participant ID (e.g. '0088:1234567890123')\n  customerParticipantId — buyer's Peppol participant ID (e.g. '0088:9876543210987')\n  Both fields are optional (nullable).\n\nLegal registration / other IDs (all optional):\n  sellerLegalRegistrationId / buyerLegalRegistrationId       — IBT-030 / IBT-047, e.g. trade license number\n  sellerLegalRegistrationType / buyerLegalRegistrationType   — BTAE-15 / BTAE-16, one of TL, EID, PAS, CD\n  sellerLegalRegistrationAuthority / buyerLegalRegistrationAuthority — BTAE-12/18 / BTAE-11/19: authority name when type is TL/EID/CD, or passport-issuing country when type is PAS\n  sellerOtherId / buyerOtherId — additional tax/other identifier"
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n  \"success\":           true,\n  \"invoiceRef\":        \"INV-001\",\n  \"entryId\":           1042,\n  \"documentId\":        \"INV-2024-001\",\n  \"linesCreated\":      2,\n  \"allowancesCreated\": 1,\n  \"paymentsCreated\":   1,\n  \"termsCreated\":      1\n}"
            },
            {
              "name": "Validation Error (ibr-167-ae)",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "X-API-KEY",
                    "value": "{{apiKey}}"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"companyId\": 20,\n  \"invoiceRef\": \"IIL-1001309\",\n\n  \"documentId\":                 \"IIL-1001309\",\n  \"issueDate\":                  \"2026-07-14\",\n  \"invoiceTypeCode\":            \"380\",\n  \"invoiceTransactionType\":     \"00000000\",\n  \"documentCurrencyCode\":       \"AED\",\n  \"noteEN\":                     \"INV\",\n  \"taxPointDate\":               null,\n  \"invoiceSupplyDate\":          null,\n  \"paymentDueDate\":             \"2026-09-12\",\n  \"orderReference\":             \"NA\",\n  \"contractDocumentReference\":  \"SIL-301358\",\n  \"originalInvoiceReference\":   \"SIL-301358\",\n  \"originalInvoiceReferenceDate\": \"2026-07-09\",\n  \"buyerReference\":             null,\n  \"invoicePeriodStartDate\":     null,\n  \"invoicePeriodEndDate\":       null,\n\n  \"sellerName\":                 \"TRONSTRIDE FZC\",\n  \"sellerVatTrn\":               \"104196887400003\",\n  \"sellerVatScheme\":            \"VAT\",\n  \"sellerRegisteredName\":       \"TRONSTRIDE FZC\",\n  \"sellerAddressLine1\":         \"BUSINESS CENTRE SHARJAH PUBLISHING CITY FREEZONE\",\n  \"sellerAddressLine2\":         \"NA\",\n  \"sellerCity\":                 \"Sharjah\",\n  \"sellerPostalZone\":           null,\n  \"sellerCountrySubdivision\":   \"SHJ\",\n  \"sellerCountryCode\":          \"AE\",\n  \"sellerTelephone\":            \"971529031765\",\n  \"sellerEmail\":                \"mohamed@tronstride.com\",\n  \"sellerPoBox\":                null,\n\n  \"buyerName\":                  \"HABIB MOHAMMAD SHARIF ABDULLA ALMULLA\",\n  \"buyerVatTrn\":                \"100711669800003\",\n  \"buyerVatScheme\":             \"VAT\",\n  \"buyerRegisteredName\":        \"HABIB MOHAMMAD SHARIF ABDULLA ALMULLA\",\n  \"buyerAddressLine1\":          \"Dubai, UAE\",\n  \"buyerAddressLine2\":          null,\n  \"buyerCity\":                  \"Dubai\",\n  \"buyerPostalZone\":            null,\n  \"buyerCountrySubdivision\":    \"DXB\",\n  \"buyerCountryCode\":           \"AE\",\n  \"buyerTelephone\":             null,\n  \"buyerEmail\":                 null,\n  \"buyerPoBox\":                 null,\n  \"buyerContact\":               null,\n\n  \"sellerLegalRegistrationId\":         \"714/2015\",\n  \"sellerLegalRegistrationType\":       \"TL\",\n  \"sellerLegalRegistrationAuthority\":  \"Dubai Economic Department\",\n  \"sellerOtherId\":                     null,\n  \"buyerLegalRegistrationId\":          null,\n  \"buyerLegalRegistrationType\":        null,\n  \"buyerLegalRegistrationAuthority\":   null,\n  \"buyerOtherId\":                      null,\n\n  \"lineExtensionTotal\":         37500.00,\n  \"docLevelDiscount\":           0.00,\n  \"docLevelCharges\":            0.00,\n  \"taxAmount\":                  1875.00,\n  \"totalIncludingTax\":          39375.00,\n  \"payableAmount\":              39375.00,\n  \"roundingAmount\":             0.00,\n\n  \"accountingCost\":             null,\n  \"specialTaxTreatment\":        null,\n  \"despatchDocRef\":             null,\n  \"receiptDocRef\":              null,\n  \"projectDocRef\":              null,\n  \"originatorDocRef\":           null,\n\n  \"prepaidAmount\":              null,\n  \"taxCurrencyCode\":            null,\n  \"vatInAccountingCurrency\":    null,\n  \"exchangeRate\":               null,\n  \"totalInLocalCurrency\":       null,\n\n  \"deliveryLocation\":           \"I & L\",\n  \"deliveryAddressLine1\":       \"P.O. BOX 3222\",\n  \"deliveryAddressLine2\":       \"SHARJAH, U.A.E.\",\n  \"deliveryAddressLine3\":       \"NA\",\n  \"deliveryCity\":               \"Sharjah\",\n  \"deliveryPostalZone\":         \"NA\",\n  \"deliveryCountrySubdivision\": \"NA\",\n  \"deliveryCountryCode\":        \"AE\",\n  \"deliverySchemeId\":           null,\n  \"deliveryPartyId\":            null,\n  \"deliveryPartyName\":          null,\n  \"deliveryIncoterms\":          null,\n\n  \"taxRepName\":                 null,\n  \"taxRepAddressLine1\":         null,\n  \"taxRepAddressLine2\":         null,\n  \"taxRepAddressLine3\":         null,\n  \"taxRepCity\":                 null,\n  \"taxRepPostalZone\":           null,\n  \"taxRepCountrySubdivision\":   null,\n  \"taxRepCountryCode\":          null,\n  \"taxRepTaxScheme\":            null,\n  \"taxRepTaxId\":                null,\n\n  \"supplierParticipantId\":      null,\n  \"customerParticipantId\":      null,\n\n  \"lines\": [\n    {\n      \"lineNumber\":            1,\n      \"itemName\":              \"Safe Oilgo\",\n      \"itemDescription\":       \"Safe Oilgo\",\n      \"sellerItemId\":          \"ILFGICS003\",\n      \"itemTypeGoodsServices\": null,\n      \"itemCountryOrigin\":     \"AE\",\n      \"quantity\":              15.0,\n      \"quantityUom\":           \"H87\",\n      \"unitPrice\":             2500.00,\n      \"priceBaseQty\":          1.0,\n      \"priceBaseQtyUom\":       \"H87\",\n      \"lineDiscountAmount\":    0,\n      \"lineDiscountPercent\":   0,\n      \"lineChargeAmount\":      0,\n      \"lineNetAmount\":         37500.00,\n      \"taxCategory\":           \"S\",\n      \"taxRatePercent\":        5.0,\n      \"taxScheme\":             \"VAT\",\n      \"lineTaxAmount\":         1875.00,\n      \"inclVatAmount\":         39375.00,\n      \"rcmCode\":               null,\n      \"accountingCost\":        null,\n      \"orderLineRef\":          null,\n      \"periodStart\":           null,\n      \"periodEnd\":             null,\n      \"vatExemptReasonCode\":   null,\n      \"vatExemptReasonText\":   null\n    }\n  ],\n\n  \"allowances\": [],\n\n  \"payments\": [\n    {\n      \"paymentMeansCode\":   \"30\",\n      \"paymentId\":          null,\n      \"remittanceInfo\":     null,\n      \"creditAccountIban\":  \"AE070260001012029678901\",\n      \"creditAccountScheme\": \"IBAN\",\n      \"creditAccountName\":  null,\n      \"cardNumberLast4\":    null,\n      \"cardHolderName\":     null,\n      \"bankBicSwift\":       null,\n      \"bankAddressLine1\":   null,\n      \"bankCity\":           null,\n      \"bankCountry\":        null,\n      \"mandateReferenceId\": null\n    }\n  ],\n\n  \"terms\": [\n    {\n      \"termId\":          null,\n      \"termNote\":        \"60 Days from Inv. Dt.\",\n      \"termAmount\":      39375.00,\n      \"termCurrency\":    \"AED\",\n      \"termInstallDate\": \"2026-09-12\"\n    }\n  ]\n}"
                },
                "url": {
                  "raw": "{{baseUrl}}/external/api/v1/eInvoiceEntry/createFull",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "external",
                    "api",
                    "v1",
                    "eInvoiceEntry",
                    "createFull"
                  ]
                },
                "description": "Creates a full e-invoice entry with lines, allowances, payments, and terms in a single JSON call.\nAll dates: yyyy-MM-dd. For taxCategory='E' the vatExemptReasonCode is mandatory ([ibr-167-ae]).\n\nPeppol routing:\n  supplierParticipantId — seller's Peppol participant ID (e.g. '0088:1234567890123')\n  customerParticipantId — buyer's Peppol participant ID (e.g. '0088:9876543210987')\n  Both fields are optional (nullable).\n\nLegal registration / other IDs (all optional):\n  sellerLegalRegistrationId / buyerLegalRegistrationId       — IBT-030 / IBT-047, e.g. trade license number\n  sellerLegalRegistrationType / buyerLegalRegistrationType   — BTAE-15 / BTAE-16, one of TL, EID, PAS, CD\n  sellerLegalRegistrationAuthority / buyerLegalRegistrationAuthority — BTAE-12/18 / BTAE-11/19: authority name when type is TL/EID/CD, or passport-issuing country when type is PAS\n  sellerOtherId / buyerOtherId — additional tax/other identifier"
              },
              "status": "Bad Request",
              "code": 400,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n  \"success\": false,\n  \"error\": \"[ibr-167-ae] Line 1: vatExemptReasonCode is mandatory when taxCategory is 'E'.\"\n}"
            },
            {
              "name": "Unauthorized",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "X-API-KEY",
                    "value": "{{apiKey}}"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"companyId\": 20,\n  \"invoiceRef\": \"IIL-1001309\",\n\n  \"documentId\":                 \"IIL-1001309\",\n  \"issueDate\":                  \"2026-07-14\",\n  \"invoiceTypeCode\":            \"380\",\n  \"invoiceTransactionType\":     \"00000000\",\n  \"documentCurrencyCode\":       \"AED\",\n  \"noteEN\":                     \"INV\",\n  \"taxPointDate\":               null,\n  \"invoiceSupplyDate\":          null,\n  \"paymentDueDate\":             \"2026-09-12\",\n  \"orderReference\":             \"NA\",\n  \"contractDocumentReference\":  \"SIL-301358\",\n  \"originalInvoiceReference\":   \"SIL-301358\",\n  \"originalInvoiceReferenceDate\": \"2026-07-09\",\n  \"buyerReference\":             null,\n  \"invoicePeriodStartDate\":     null,\n  \"invoicePeriodEndDate\":       null,\n\n  \"sellerName\":                 \"TRONSTRIDE FZC\",\n  \"sellerVatTrn\":               \"104196887400003\",\n  \"sellerVatScheme\":            \"VAT\",\n  \"sellerRegisteredName\":       \"TRONSTRIDE FZC\",\n  \"sellerAddressLine1\":         \"BUSINESS CENTRE SHARJAH PUBLISHING CITY FREEZONE\",\n  \"sellerAddressLine2\":         \"NA\",\n  \"sellerCity\":                 \"Sharjah\",\n  \"sellerPostalZone\":           null,\n  \"sellerCountrySubdivision\":   \"SHJ\",\n  \"sellerCountryCode\":          \"AE\",\n  \"sellerTelephone\":            \"971529031765\",\n  \"sellerEmail\":                \"mohamed@tronstride.com\",\n  \"sellerPoBox\":                null,\n\n  \"buyerName\":                  \"HABIB MOHAMMAD SHARIF ABDULLA ALMULLA\",\n  \"buyerVatTrn\":                \"100711669800003\",\n  \"buyerVatScheme\":             \"VAT\",\n  \"buyerRegisteredName\":        \"HABIB MOHAMMAD SHARIF ABDULLA ALMULLA\",\n  \"buyerAddressLine1\":          \"Dubai, UAE\",\n  \"buyerAddressLine2\":          null,\n  \"buyerCity\":                  \"Dubai\",\n  \"buyerPostalZone\":            null,\n  \"buyerCountrySubdivision\":    \"DXB\",\n  \"buyerCountryCode\":           \"AE\",\n  \"buyerTelephone\":             null,\n  \"buyerEmail\":                 null,\n  \"buyerPoBox\":                 null,\n  \"buyerContact\":               null,\n\n  \"sellerLegalRegistrationId\":         \"714/2015\",\n  \"sellerLegalRegistrationType\":       \"TL\",\n  \"sellerLegalRegistrationAuthority\":  \"Dubai Economic Department\",\n  \"sellerOtherId\":                     null,\n  \"buyerLegalRegistrationId\":          null,\n  \"buyerLegalRegistrationType\":        null,\n  \"buyerLegalRegistrationAuthority\":   null,\n  \"buyerOtherId\":                      null,\n\n  \"lineExtensionTotal\":         37500.00,\n  \"docLevelDiscount\":           0.00,\n  \"docLevelCharges\":            0.00,\n  \"taxAmount\":                  1875.00,\n  \"totalIncludingTax\":          39375.00,\n  \"payableAmount\":              39375.00,\n  \"roundingAmount\":             0.00,\n\n  \"accountingCost\":             null,\n  \"specialTaxTreatment\":        null,\n  \"despatchDocRef\":             null,\n  \"receiptDocRef\":              null,\n  \"projectDocRef\":              null,\n  \"originatorDocRef\":           null,\n\n  \"prepaidAmount\":              null,\n  \"taxCurrencyCode\":            null,\n  \"vatInAccountingCurrency\":    null,\n  \"exchangeRate\":               null,\n  \"totalInLocalCurrency\":       null,\n\n  \"deliveryLocation\":           \"I & L\",\n  \"deliveryAddressLine1\":       \"P.O. BOX 3222\",\n  \"deliveryAddressLine2\":       \"SHARJAH, U.A.E.\",\n  \"deliveryAddressLine3\":       \"NA\",\n  \"deliveryCity\":               \"Sharjah\",\n  \"deliveryPostalZone\":         \"NA\",\n  \"deliveryCountrySubdivision\": \"NA\",\n  \"deliveryCountryCode\":        \"AE\",\n  \"deliverySchemeId\":           null,\n  \"deliveryPartyId\":            null,\n  \"deliveryPartyName\":          null,\n  \"deliveryIncoterms\":          null,\n\n  \"taxRepName\":                 null,\n  \"taxRepAddressLine1\":         null,\n  \"taxRepAddressLine2\":         null,\n  \"taxRepAddressLine3\":         null,\n  \"taxRepCity\":                 null,\n  \"taxRepPostalZone\":           null,\n  \"taxRepCountrySubdivision\":   null,\n  \"taxRepCountryCode\":          null,\n  \"taxRepTaxScheme\":            null,\n  \"taxRepTaxId\":                null,\n\n  \"supplierParticipantId\":      null,\n  \"customerParticipantId\":      null,\n\n  \"lines\": [\n    {\n      \"lineNumber\":            1,\n      \"itemName\":              \"Safe Oilgo\",\n      \"itemDescription\":       \"Safe Oilgo\",\n      \"sellerItemId\":          \"ILFGICS003\",\n      \"itemTypeGoodsServices\": null,\n      \"itemCountryOrigin\":     \"AE\",\n      \"quantity\":              15.0,\n      \"quantityUom\":           \"H87\",\n      \"unitPrice\":             2500.00,\n      \"priceBaseQty\":          1.0,\n      \"priceBaseQtyUom\":       \"H87\",\n      \"lineDiscountAmount\":    0,\n      \"lineDiscountPercent\":   0,\n      \"lineChargeAmount\":      0,\n      \"lineNetAmount\":         37500.00,\n      \"taxCategory\":           \"S\",\n      \"taxRatePercent\":        5.0,\n      \"taxScheme\":             \"VAT\",\n      \"lineTaxAmount\":         1875.00,\n      \"inclVatAmount\":         39375.00,\n      \"rcmCode\":               null,\n      \"accountingCost\":        null,\n      \"orderLineRef\":          null,\n      \"periodStart\":           null,\n      \"periodEnd\":             null,\n      \"vatExemptReasonCode\":   null,\n      \"vatExemptReasonText\":   null\n    }\n  ],\n\n  \"allowances\": [],\n\n  \"payments\": [\n    {\n      \"paymentMeansCode\":   \"30\",\n      \"paymentId\":          null,\n      \"remittanceInfo\":     null,\n      \"creditAccountIban\":  \"AE070260001012029678901\",\n      \"creditAccountScheme\": \"IBAN\",\n      \"creditAccountName\":  null,\n      \"cardNumberLast4\":    null,\n      \"cardHolderName\":     null,\n      \"bankBicSwift\":       null,\n      \"bankAddressLine1\":   null,\n      \"bankCity\":           null,\n      \"bankCountry\":        null,\n      \"mandateReferenceId\": null\n    }\n  ],\n\n  \"terms\": [\n    {\n      \"termId\":          null,\n      \"termNote\":        \"60 Days from Inv. Dt.\",\n      \"termAmount\":      39375.00,\n      \"termCurrency\":    \"AED\",\n      \"termInstallDate\": \"2026-09-12\"\n    }\n  ]\n}"
                },
                "url": {
                  "raw": "{{baseUrl}}/external/api/v1/eInvoiceEntry/createFull",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "external",
                    "api",
                    "v1",
                    "eInvoiceEntry",
                    "createFull"
                  ]
                },
                "description": "Creates a full e-invoice entry with lines, allowances, payments, and terms in a single JSON call.\nAll dates: yyyy-MM-dd. For taxCategory='E' the vatExemptReasonCode is mandatory ([ibr-167-ae]).\n\nPeppol routing:\n  supplierParticipantId — seller's Peppol participant ID (e.g. '0088:1234567890123')\n  customerParticipantId — buyer's Peppol participant ID (e.g. '0088:9876543210987')\n  Both fields are optional (nullable).\n\nLegal registration / other IDs (all optional):\n  sellerLegalRegistrationId / buyerLegalRegistrationId       — IBT-030 / IBT-047, e.g. trade license number\n  sellerLegalRegistrationType / buyerLegalRegistrationType   — BTAE-15 / BTAE-16, one of TL, EID, PAS, CD\n  sellerLegalRegistrationAuthority / buyerLegalRegistrationAuthority — BTAE-12/18 / BTAE-11/19: authority name when type is TL/EID/CD, or passport-issuing country when type is PAS\n  sellerOtherId / buyerOtherId — additional tax/other identifier"
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n  \"errorKey\": \"API key missing\"\n}"
            }
          ],
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test(\"HTTP 200\", () => pm.response.to.have.status(200));",
                  "const j = pm.response.json();",
                  "pm.test(\"success = true (else see errorKey / error)\", () => pm.expect(j.success, JSON.stringify(j)).to.be.true);",
                  "pm.test(\"entry created or overwritten\", () => pm.expect([\"CREATED\", \"OVERWRITTEN\"]).to.include(j.status));",
                  "if (j.entryId) { pm.collectionVariables.set(\"entryId\", String(j.entryId)); console.log(\"entryId =\", j.entryId, \"documentId =\", j.documentId); }"
                ]
              }
            }
          ]
        },
        {
          "name": "2.2 Worked examples (same cases as the Easy Invoice Examples panel)",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "X-API-KEY",
                "value": "{{apiKey}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/external/api/v1/eInvoiceEntry/examples",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "external",
                "api",
                "v1",
                "eInvoiceEntry",
                "examples"
              ]
            },
            "description": "Returns the worked examples shown in the Easy Invoice Examples panel: key, title, when, summary, highlights and a createFull body without seller fields / companyId / dates. Fill those in (or use Download JSON in the app) and POST to createFull."
          },
          "response": []
        },
        {
          "name": "2.3 Verify - validation errors for {{entryId}} (expect none = VALIDATION_PASSED)",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "X-API-KEY",
                "value": "{{apiKey}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/external/api/v1/eInvoiceEntry/{{entryId}}/validationErrors",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "external",
                "api",
                "v1",
                "eInvoiceEntry",
                "{{entryId}}",
                "validationErrors"
              ]
            },
            "description": "Run right after any 1x create. An empty list means the document passed XSD + Schematron and the entry moves to VALIDATION_PASSED in the Aigentrix screen."
          },
          "response": [],
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test(\"HTTP 200\", () => pm.response.to.have.status(200));",
                  "const j = pm.response.json();",
                  "const errs = Array.isArray(j) ? j : (j.errors || j.data || []);",
                  "pm.test(\"no validation errors recorded for the entry (VALIDATION_PASSED)\", () => pm.expect(errs.length, JSON.stringify(errs)).to.equal(0));"
                ]
              }
            }
          ]
        }
      ],
      "description": "Create with 2.1, submit with 4.4 (status SUBMITTED), then check 2.3 for validation errors."
    },
    {
      "name": "3. Scenarios (all verified on sandbox)",
      "item": [
        {
          "name": "3.1 Foreign currency (USD) with AED restatement",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "X-API-KEY",
                "value": "{{apiKey}}"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"companyId\": 20,\n  \"invoiceRef\": \"IIL-USD-0001\",\n  \"documentId\": \"IIL-USD-0001\",\n  \"issueDate\": \"2026-07-14\",\n  \"invoiceTypeCode\": \"380\",\n  \"invoiceTransactionType\": \"00000000\",\n  \"documentCurrencyCode\": \"USD\",\n  \"noteEN\": \"INV\",\n  \"taxPointDate\": null,\n  \"invoiceSupplyDate\": null,\n  \"paymentDueDate\": \"2026-09-12\",\n  \"orderReference\": \"NA\",\n  \"contractDocumentReference\": \"SIL-301358\",\n  \"originalInvoiceReference\": \"SIL-301358\",\n  \"originalInvoiceReferenceDate\": \"2026-07-09\",\n  \"buyerReference\": null,\n  \"invoicePeriodStartDate\": null,\n  \"invoicePeriodEndDate\": null,\n  \"sellerName\": \"TRONSTRIDE FZC\",\n  \"sellerVatTrn\": \"104196887400003\",\n  \"sellerVatScheme\": \"VAT\",\n  \"sellerRegisteredName\": \"TRONSTRIDE FZC\",\n  \"sellerAddressLine1\": \"BUSINESS CENTRE SHARJAH PUBLISHING CITY FREEZONE\",\n  \"sellerAddressLine2\": \"NA\",\n  \"sellerCity\": \"Sharjah\",\n  \"sellerPostalZone\": null,\n  \"sellerCountrySubdivision\": \"SHJ\",\n  \"sellerCountryCode\": \"AE\",\n  \"sellerTelephone\": \"971529031765\",\n  \"sellerEmail\": \"mohamed@tronstride.com\",\n  \"sellerPoBox\": null,\n  \"buyerName\": \"HABIB MOHAMMAD SHARIF ABDULLA ALMULLA\",\n  \"buyerVatTrn\": \"100711669800003\",\n  \"buyerVatScheme\": \"VAT\",\n  \"buyerRegisteredName\": \"HABIB MOHAMMAD SHARIF ABDULLA ALMULLA\",\n  \"buyerAddressLine1\": \"Dubai, UAE\",\n  \"buyerAddressLine2\": null,\n  \"buyerCity\": \"Dubai\",\n  \"buyerPostalZone\": null,\n  \"buyerCountrySubdivision\": \"DXB\",\n  \"buyerCountryCode\": \"AE\",\n  \"buyerTelephone\": null,\n  \"buyerEmail\": null,\n  \"buyerPoBox\": null,\n  \"buyerContact\": null,\n  \"sellerLegalRegistrationId\": \"714/2015\",\n  \"sellerLegalRegistrationType\": \"TL\",\n  \"sellerLegalRegistrationAuthority\": \"Dubai Economic Department\",\n  \"sellerOtherId\": null,\n  \"buyerLegalRegistrationId\": null,\n  \"buyerLegalRegistrationType\": null,\n  \"buyerLegalRegistrationAuthority\": null,\n  \"buyerOtherId\": null,\n  \"lineExtensionTotal\": 100.0,\n  \"docLevelDiscount\": 0,\n  \"docLevelCharges\": 0,\n  \"taxAmount\": 5.0,\n  \"totalIncludingTax\": 105.0,\n  \"payableAmount\": 105.0,\n  \"roundingAmount\": 0,\n  \"accountingCost\": null,\n  \"specialTaxTreatment\": null,\n  \"despatchDocRef\": null,\n  \"receiptDocRef\": null,\n  \"projectDocRef\": null,\n  \"originatorDocRef\": null,\n  \"prepaidAmount\": null,\n  \"taxCurrencyCode\": \"AED\",\n  \"vatInAccountingCurrency\": 18.36,\n  \"exchangeRate\": 3.6725,\n  \"totalInLocalCurrency\": 385.61,\n  \"deliveryLocation\": \"I & L\",\n  \"deliveryAddressLine1\": \"P.O. BOX 3222\",\n  \"deliveryAddressLine2\": \"SHARJAH, U.A.E.\",\n  \"deliveryAddressLine3\": \"NA\",\n  \"deliveryCity\": \"Sharjah\",\n  \"deliveryPostalZone\": \"NA\",\n  \"deliveryCountrySubdivision\": \"NA\",\n  \"deliveryCountryCode\": \"AE\",\n  \"deliverySchemeId\": null,\n  \"deliveryPartyId\": null,\n  \"deliveryPartyName\": null,\n  \"deliveryIncoterms\": null,\n  \"taxRepName\": null,\n  \"taxRepAddressLine1\": null,\n  \"taxRepAddressLine2\": null,\n  \"taxRepAddressLine3\": null,\n  \"taxRepCity\": null,\n  \"taxRepPostalZone\": null,\n  \"taxRepCountrySubdivision\": null,\n  \"taxRepCountryCode\": null,\n  \"taxRepTaxScheme\": null,\n  \"taxRepTaxId\": null,\n  \"supplierParticipantId\": null,\n  \"customerParticipantId\": null,\n  \"lines\": [\n    {\n      \"lineNumber\": 1,\n      \"itemName\": \"Consulting (USD)\",\n      \"itemDescription\": \"Consulting (USD)\",\n      \"quantity\": 1,\n      \"quantityUom\": \"EA\",\n      \"unitPrice\": 100.0,\n      \"lineNetAmount\": 100.0,\n      \"taxCategory\": \"S\",\n      \"taxRatePercent\": 5,\n      \"lineTaxAmount\": 5.0,\n      \"inclVatAmount\": 105.0\n    }\n  ],\n  \"allowances\": [],\n  \"payments\": [\n    {\n      \"paymentMeansCode\": \"30\",\n      \"paymentId\": null,\n      \"remittanceInfo\": null,\n      \"creditAccountIban\": \"AE070260001012029678901\",\n      \"creditAccountScheme\": \"IBAN\",\n      \"creditAccountName\": null,\n      \"cardNumberLast4\": null,\n      \"cardHolderName\": null,\n      \"bankBicSwift\": null,\n      \"bankAddressLine1\": null,\n      \"bankCity\": null,\n      \"bankCountry\": null,\n      \"mandateReferenceId\": null\n    }\n  ],\n  \"terms\": [\n    {\n      \"termId\": null,\n      \"termNote\": \"60 Days from Inv. Dt.\",\n      \"termAmount\": 39375.0,\n      \"termCurrency\": \"AED\",\n      \"termInstallDate\": \"2026-09-12\"\n    }\n  ]\n}"
            },
            "url": {
              "raw": "{{baseUrl}}/external/api/v1/eInvoiceEntry/createFull",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "external",
                "api",
                "v1",
                "eInvoiceEntry",
                "createFull"
              ]
            },
            "description": "Invoice in USD. Mandatory for a non-AED invoice: exchangeRate (BTAE-04, max 6 decimals), taxCurrencyCode = AED (ibr-140-ae), vatInAccountingCurrency = taxAmount x rate (IBT-111) and totalInLocalCurrency = totalIncludingTax x rate (BTAE-20). Here 5.00 x 3.6725 = 18.36 and 105.00 x 3.6725 = 385.61."
          },
          "response": [
            {
              "name": "Success",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "X-API-KEY",
                    "value": "{{apiKey}}"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"companyId\": 20,\n  \"invoiceRef\": \"IIL-1001309\",\n\n  \"documentId\":                 \"IIL-1001309\",\n  \"issueDate\":                  \"2026-07-14\",\n  \"invoiceTypeCode\":            \"380\",\n  \"invoiceTransactionType\":     \"00000000\",\n  \"documentCurrencyCode\":       \"AED\",\n  \"noteEN\":                     \"INV\",\n  \"taxPointDate\":               null,\n  \"invoiceSupplyDate\":          null,\n  \"paymentDueDate\":             \"2026-09-12\",\n  \"orderReference\":             \"NA\",\n  \"contractDocumentReference\":  \"SIL-301358\",\n  \"originalInvoiceReference\":   \"SIL-301358\",\n  \"originalInvoiceReferenceDate\": \"2026-07-09\",\n  \"buyerReference\":             null,\n  \"invoicePeriodStartDate\":     null,\n  \"invoicePeriodEndDate\":       null,\n\n  \"sellerName\":                 \"TRONSTRIDE FZC\",\n  \"sellerVatTrn\":               \"104196887400003\",\n  \"sellerVatScheme\":            \"VAT\",\n  \"sellerRegisteredName\":       \"TRONSTRIDE FZC\",\n  \"sellerAddressLine1\":         \"BUSINESS CENTRE SHARJAH PUBLISHING CITY FREEZONE\",\n  \"sellerAddressLine2\":         \"NA\",\n  \"sellerCity\":                 \"Sharjah\",\n  \"sellerPostalZone\":           null,\n  \"sellerCountrySubdivision\":   \"SHJ\",\n  \"sellerCountryCode\":          \"AE\",\n  \"sellerTelephone\":            \"971529031765\",\n  \"sellerEmail\":                \"mohamed@tronstride.com\",\n  \"sellerPoBox\":                null,\n\n  \"buyerName\":                  \"HABIB MOHAMMAD SHARIF ABDULLA ALMULLA\",\n  \"buyerVatTrn\":                \"100711669800003\",\n  \"buyerVatScheme\":             \"VAT\",\n  \"buyerRegisteredName\":        \"HABIB MOHAMMAD SHARIF ABDULLA ALMULLA\",\n  \"buyerAddressLine1\":          \"Dubai, UAE\",\n  \"buyerAddressLine2\":          null,\n  \"buyerCity\":                  \"Dubai\",\n  \"buyerPostalZone\":            null,\n  \"buyerCountrySubdivision\":    \"DXB\",\n  \"buyerCountryCode\":           \"AE\",\n  \"buyerTelephone\":             null,\n  \"buyerEmail\":                 null,\n  \"buyerPoBox\":                 null,\n  \"buyerContact\":               null,\n\n  \"sellerLegalRegistrationId\":         \"714/2015\",\n  \"sellerLegalRegistrationType\":       \"TL\",\n  \"sellerLegalRegistrationAuthority\":  \"Dubai Economic Department\",\n  \"sellerOtherId\":                     null,\n  \"buyerLegalRegistrationId\":          null,\n  \"buyerLegalRegistrationType\":        null,\n  \"buyerLegalRegistrationAuthority\":   null,\n  \"buyerOtherId\":                      null,\n\n  \"lineExtensionTotal\":         37500.00,\n  \"docLevelDiscount\":           0.00,\n  \"docLevelCharges\":            0.00,\n  \"taxAmount\":                  1875.00,\n  \"totalIncludingTax\":          39375.00,\n  \"payableAmount\":              39375.00,\n  \"roundingAmount\":             0.00,\n\n  \"accountingCost\":             null,\n  \"specialTaxTreatment\":        null,\n  \"despatchDocRef\":             null,\n  \"receiptDocRef\":              null,\n  \"projectDocRef\":              null,\n  \"originatorDocRef\":           null,\n\n  \"prepaidAmount\":              null,\n  \"taxCurrencyCode\":            null,\n  \"vatInAccountingCurrency\":    null,\n  \"exchangeRate\":               null,\n  \"totalInLocalCurrency\":       null,\n\n  \"deliveryLocation\":           \"I & L\",\n  \"deliveryAddressLine1\":       \"P.O. BOX 3222\",\n  \"deliveryAddressLine2\":       \"SHARJAH, U.A.E.\",\n  \"deliveryAddressLine3\":       \"NA\",\n  \"deliveryCity\":               \"Sharjah\",\n  \"deliveryPostalZone\":         \"NA\",\n  \"deliveryCountrySubdivision\": \"NA\",\n  \"deliveryCountryCode\":        \"AE\",\n  \"deliverySchemeId\":           null,\n  \"deliveryPartyId\":            null,\n  \"deliveryPartyName\":          null,\n  \"deliveryIncoterms\":          null,\n\n  \"taxRepName\":                 null,\n  \"taxRepAddressLine1\":         null,\n  \"taxRepAddressLine2\":         null,\n  \"taxRepAddressLine3\":         null,\n  \"taxRepCity\":                 null,\n  \"taxRepPostalZone\":           null,\n  \"taxRepCountrySubdivision\":   null,\n  \"taxRepCountryCode\":          null,\n  \"taxRepTaxScheme\":            null,\n  \"taxRepTaxId\":                null,\n\n  \"supplierParticipantId\":      null,\n  \"customerParticipantId\":      null,\n\n  \"lines\": [\n    {\n      \"lineNumber\":            1,\n      \"itemName\":              \"Safe Oilgo\",\n      \"itemDescription\":       \"Safe Oilgo\",\n      \"sellerItemId\":          \"ILFGICS003\",\n      \"itemTypeGoodsServices\": null,\n      \"itemCountryOrigin\":     \"AE\",\n      \"quantity\":              15.0,\n      \"quantityUom\":           \"H87\",\n      \"unitPrice\":             2500.00,\n      \"priceBaseQty\":          1.0,\n      \"priceBaseQtyUom\":       \"H87\",\n      \"lineDiscountAmount\":    0,\n      \"lineDiscountPercent\":   0,\n      \"lineChargeAmount\":      0,\n      \"lineNetAmount\":         37500.00,\n      \"taxCategory\":           \"S\",\n      \"taxRatePercent\":        5.0,\n      \"taxScheme\":             \"VAT\",\n      \"lineTaxAmount\":         1875.00,\n      \"inclVatAmount\":         39375.00,\n      \"rcmCode\":               null,\n      \"accountingCost\":        null,\n      \"orderLineRef\":          null,\n      \"periodStart\":           null,\n      \"periodEnd\":             null,\n      \"vatExemptReasonCode\":   null,\n      \"vatExemptReasonText\":   null\n    }\n  ],\n\n  \"allowances\": [],\n\n  \"payments\": [\n    {\n      \"paymentMeansCode\":   \"30\",\n      \"paymentId\":          null,\n      \"remittanceInfo\":     null,\n      \"creditAccountIban\":  \"AE070260001012029678901\",\n      \"creditAccountScheme\": \"IBAN\",\n      \"creditAccountName\":  null,\n      \"cardNumberLast4\":    null,\n      \"cardHolderName\":     null,\n      \"bankBicSwift\":       null,\n      \"bankAddressLine1\":   null,\n      \"bankCity\":           null,\n      \"bankCountry\":        null,\n      \"mandateReferenceId\": null\n    }\n  ],\n\n  \"terms\": [\n    {\n      \"termId\":          null,\n      \"termNote\":        \"60 Days from Inv. Dt.\",\n      \"termAmount\":      39375.00,\n      \"termCurrency\":    \"AED\",\n      \"termInstallDate\": \"2026-09-12\"\n    }\n  ]\n}"
                },
                "url": {
                  "raw": "{{baseUrl}}/external/api/v1/eInvoiceEntry/createFull",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "external",
                    "api",
                    "v1",
                    "eInvoiceEntry",
                    "createFull"
                  ]
                },
                "description": "Creates a full e-invoice entry with lines, allowances, payments, and terms in a single JSON call.\nAll dates: yyyy-MM-dd. For taxCategory='E' the vatExemptReasonCode is mandatory ([ibr-167-ae]).\n\nPeppol routing:\n  supplierParticipantId — seller's Peppol participant ID (e.g. '0088:1234567890123')\n  customerParticipantId — buyer's Peppol participant ID (e.g. '0088:9876543210987')\n  Both fields are optional (nullable).\n\nLegal registration / other IDs (all optional):\n  sellerLegalRegistrationId / buyerLegalRegistrationId       — IBT-030 / IBT-047, e.g. trade license number\n  sellerLegalRegistrationType / buyerLegalRegistrationType   — BTAE-15 / BTAE-16, one of TL, EID, PAS, CD\n  sellerLegalRegistrationAuthority / buyerLegalRegistrationAuthority — BTAE-12/18 / BTAE-11/19: authority name when type is TL/EID/CD, or passport-issuing country when type is PAS\n  sellerOtherId / buyerOtherId — additional tax/other identifier"
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n  \"success\":           true,\n  \"invoiceRef\":        \"INV-001\",\n  \"entryId\":           1042,\n  \"documentId\":        \"INV-2024-001\",\n  \"linesCreated\":      2,\n  \"allowancesCreated\": 1,\n  \"paymentsCreated\":   1,\n  \"termsCreated\":      1\n}"
            },
            {
              "name": "Validation Error (ibr-167-ae)",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "X-API-KEY",
                    "value": "{{apiKey}}"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"companyId\": 20,\n  \"invoiceRef\": \"IIL-1001309\",\n\n  \"documentId\":                 \"IIL-1001309\",\n  \"issueDate\":                  \"2026-07-14\",\n  \"invoiceTypeCode\":            \"380\",\n  \"invoiceTransactionType\":     \"00000000\",\n  \"documentCurrencyCode\":       \"AED\",\n  \"noteEN\":                     \"INV\",\n  \"taxPointDate\":               null,\n  \"invoiceSupplyDate\":          null,\n  \"paymentDueDate\":             \"2026-09-12\",\n  \"orderReference\":             \"NA\",\n  \"contractDocumentReference\":  \"SIL-301358\",\n  \"originalInvoiceReference\":   \"SIL-301358\",\n  \"originalInvoiceReferenceDate\": \"2026-07-09\",\n  \"buyerReference\":             null,\n  \"invoicePeriodStartDate\":     null,\n  \"invoicePeriodEndDate\":       null,\n\n  \"sellerName\":                 \"TRONSTRIDE FZC\",\n  \"sellerVatTrn\":               \"104196887400003\",\n  \"sellerVatScheme\":            \"VAT\",\n  \"sellerRegisteredName\":       \"TRONSTRIDE FZC\",\n  \"sellerAddressLine1\":         \"BUSINESS CENTRE SHARJAH PUBLISHING CITY FREEZONE\",\n  \"sellerAddressLine2\":         \"NA\",\n  \"sellerCity\":                 \"Sharjah\",\n  \"sellerPostalZone\":           null,\n  \"sellerCountrySubdivision\":   \"SHJ\",\n  \"sellerCountryCode\":          \"AE\",\n  \"sellerTelephone\":            \"971529031765\",\n  \"sellerEmail\":                \"mohamed@tronstride.com\",\n  \"sellerPoBox\":                null,\n\n  \"buyerName\":                  \"HABIB MOHAMMAD SHARIF ABDULLA ALMULLA\",\n  \"buyerVatTrn\":                \"100711669800003\",\n  \"buyerVatScheme\":             \"VAT\",\n  \"buyerRegisteredName\":        \"HABIB MOHAMMAD SHARIF ABDULLA ALMULLA\",\n  \"buyerAddressLine1\":          \"Dubai, UAE\",\n  \"buyerAddressLine2\":          null,\n  \"buyerCity\":                  \"Dubai\",\n  \"buyerPostalZone\":            null,\n  \"buyerCountrySubdivision\":    \"DXB\",\n  \"buyerCountryCode\":           \"AE\",\n  \"buyerTelephone\":             null,\n  \"buyerEmail\":                 null,\n  \"buyerPoBox\":                 null,\n  \"buyerContact\":               null,\n\n  \"sellerLegalRegistrationId\":         \"714/2015\",\n  \"sellerLegalRegistrationType\":       \"TL\",\n  \"sellerLegalRegistrationAuthority\":  \"Dubai Economic Department\",\n  \"sellerOtherId\":                     null,\n  \"buyerLegalRegistrationId\":          null,\n  \"buyerLegalRegistrationType\":        null,\n  \"buyerLegalRegistrationAuthority\":   null,\n  \"buyerOtherId\":                      null,\n\n  \"lineExtensionTotal\":         37500.00,\n  \"docLevelDiscount\":           0.00,\n  \"docLevelCharges\":            0.00,\n  \"taxAmount\":                  1875.00,\n  \"totalIncludingTax\":          39375.00,\n  \"payableAmount\":              39375.00,\n  \"roundingAmount\":             0.00,\n\n  \"accountingCost\":             null,\n  \"specialTaxTreatment\":        null,\n  \"despatchDocRef\":             null,\n  \"receiptDocRef\":              null,\n  \"projectDocRef\":              null,\n  \"originatorDocRef\":           null,\n\n  \"prepaidAmount\":              null,\n  \"taxCurrencyCode\":            null,\n  \"vatInAccountingCurrency\":    null,\n  \"exchangeRate\":               null,\n  \"totalInLocalCurrency\":       null,\n\n  \"deliveryLocation\":           \"I & L\",\n  \"deliveryAddressLine1\":       \"P.O. BOX 3222\",\n  \"deliveryAddressLine2\":       \"SHARJAH, U.A.E.\",\n  \"deliveryAddressLine3\":       \"NA\",\n  \"deliveryCity\":               \"Sharjah\",\n  \"deliveryPostalZone\":         \"NA\",\n  \"deliveryCountrySubdivision\": \"NA\",\n  \"deliveryCountryCode\":        \"AE\",\n  \"deliverySchemeId\":           null,\n  \"deliveryPartyId\":            null,\n  \"deliveryPartyName\":          null,\n  \"deliveryIncoterms\":          null,\n\n  \"taxRepName\":                 null,\n  \"taxRepAddressLine1\":         null,\n  \"taxRepAddressLine2\":         null,\n  \"taxRepAddressLine3\":         null,\n  \"taxRepCity\":                 null,\n  \"taxRepPostalZone\":           null,\n  \"taxRepCountrySubdivision\":   null,\n  \"taxRepCountryCode\":          null,\n  \"taxRepTaxScheme\":            null,\n  \"taxRepTaxId\":                null,\n\n  \"supplierParticipantId\":      null,\n  \"customerParticipantId\":      null,\n\n  \"lines\": [\n    {\n      \"lineNumber\":            1,\n      \"itemName\":              \"Safe Oilgo\",\n      \"itemDescription\":       \"Safe Oilgo\",\n      \"sellerItemId\":          \"ILFGICS003\",\n      \"itemTypeGoodsServices\": null,\n      \"itemCountryOrigin\":     \"AE\",\n      \"quantity\":              15.0,\n      \"quantityUom\":           \"H87\",\n      \"unitPrice\":             2500.00,\n      \"priceBaseQty\":          1.0,\n      \"priceBaseQtyUom\":       \"H87\",\n      \"lineDiscountAmount\":    0,\n      \"lineDiscountPercent\":   0,\n      \"lineChargeAmount\":      0,\n      \"lineNetAmount\":         37500.00,\n      \"taxCategory\":           \"S\",\n      \"taxRatePercent\":        5.0,\n      \"taxScheme\":             \"VAT\",\n      \"lineTaxAmount\":         1875.00,\n      \"inclVatAmount\":         39375.00,\n      \"rcmCode\":               null,\n      \"accountingCost\":        null,\n      \"orderLineRef\":          null,\n      \"periodStart\":           null,\n      \"periodEnd\":             null,\n      \"vatExemptReasonCode\":   null,\n      \"vatExemptReasonText\":   null\n    }\n  ],\n\n  \"allowances\": [],\n\n  \"payments\": [\n    {\n      \"paymentMeansCode\":   \"30\",\n      \"paymentId\":          null,\n      \"remittanceInfo\":     null,\n      \"creditAccountIban\":  \"AE070260001012029678901\",\n      \"creditAccountScheme\": \"IBAN\",\n      \"creditAccountName\":  null,\n      \"cardNumberLast4\":    null,\n      \"cardHolderName\":     null,\n      \"bankBicSwift\":       null,\n      \"bankAddressLine1\":   null,\n      \"bankCity\":           null,\n      \"bankCountry\":        null,\n      \"mandateReferenceId\": null\n    }\n  ],\n\n  \"terms\": [\n    {\n      \"termId\":          null,\n      \"termNote\":        \"60 Days from Inv. Dt.\",\n      \"termAmount\":      39375.00,\n      \"termCurrency\":    \"AED\",\n      \"termInstallDate\": \"2026-09-12\"\n    }\n  ]\n}"
                },
                "url": {
                  "raw": "{{baseUrl}}/external/api/v1/eInvoiceEntry/createFull",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "external",
                    "api",
                    "v1",
                    "eInvoiceEntry",
                    "createFull"
                  ]
                },
                "description": "Creates a full e-invoice entry with lines, allowances, payments, and terms in a single JSON call.\nAll dates: yyyy-MM-dd. For taxCategory='E' the vatExemptReasonCode is mandatory ([ibr-167-ae]).\n\nPeppol routing:\n  supplierParticipantId — seller's Peppol participant ID (e.g. '0088:1234567890123')\n  customerParticipantId — buyer's Peppol participant ID (e.g. '0088:9876543210987')\n  Both fields are optional (nullable).\n\nLegal registration / other IDs (all optional):\n  sellerLegalRegistrationId / buyerLegalRegistrationId       — IBT-030 / IBT-047, e.g. trade license number\n  sellerLegalRegistrationType / buyerLegalRegistrationType   — BTAE-15 / BTAE-16, one of TL, EID, PAS, CD\n  sellerLegalRegistrationAuthority / buyerLegalRegistrationAuthority — BTAE-12/18 / BTAE-11/19: authority name when type is TL/EID/CD, or passport-issuing country when type is PAS\n  sellerOtherId / buyerOtherId — additional tax/other identifier"
              },
              "status": "Bad Request",
              "code": 400,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n  \"success\": false,\n  \"error\": \"[ibr-167-ae] Line 1: vatExemptReasonCode is mandatory when taxCategory is 'E'.\"\n}"
            },
            {
              "name": "Unauthorized",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "X-API-KEY",
                    "value": "{{apiKey}}"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"companyId\": 20,\n  \"invoiceRef\": \"IIL-1001309\",\n\n  \"documentId\":                 \"IIL-1001309\",\n  \"issueDate\":                  \"2026-07-14\",\n  \"invoiceTypeCode\":            \"380\",\n  \"invoiceTransactionType\":     \"00000000\",\n  \"documentCurrencyCode\":       \"AED\",\n  \"noteEN\":                     \"INV\",\n  \"taxPointDate\":               null,\n  \"invoiceSupplyDate\":          null,\n  \"paymentDueDate\":             \"2026-09-12\",\n  \"orderReference\":             \"NA\",\n  \"contractDocumentReference\":  \"SIL-301358\",\n  \"originalInvoiceReference\":   \"SIL-301358\",\n  \"originalInvoiceReferenceDate\": \"2026-07-09\",\n  \"buyerReference\":             null,\n  \"invoicePeriodStartDate\":     null,\n  \"invoicePeriodEndDate\":       null,\n\n  \"sellerName\":                 \"TRONSTRIDE FZC\",\n  \"sellerVatTrn\":               \"104196887400003\",\n  \"sellerVatScheme\":            \"VAT\",\n  \"sellerRegisteredName\":       \"TRONSTRIDE FZC\",\n  \"sellerAddressLine1\":         \"BUSINESS CENTRE SHARJAH PUBLISHING CITY FREEZONE\",\n  \"sellerAddressLine2\":         \"NA\",\n  \"sellerCity\":                 \"Sharjah\",\n  \"sellerPostalZone\":           null,\n  \"sellerCountrySubdivision\":   \"SHJ\",\n  \"sellerCountryCode\":          \"AE\",\n  \"sellerTelephone\":            \"971529031765\",\n  \"sellerEmail\":                \"mohamed@tronstride.com\",\n  \"sellerPoBox\":                null,\n\n  \"buyerName\":                  \"HABIB MOHAMMAD SHARIF ABDULLA ALMULLA\",\n  \"buyerVatTrn\":                \"100711669800003\",\n  \"buyerVatScheme\":             \"VAT\",\n  \"buyerRegisteredName\":        \"HABIB MOHAMMAD SHARIF ABDULLA ALMULLA\",\n  \"buyerAddressLine1\":          \"Dubai, UAE\",\n  \"buyerAddressLine2\":          null,\n  \"buyerCity\":                  \"Dubai\",\n  \"buyerPostalZone\":            null,\n  \"buyerCountrySubdivision\":    \"DXB\",\n  \"buyerCountryCode\":           \"AE\",\n  \"buyerTelephone\":             null,\n  \"buyerEmail\":                 null,\n  \"buyerPoBox\":                 null,\n  \"buyerContact\":               null,\n\n  \"sellerLegalRegistrationId\":         \"714/2015\",\n  \"sellerLegalRegistrationType\":       \"TL\",\n  \"sellerLegalRegistrationAuthority\":  \"Dubai Economic Department\",\n  \"sellerOtherId\":                     null,\n  \"buyerLegalRegistrationId\":          null,\n  \"buyerLegalRegistrationType\":        null,\n  \"buyerLegalRegistrationAuthority\":   null,\n  \"buyerOtherId\":                      null,\n\n  \"lineExtensionTotal\":         37500.00,\n  \"docLevelDiscount\":           0.00,\n  \"docLevelCharges\":            0.00,\n  \"taxAmount\":                  1875.00,\n  \"totalIncludingTax\":          39375.00,\n  \"payableAmount\":              39375.00,\n  \"roundingAmount\":             0.00,\n\n  \"accountingCost\":             null,\n  \"specialTaxTreatment\":        null,\n  \"despatchDocRef\":             null,\n  \"receiptDocRef\":              null,\n  \"projectDocRef\":              null,\n  \"originatorDocRef\":           null,\n\n  \"prepaidAmount\":              null,\n  \"taxCurrencyCode\":            null,\n  \"vatInAccountingCurrency\":    null,\n  \"exchangeRate\":               null,\n  \"totalInLocalCurrency\":       null,\n\n  \"deliveryLocation\":           \"I & L\",\n  \"deliveryAddressLine1\":       \"P.O. BOX 3222\",\n  \"deliveryAddressLine2\":       \"SHARJAH, U.A.E.\",\n  \"deliveryAddressLine3\":       \"NA\",\n  \"deliveryCity\":               \"Sharjah\",\n  \"deliveryPostalZone\":         \"NA\",\n  \"deliveryCountrySubdivision\": \"NA\",\n  \"deliveryCountryCode\":        \"AE\",\n  \"deliverySchemeId\":           null,\n  \"deliveryPartyId\":            null,\n  \"deliveryPartyName\":          null,\n  \"deliveryIncoterms\":          null,\n\n  \"taxRepName\":                 null,\n  \"taxRepAddressLine1\":         null,\n  \"taxRepAddressLine2\":         null,\n  \"taxRepAddressLine3\":         null,\n  \"taxRepCity\":                 null,\n  \"taxRepPostalZone\":           null,\n  \"taxRepCountrySubdivision\":   null,\n  \"taxRepCountryCode\":          null,\n  \"taxRepTaxScheme\":            null,\n  \"taxRepTaxId\":                null,\n\n  \"supplierParticipantId\":      null,\n  \"customerParticipantId\":      null,\n\n  \"lines\": [\n    {\n      \"lineNumber\":            1,\n      \"itemName\":              \"Safe Oilgo\",\n      \"itemDescription\":       \"Safe Oilgo\",\n      \"sellerItemId\":          \"ILFGICS003\",\n      \"itemTypeGoodsServices\": null,\n      \"itemCountryOrigin\":     \"AE\",\n      \"quantity\":              15.0,\n      \"quantityUom\":           \"H87\",\n      \"unitPrice\":             2500.00,\n      \"priceBaseQty\":          1.0,\n      \"priceBaseQtyUom\":       \"H87\",\n      \"lineDiscountAmount\":    0,\n      \"lineDiscountPercent\":   0,\n      \"lineChargeAmount\":      0,\n      \"lineNetAmount\":         37500.00,\n      \"taxCategory\":           \"S\",\n      \"taxRatePercent\":        5.0,\n      \"taxScheme\":             \"VAT\",\n      \"lineTaxAmount\":         1875.00,\n      \"inclVatAmount\":         39375.00,\n      \"rcmCode\":               null,\n      \"accountingCost\":        null,\n      \"orderLineRef\":          null,\n      \"periodStart\":           null,\n      \"periodEnd\":             null,\n      \"vatExemptReasonCode\":   null,\n      \"vatExemptReasonText\":   null\n    }\n  ],\n\n  \"allowances\": [],\n\n  \"payments\": [\n    {\n      \"paymentMeansCode\":   \"30\",\n      \"paymentId\":          null,\n      \"remittanceInfo\":     null,\n      \"creditAccountIban\":  \"AE070260001012029678901\",\n      \"creditAccountScheme\": \"IBAN\",\n      \"creditAccountName\":  null,\n      \"cardNumberLast4\":    null,\n      \"cardHolderName\":     null,\n      \"bankBicSwift\":       null,\n      \"bankAddressLine1\":   null,\n      \"bankCity\":           null,\n      \"bankCountry\":        null,\n      \"mandateReferenceId\": null\n    }\n  ],\n\n  \"terms\": [\n    {\n      \"termId\":          null,\n      \"termNote\":        \"60 Days from Inv. Dt.\",\n      \"termAmount\":      39375.00,\n      \"termCurrency\":    \"AED\",\n      \"termInstallDate\": \"2026-09-12\"\n    }\n  ]\n}"
                },
                "url": {
                  "raw": "{{baseUrl}}/external/api/v1/eInvoiceEntry/createFull",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "external",
                    "api",
                    "v1",
                    "eInvoiceEntry",
                    "createFull"
                  ]
                },
                "description": "Creates a full e-invoice entry with lines, allowances, payments, and terms in a single JSON call.\nAll dates: yyyy-MM-dd. For taxCategory='E' the vatExemptReasonCode is mandatory ([ibr-167-ae]).\n\nPeppol routing:\n  supplierParticipantId — seller's Peppol participant ID (e.g. '0088:1234567890123')\n  customerParticipantId — buyer's Peppol participant ID (e.g. '0088:9876543210987')\n  Both fields are optional (nullable).\n\nLegal registration / other IDs (all optional):\n  sellerLegalRegistrationId / buyerLegalRegistrationId       — IBT-030 / IBT-047, e.g. trade license number\n  sellerLegalRegistrationType / buyerLegalRegistrationType   — BTAE-15 / BTAE-16, one of TL, EID, PAS, CD\n  sellerLegalRegistrationAuthority / buyerLegalRegistrationAuthority — BTAE-12/18 / BTAE-11/19: authority name when type is TL/EID/CD, or passport-issuing country when type is PAS\n  sellerOtherId / buyerOtherId — additional tax/other identifier"
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n  \"errorKey\": \"API key missing\"\n}"
            }
          ],
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test(\"HTTP 200\", () => pm.response.to.have.status(200));",
                  "const j = pm.response.json();",
                  "pm.test(\"success = true (else see errorKey / error)\", () => pm.expect(j.success, JSON.stringify(j)).to.be.true);",
                  "pm.test(\"entry created or overwritten\", () => pm.expect([\"CREATED\", \"OVERWRITTEN\"]).to.include(j.status));",
                  "if (j.entryId) { pm.collectionVariables.set(\"entryId\", String(j.entryId)); console.log(\"entryId =\", j.entryId, \"documentId =\", j.documentId); }"
                ]
              }
            }
          ]
        },
        {
          "name": "3.2 Seller registered for Corporate Tax only (480, TIN, no TRN)",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "X-API-KEY",
                "value": "{{apiKey}}"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"companyId\": 20,\n  \"invoiceRef\": \"IIL-OOS-0001\",\n  \"documentId\": \"IIL-OOS-0001\",\n  \"issueDate\": \"2026-07-14\",\n  \"invoiceTypeCode\": \"480\",\n  \"invoiceTransactionType\": \"00000000\",\n  \"documentCurrencyCode\": \"AED\",\n  \"noteEN\": \"INV\",\n  \"taxPointDate\": null,\n  \"invoiceSupplyDate\": null,\n  \"paymentDueDate\": \"2026-09-12\",\n  \"orderReference\": \"NA\",\n  \"contractDocumentReference\": \"SIL-301358\",\n  \"originalInvoiceReference\": \"SIL-301358\",\n  \"originalInvoiceReferenceDate\": \"2026-07-09\",\n  \"buyerReference\": null,\n  \"invoicePeriodStartDate\": null,\n  \"invoicePeriodEndDate\": null,\n  \"sellerName\": \"TRONSTRIDE FZC\",\n  \"sellerVatTrn\": null,\n  \"sellerVatScheme\": null,\n  \"sellerRegisteredName\": \"TRONSTRIDE FZC\",\n  \"sellerAddressLine1\": \"BUSINESS CENTRE SHARJAH PUBLISHING CITY FREEZONE\",\n  \"sellerAddressLine2\": \"NA\",\n  \"sellerCity\": \"Sharjah\",\n  \"sellerPostalZone\": null,\n  \"sellerCountrySubdivision\": \"SHJ\",\n  \"sellerCountryCode\": \"AE\",\n  \"sellerTelephone\": \"971529031765\",\n  \"sellerEmail\": \"mohamed@tronstride.com\",\n  \"sellerPoBox\": null,\n  \"buyerName\": \"HABIB MOHAMMAD SHARIF ABDULLA ALMULLA\",\n  \"buyerVatTrn\": \"100711669800003\",\n  \"buyerVatScheme\": \"VAT\",\n  \"buyerRegisteredName\": \"HABIB MOHAMMAD SHARIF ABDULLA ALMULLA\",\n  \"buyerAddressLine1\": \"Dubai, UAE\",\n  \"buyerAddressLine2\": null,\n  \"buyerCity\": \"Dubai\",\n  \"buyerPostalZone\": null,\n  \"buyerCountrySubdivision\": \"DXB\",\n  \"buyerCountryCode\": \"AE\",\n  \"buyerTelephone\": null,\n  \"buyerEmail\": null,\n  \"buyerPoBox\": null,\n  \"buyerContact\": null,\n  \"sellerLegalRegistrationId\": \"714/2015\",\n  \"sellerLegalRegistrationType\": \"TL\",\n  \"sellerLegalRegistrationAuthority\": \"Dubai Economic Department\",\n  \"sellerOtherId\": \"1041968874\",\n  \"buyerLegalRegistrationId\": \"CN-7654321\",\n  \"buyerLegalRegistrationType\": \"TL\",\n  \"buyerLegalRegistrationAuthority\": \"Dubai Economic Department\",\n  \"buyerOtherId\": null,\n  \"lineExtensionTotal\": 100.0,\n  \"docLevelDiscount\": 0,\n  \"docLevelCharges\": 0,\n  \"taxAmount\": 0,\n  \"totalIncludingTax\": 100.0,\n  \"payableAmount\": 100.0,\n  \"roundingAmount\": 0,\n  \"accountingCost\": null,\n  \"specialTaxTreatment\": null,\n  \"despatchDocRef\": null,\n  \"receiptDocRef\": null,\n  \"projectDocRef\": null,\n  \"originatorDocRef\": null,\n  \"prepaidAmount\": null,\n  \"taxCurrencyCode\": null,\n  \"vatInAccountingCurrency\": null,\n  \"exchangeRate\": null,\n  \"totalInLocalCurrency\": null,\n  \"deliveryLocation\": \"I & L\",\n  \"deliveryAddressLine1\": \"P.O. BOX 3222\",\n  \"deliveryAddressLine2\": \"SHARJAH, U.A.E.\",\n  \"deliveryAddressLine3\": \"NA\",\n  \"deliveryCity\": \"Sharjah\",\n  \"deliveryPostalZone\": \"NA\",\n  \"deliveryCountrySubdivision\": \"NA\",\n  \"deliveryCountryCode\": \"AE\",\n  \"deliverySchemeId\": null,\n  \"deliveryPartyId\": null,\n  \"deliveryPartyName\": null,\n  \"deliveryIncoterms\": null,\n  \"taxRepName\": null,\n  \"taxRepAddressLine1\": null,\n  \"taxRepAddressLine2\": null,\n  \"taxRepAddressLine3\": null,\n  \"taxRepCity\": null,\n  \"taxRepPostalZone\": null,\n  \"taxRepCountrySubdivision\": null,\n  \"taxRepCountryCode\": null,\n  \"taxRepTaxScheme\": null,\n  \"taxRepTaxId\": null,\n  \"supplierParticipantId\": null,\n  \"customerParticipantId\": null,\n  \"lines\": [\n    {\n      \"lineNumber\": 1,\n      \"itemName\": \"Out-of-scope service\",\n      \"itemDescription\": \"Out-of-scope service\",\n      \"quantity\": 1,\n      \"quantityUom\": \"EA\",\n      \"unitPrice\": 100.0,\n      \"lineNetAmount\": 100.0,\n      \"taxCategory\": \"O\",\n      \"taxRatePercent\": 0,\n      \"lineTaxAmount\": 0,\n      \"inclVatAmount\": 100.0\n    }\n  ],\n  \"allowances\": [],\n  \"payments\": [\n    {\n      \"paymentMeansCode\": \"30\",\n      \"paymentId\": null,\n      \"remittanceInfo\": null,\n      \"creditAccountIban\": \"AE070260001012029678901\",\n      \"creditAccountScheme\": \"IBAN\",\n      \"creditAccountName\": null,\n      \"cardNumberLast4\": null,\n      \"cardHolderName\": null,\n      \"bankBicSwift\": null,\n      \"bankAddressLine1\": null,\n      \"bankCity\": null,\n      \"bankCountry\": null,\n      \"mandateReferenceId\": null\n    }\n  ],\n  \"terms\": [\n    {\n      \"termId\": null,\n      \"termNote\": \"60 Days from Inv. Dt.\",\n      \"termAmount\": 39375.0,\n      \"termCurrency\": \"AED\",\n      \"termInstallDate\": \"2026-09-12\"\n    }\n  ]\n}"
            },
            "url": {
              "raw": "{{baseUrl}}/external/api/v1/eInvoiceEntry/createFull",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "external",
                "api",
                "v1",
                "eInvoiceEntry",
                "createFull"
              ]
            },
            "description": "A seller without a VAT TRN cannot issue a 380 (ibr-134-ae). Use invoice type 480 (or 81 for a credit note), give the Corporate Tax registration number as sellerOtherId (Seller TIN, IBT-032), the buyer legal registration ID (IBT-047, ibr-136-ae) and only tax categories E / O / Z (ibr-122-ae). sellerVatTrn stays empty."
          },
          "response": [
            {
              "name": "Success",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "X-API-KEY",
                    "value": "{{apiKey}}"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"companyId\": 20,\n  \"invoiceRef\": \"IIL-1001309\",\n\n  \"documentId\":                 \"IIL-1001309\",\n  \"issueDate\":                  \"2026-07-14\",\n  \"invoiceTypeCode\":            \"380\",\n  \"invoiceTransactionType\":     \"00000000\",\n  \"documentCurrencyCode\":       \"AED\",\n  \"noteEN\":                     \"INV\",\n  \"taxPointDate\":               null,\n  \"invoiceSupplyDate\":          null,\n  \"paymentDueDate\":             \"2026-09-12\",\n  \"orderReference\":             \"NA\",\n  \"contractDocumentReference\":  \"SIL-301358\",\n  \"originalInvoiceReference\":   \"SIL-301358\",\n  \"originalInvoiceReferenceDate\": \"2026-07-09\",\n  \"buyerReference\":             null,\n  \"invoicePeriodStartDate\":     null,\n  \"invoicePeriodEndDate\":       null,\n\n  \"sellerName\":                 \"TRONSTRIDE FZC\",\n  \"sellerVatTrn\":               \"104196887400003\",\n  \"sellerVatScheme\":            \"VAT\",\n  \"sellerRegisteredName\":       \"TRONSTRIDE FZC\",\n  \"sellerAddressLine1\":         \"BUSINESS CENTRE SHARJAH PUBLISHING CITY FREEZONE\",\n  \"sellerAddressLine2\":         \"NA\",\n  \"sellerCity\":                 \"Sharjah\",\n  \"sellerPostalZone\":           null,\n  \"sellerCountrySubdivision\":   \"SHJ\",\n  \"sellerCountryCode\":          \"AE\",\n  \"sellerTelephone\":            \"971529031765\",\n  \"sellerEmail\":                \"mohamed@tronstride.com\",\n  \"sellerPoBox\":                null,\n\n  \"buyerName\":                  \"HABIB MOHAMMAD SHARIF ABDULLA ALMULLA\",\n  \"buyerVatTrn\":                \"100711669800003\",\n  \"buyerVatScheme\":             \"VAT\",\n  \"buyerRegisteredName\":        \"HABIB MOHAMMAD SHARIF ABDULLA ALMULLA\",\n  \"buyerAddressLine1\":          \"Dubai, UAE\",\n  \"buyerAddressLine2\":          null,\n  \"buyerCity\":                  \"Dubai\",\n  \"buyerPostalZone\":            null,\n  \"buyerCountrySubdivision\":    \"DXB\",\n  \"buyerCountryCode\":           \"AE\",\n  \"buyerTelephone\":             null,\n  \"buyerEmail\":                 null,\n  \"buyerPoBox\":                 null,\n  \"buyerContact\":               null,\n\n  \"sellerLegalRegistrationId\":         \"714/2015\",\n  \"sellerLegalRegistrationType\":       \"TL\",\n  \"sellerLegalRegistrationAuthority\":  \"Dubai Economic Department\",\n  \"sellerOtherId\":                     null,\n  \"buyerLegalRegistrationId\":          null,\n  \"buyerLegalRegistrationType\":        null,\n  \"buyerLegalRegistrationAuthority\":   null,\n  \"buyerOtherId\":                      null,\n\n  \"lineExtensionTotal\":         37500.00,\n  \"docLevelDiscount\":           0.00,\n  \"docLevelCharges\":            0.00,\n  \"taxAmount\":                  1875.00,\n  \"totalIncludingTax\":          39375.00,\n  \"payableAmount\":              39375.00,\n  \"roundingAmount\":             0.00,\n\n  \"accountingCost\":             null,\n  \"specialTaxTreatment\":        null,\n  \"despatchDocRef\":             null,\n  \"receiptDocRef\":              null,\n  \"projectDocRef\":              null,\n  \"originatorDocRef\":           null,\n\n  \"prepaidAmount\":              null,\n  \"taxCurrencyCode\":            null,\n  \"vatInAccountingCurrency\":    null,\n  \"exchangeRate\":               null,\n  \"totalInLocalCurrency\":       null,\n\n  \"deliveryLocation\":           \"I & L\",\n  \"deliveryAddressLine1\":       \"P.O. BOX 3222\",\n  \"deliveryAddressLine2\":       \"SHARJAH, U.A.E.\",\n  \"deliveryAddressLine3\":       \"NA\",\n  \"deliveryCity\":               \"Sharjah\",\n  \"deliveryPostalZone\":         \"NA\",\n  \"deliveryCountrySubdivision\": \"NA\",\n  \"deliveryCountryCode\":        \"AE\",\n  \"deliverySchemeId\":           null,\n  \"deliveryPartyId\":            null,\n  \"deliveryPartyName\":          null,\n  \"deliveryIncoterms\":          null,\n\n  \"taxRepName\":                 null,\n  \"taxRepAddressLine1\":         null,\n  \"taxRepAddressLine2\":         null,\n  \"taxRepAddressLine3\":         null,\n  \"taxRepCity\":                 null,\n  \"taxRepPostalZone\":           null,\n  \"taxRepCountrySubdivision\":   null,\n  \"taxRepCountryCode\":          null,\n  \"taxRepTaxScheme\":            null,\n  \"taxRepTaxId\":                null,\n\n  \"supplierParticipantId\":      null,\n  \"customerParticipantId\":      null,\n\n  \"lines\": [\n    {\n      \"lineNumber\":            1,\n      \"itemName\":              \"Safe Oilgo\",\n      \"itemDescription\":       \"Safe Oilgo\",\n      \"sellerItemId\":          \"ILFGICS003\",\n      \"itemTypeGoodsServices\": null,\n      \"itemCountryOrigin\":     \"AE\",\n      \"quantity\":              15.0,\n      \"quantityUom\":           \"H87\",\n      \"unitPrice\":             2500.00,\n      \"priceBaseQty\":          1.0,\n      \"priceBaseQtyUom\":       \"H87\",\n      \"lineDiscountAmount\":    0,\n      \"lineDiscountPercent\":   0,\n      \"lineChargeAmount\":      0,\n      \"lineNetAmount\":         37500.00,\n      \"taxCategory\":           \"S\",\n      \"taxRatePercent\":        5.0,\n      \"taxScheme\":             \"VAT\",\n      \"lineTaxAmount\":         1875.00,\n      \"inclVatAmount\":         39375.00,\n      \"rcmCode\":               null,\n      \"accountingCost\":        null,\n      \"orderLineRef\":          null,\n      \"periodStart\":           null,\n      \"periodEnd\":             null,\n      \"vatExemptReasonCode\":   null,\n      \"vatExemptReasonText\":   null\n    }\n  ],\n\n  \"allowances\": [],\n\n  \"payments\": [\n    {\n      \"paymentMeansCode\":   \"30\",\n      \"paymentId\":          null,\n      \"remittanceInfo\":     null,\n      \"creditAccountIban\":  \"AE070260001012029678901\",\n      \"creditAccountScheme\": \"IBAN\",\n      \"creditAccountName\":  null,\n      \"cardNumberLast4\":    null,\n      \"cardHolderName\":     null,\n      \"bankBicSwift\":       null,\n      \"bankAddressLine1\":   null,\n      \"bankCity\":           null,\n      \"bankCountry\":        null,\n      \"mandateReferenceId\": null\n    }\n  ],\n\n  \"terms\": [\n    {\n      \"termId\":          null,\n      \"termNote\":        \"60 Days from Inv. Dt.\",\n      \"termAmount\":      39375.00,\n      \"termCurrency\":    \"AED\",\n      \"termInstallDate\": \"2026-09-12\"\n    }\n  ]\n}"
                },
                "url": {
                  "raw": "{{baseUrl}}/external/api/v1/eInvoiceEntry/createFull",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "external",
                    "api",
                    "v1",
                    "eInvoiceEntry",
                    "createFull"
                  ]
                },
                "description": "Creates a full e-invoice entry with lines, allowances, payments, and terms in a single JSON call.\nAll dates: yyyy-MM-dd. For taxCategory='E' the vatExemptReasonCode is mandatory ([ibr-167-ae]).\n\nPeppol routing:\n  supplierParticipantId — seller's Peppol participant ID (e.g. '0088:1234567890123')\n  customerParticipantId — buyer's Peppol participant ID (e.g. '0088:9876543210987')\n  Both fields are optional (nullable).\n\nLegal registration / other IDs (all optional):\n  sellerLegalRegistrationId / buyerLegalRegistrationId       — IBT-030 / IBT-047, e.g. trade license number\n  sellerLegalRegistrationType / buyerLegalRegistrationType   — BTAE-15 / BTAE-16, one of TL, EID, PAS, CD\n  sellerLegalRegistrationAuthority / buyerLegalRegistrationAuthority — BTAE-12/18 / BTAE-11/19: authority name when type is TL/EID/CD, or passport-issuing country when type is PAS\n  sellerOtherId / buyerOtherId — additional tax/other identifier"
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n  \"success\":           true,\n  \"invoiceRef\":        \"INV-001\",\n  \"entryId\":           1042,\n  \"documentId\":        \"INV-2024-001\",\n  \"linesCreated\":      2,\n  \"allowancesCreated\": 1,\n  \"paymentsCreated\":   1,\n  \"termsCreated\":      1\n}"
            },
            {
              "name": "Validation Error (ibr-167-ae)",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "X-API-KEY",
                    "value": "{{apiKey}}"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"companyId\": 20,\n  \"invoiceRef\": \"IIL-1001309\",\n\n  \"documentId\":                 \"IIL-1001309\",\n  \"issueDate\":                  \"2026-07-14\",\n  \"invoiceTypeCode\":            \"380\",\n  \"invoiceTransactionType\":     \"00000000\",\n  \"documentCurrencyCode\":       \"AED\",\n  \"noteEN\":                     \"INV\",\n  \"taxPointDate\":               null,\n  \"invoiceSupplyDate\":          null,\n  \"paymentDueDate\":             \"2026-09-12\",\n  \"orderReference\":             \"NA\",\n  \"contractDocumentReference\":  \"SIL-301358\",\n  \"originalInvoiceReference\":   \"SIL-301358\",\n  \"originalInvoiceReferenceDate\": \"2026-07-09\",\n  \"buyerReference\":             null,\n  \"invoicePeriodStartDate\":     null,\n  \"invoicePeriodEndDate\":       null,\n\n  \"sellerName\":                 \"TRONSTRIDE FZC\",\n  \"sellerVatTrn\":               \"104196887400003\",\n  \"sellerVatScheme\":            \"VAT\",\n  \"sellerRegisteredName\":       \"TRONSTRIDE FZC\",\n  \"sellerAddressLine1\":         \"BUSINESS CENTRE SHARJAH PUBLISHING CITY FREEZONE\",\n  \"sellerAddressLine2\":         \"NA\",\n  \"sellerCity\":                 \"Sharjah\",\n  \"sellerPostalZone\":           null,\n  \"sellerCountrySubdivision\":   \"SHJ\",\n  \"sellerCountryCode\":          \"AE\",\n  \"sellerTelephone\":            \"971529031765\",\n  \"sellerEmail\":                \"mohamed@tronstride.com\",\n  \"sellerPoBox\":                null,\n\n  \"buyerName\":                  \"HABIB MOHAMMAD SHARIF ABDULLA ALMULLA\",\n  \"buyerVatTrn\":                \"100711669800003\",\n  \"buyerVatScheme\":             \"VAT\",\n  \"buyerRegisteredName\":        \"HABIB MOHAMMAD SHARIF ABDULLA ALMULLA\",\n  \"buyerAddressLine1\":          \"Dubai, UAE\",\n  \"buyerAddressLine2\":          null,\n  \"buyerCity\":                  \"Dubai\",\n  \"buyerPostalZone\":            null,\n  \"buyerCountrySubdivision\":    \"DXB\",\n  \"buyerCountryCode\":           \"AE\",\n  \"buyerTelephone\":             null,\n  \"buyerEmail\":                 null,\n  \"buyerPoBox\":                 null,\n  \"buyerContact\":               null,\n\n  \"sellerLegalRegistrationId\":         \"714/2015\",\n  \"sellerLegalRegistrationType\":       \"TL\",\n  \"sellerLegalRegistrationAuthority\":  \"Dubai Economic Department\",\n  \"sellerOtherId\":                     null,\n  \"buyerLegalRegistrationId\":          null,\n  \"buyerLegalRegistrationType\":        null,\n  \"buyerLegalRegistrationAuthority\":   null,\n  \"buyerOtherId\":                      null,\n\n  \"lineExtensionTotal\":         37500.00,\n  \"docLevelDiscount\":           0.00,\n  \"docLevelCharges\":            0.00,\n  \"taxAmount\":                  1875.00,\n  \"totalIncludingTax\":          39375.00,\n  \"payableAmount\":              39375.00,\n  \"roundingAmount\":             0.00,\n\n  \"accountingCost\":             null,\n  \"specialTaxTreatment\":        null,\n  \"despatchDocRef\":             null,\n  \"receiptDocRef\":              null,\n  \"projectDocRef\":              null,\n  \"originatorDocRef\":           null,\n\n  \"prepaidAmount\":              null,\n  \"taxCurrencyCode\":            null,\n  \"vatInAccountingCurrency\":    null,\n  \"exchangeRate\":               null,\n  \"totalInLocalCurrency\":       null,\n\n  \"deliveryLocation\":           \"I & L\",\n  \"deliveryAddressLine1\":       \"P.O. BOX 3222\",\n  \"deliveryAddressLine2\":       \"SHARJAH, U.A.E.\",\n  \"deliveryAddressLine3\":       \"NA\",\n  \"deliveryCity\":               \"Sharjah\",\n  \"deliveryPostalZone\":         \"NA\",\n  \"deliveryCountrySubdivision\": \"NA\",\n  \"deliveryCountryCode\":        \"AE\",\n  \"deliverySchemeId\":           null,\n  \"deliveryPartyId\":            null,\n  \"deliveryPartyName\":          null,\n  \"deliveryIncoterms\":          null,\n\n  \"taxRepName\":                 null,\n  \"taxRepAddressLine1\":         null,\n  \"taxRepAddressLine2\":         null,\n  \"taxRepAddressLine3\":         null,\n  \"taxRepCity\":                 null,\n  \"taxRepPostalZone\":           null,\n  \"taxRepCountrySubdivision\":   null,\n  \"taxRepCountryCode\":          null,\n  \"taxRepTaxScheme\":            null,\n  \"taxRepTaxId\":                null,\n\n  \"supplierParticipantId\":      null,\n  \"customerParticipantId\":      null,\n\n  \"lines\": [\n    {\n      \"lineNumber\":            1,\n      \"itemName\":              \"Safe Oilgo\",\n      \"itemDescription\":       \"Safe Oilgo\",\n      \"sellerItemId\":          \"ILFGICS003\",\n      \"itemTypeGoodsServices\": null,\n      \"itemCountryOrigin\":     \"AE\",\n      \"quantity\":              15.0,\n      \"quantityUom\":           \"H87\",\n      \"unitPrice\":             2500.00,\n      \"priceBaseQty\":          1.0,\n      \"priceBaseQtyUom\":       \"H87\",\n      \"lineDiscountAmount\":    0,\n      \"lineDiscountPercent\":   0,\n      \"lineChargeAmount\":      0,\n      \"lineNetAmount\":         37500.00,\n      \"taxCategory\":           \"S\",\n      \"taxRatePercent\":        5.0,\n      \"taxScheme\":             \"VAT\",\n      \"lineTaxAmount\":         1875.00,\n      \"inclVatAmount\":         39375.00,\n      \"rcmCode\":               null,\n      \"accountingCost\":        null,\n      \"orderLineRef\":          null,\n      \"periodStart\":           null,\n      \"periodEnd\":             null,\n      \"vatExemptReasonCode\":   null,\n      \"vatExemptReasonText\":   null\n    }\n  ],\n\n  \"allowances\": [],\n\n  \"payments\": [\n    {\n      \"paymentMeansCode\":   \"30\",\n      \"paymentId\":          null,\n      \"remittanceInfo\":     null,\n      \"creditAccountIban\":  \"AE070260001012029678901\",\n      \"creditAccountScheme\": \"IBAN\",\n      \"creditAccountName\":  null,\n      \"cardNumberLast4\":    null,\n      \"cardHolderName\":     null,\n      \"bankBicSwift\":       null,\n      \"bankAddressLine1\":   null,\n      \"bankCity\":           null,\n      \"bankCountry\":        null,\n      \"mandateReferenceId\": null\n    }\n  ],\n\n  \"terms\": [\n    {\n      \"termId\":          null,\n      \"termNote\":        \"60 Days from Inv. Dt.\",\n      \"termAmount\":      39375.00,\n      \"termCurrency\":    \"AED\",\n      \"termInstallDate\": \"2026-09-12\"\n    }\n  ]\n}"
                },
                "url": {
                  "raw": "{{baseUrl}}/external/api/v1/eInvoiceEntry/createFull",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "external",
                    "api",
                    "v1",
                    "eInvoiceEntry",
                    "createFull"
                  ]
                },
                "description": "Creates a full e-invoice entry with lines, allowances, payments, and terms in a single JSON call.\nAll dates: yyyy-MM-dd. For taxCategory='E' the vatExemptReasonCode is mandatory ([ibr-167-ae]).\n\nPeppol routing:\n  supplierParticipantId — seller's Peppol participant ID (e.g. '0088:1234567890123')\n  customerParticipantId — buyer's Peppol participant ID (e.g. '0088:9876543210987')\n  Both fields are optional (nullable).\n\nLegal registration / other IDs (all optional):\n  sellerLegalRegistrationId / buyerLegalRegistrationId       — IBT-030 / IBT-047, e.g. trade license number\n  sellerLegalRegistrationType / buyerLegalRegistrationType   — BTAE-15 / BTAE-16, one of TL, EID, PAS, CD\n  sellerLegalRegistrationAuthority / buyerLegalRegistrationAuthority — BTAE-12/18 / BTAE-11/19: authority name when type is TL/EID/CD, or passport-issuing country when type is PAS\n  sellerOtherId / buyerOtherId — additional tax/other identifier"
              },
              "status": "Bad Request",
              "code": 400,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n  \"success\": false,\n  \"error\": \"[ibr-167-ae] Line 1: vatExemptReasonCode is mandatory when taxCategory is 'E'.\"\n}"
            },
            {
              "name": "Unauthorized",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "X-API-KEY",
                    "value": "{{apiKey}}"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"companyId\": 20,\n  \"invoiceRef\": \"IIL-1001309\",\n\n  \"documentId\":                 \"IIL-1001309\",\n  \"issueDate\":                  \"2026-07-14\",\n  \"invoiceTypeCode\":            \"380\",\n  \"invoiceTransactionType\":     \"00000000\",\n  \"documentCurrencyCode\":       \"AED\",\n  \"noteEN\":                     \"INV\",\n  \"taxPointDate\":               null,\n  \"invoiceSupplyDate\":          null,\n  \"paymentDueDate\":             \"2026-09-12\",\n  \"orderReference\":             \"NA\",\n  \"contractDocumentReference\":  \"SIL-301358\",\n  \"originalInvoiceReference\":   \"SIL-301358\",\n  \"originalInvoiceReferenceDate\": \"2026-07-09\",\n  \"buyerReference\":             null,\n  \"invoicePeriodStartDate\":     null,\n  \"invoicePeriodEndDate\":       null,\n\n  \"sellerName\":                 \"TRONSTRIDE FZC\",\n  \"sellerVatTrn\":               \"104196887400003\",\n  \"sellerVatScheme\":            \"VAT\",\n  \"sellerRegisteredName\":       \"TRONSTRIDE FZC\",\n  \"sellerAddressLine1\":         \"BUSINESS CENTRE SHARJAH PUBLISHING CITY FREEZONE\",\n  \"sellerAddressLine2\":         \"NA\",\n  \"sellerCity\":                 \"Sharjah\",\n  \"sellerPostalZone\":           null,\n  \"sellerCountrySubdivision\":   \"SHJ\",\n  \"sellerCountryCode\":          \"AE\",\n  \"sellerTelephone\":            \"971529031765\",\n  \"sellerEmail\":                \"mohamed@tronstride.com\",\n  \"sellerPoBox\":                null,\n\n  \"buyerName\":                  \"HABIB MOHAMMAD SHARIF ABDULLA ALMULLA\",\n  \"buyerVatTrn\":                \"100711669800003\",\n  \"buyerVatScheme\":             \"VAT\",\n  \"buyerRegisteredName\":        \"HABIB MOHAMMAD SHARIF ABDULLA ALMULLA\",\n  \"buyerAddressLine1\":          \"Dubai, UAE\",\n  \"buyerAddressLine2\":          null,\n  \"buyerCity\":                  \"Dubai\",\n  \"buyerPostalZone\":            null,\n  \"buyerCountrySubdivision\":    \"DXB\",\n  \"buyerCountryCode\":           \"AE\",\n  \"buyerTelephone\":             null,\n  \"buyerEmail\":                 null,\n  \"buyerPoBox\":                 null,\n  \"buyerContact\":               null,\n\n  \"sellerLegalRegistrationId\":         \"714/2015\",\n  \"sellerLegalRegistrationType\":       \"TL\",\n  \"sellerLegalRegistrationAuthority\":  \"Dubai Economic Department\",\n  \"sellerOtherId\":                     null,\n  \"buyerLegalRegistrationId\":          null,\n  \"buyerLegalRegistrationType\":        null,\n  \"buyerLegalRegistrationAuthority\":   null,\n  \"buyerOtherId\":                      null,\n\n  \"lineExtensionTotal\":         37500.00,\n  \"docLevelDiscount\":           0.00,\n  \"docLevelCharges\":            0.00,\n  \"taxAmount\":                  1875.00,\n  \"totalIncludingTax\":          39375.00,\n  \"payableAmount\":              39375.00,\n  \"roundingAmount\":             0.00,\n\n  \"accountingCost\":             null,\n  \"specialTaxTreatment\":        null,\n  \"despatchDocRef\":             null,\n  \"receiptDocRef\":              null,\n  \"projectDocRef\":              null,\n  \"originatorDocRef\":           null,\n\n  \"prepaidAmount\":              null,\n  \"taxCurrencyCode\":            null,\n  \"vatInAccountingCurrency\":    null,\n  \"exchangeRate\":               null,\n  \"totalInLocalCurrency\":       null,\n\n  \"deliveryLocation\":           \"I & L\",\n  \"deliveryAddressLine1\":       \"P.O. BOX 3222\",\n  \"deliveryAddressLine2\":       \"SHARJAH, U.A.E.\",\n  \"deliveryAddressLine3\":       \"NA\",\n  \"deliveryCity\":               \"Sharjah\",\n  \"deliveryPostalZone\":         \"NA\",\n  \"deliveryCountrySubdivision\": \"NA\",\n  \"deliveryCountryCode\":        \"AE\",\n  \"deliverySchemeId\":           null,\n  \"deliveryPartyId\":            null,\n  \"deliveryPartyName\":          null,\n  \"deliveryIncoterms\":          null,\n\n  \"taxRepName\":                 null,\n  \"taxRepAddressLine1\":         null,\n  \"taxRepAddressLine2\":         null,\n  \"taxRepAddressLine3\":         null,\n  \"taxRepCity\":                 null,\n  \"taxRepPostalZone\":           null,\n  \"taxRepCountrySubdivision\":   null,\n  \"taxRepCountryCode\":          null,\n  \"taxRepTaxScheme\":            null,\n  \"taxRepTaxId\":                null,\n\n  \"supplierParticipantId\":      null,\n  \"customerParticipantId\":      null,\n\n  \"lines\": [\n    {\n      \"lineNumber\":            1,\n      \"itemName\":              \"Safe Oilgo\",\n      \"itemDescription\":       \"Safe Oilgo\",\n      \"sellerItemId\":          \"ILFGICS003\",\n      \"itemTypeGoodsServices\": null,\n      \"itemCountryOrigin\":     \"AE\",\n      \"quantity\":              15.0,\n      \"quantityUom\":           \"H87\",\n      \"unitPrice\":             2500.00,\n      \"priceBaseQty\":          1.0,\n      \"priceBaseQtyUom\":       \"H87\",\n      \"lineDiscountAmount\":    0,\n      \"lineDiscountPercent\":   0,\n      \"lineChargeAmount\":      0,\n      \"lineNetAmount\":         37500.00,\n      \"taxCategory\":           \"S\",\n      \"taxRatePercent\":        5.0,\n      \"taxScheme\":             \"VAT\",\n      \"lineTaxAmount\":         1875.00,\n      \"inclVatAmount\":         39375.00,\n      \"rcmCode\":               null,\n      \"accountingCost\":        null,\n      \"orderLineRef\":          null,\n      \"periodStart\":           null,\n      \"periodEnd\":             null,\n      \"vatExemptReasonCode\":   null,\n      \"vatExemptReasonText\":   null\n    }\n  ],\n\n  \"allowances\": [],\n\n  \"payments\": [\n    {\n      \"paymentMeansCode\":   \"30\",\n      \"paymentId\":          null,\n      \"remittanceInfo\":     null,\n      \"creditAccountIban\":  \"AE070260001012029678901\",\n      \"creditAccountScheme\": \"IBAN\",\n      \"creditAccountName\":  null,\n      \"cardNumberLast4\":    null,\n      \"cardHolderName\":     null,\n      \"bankBicSwift\":       null,\n      \"bankAddressLine1\":   null,\n      \"bankCity\":           null,\n      \"bankCountry\":        null,\n      \"mandateReferenceId\": null\n    }\n  ],\n\n  \"terms\": [\n    {\n      \"termId\":          null,\n      \"termNote\":        \"60 Days from Inv. Dt.\",\n      \"termAmount\":      39375.00,\n      \"termCurrency\":    \"AED\",\n      \"termInstallDate\": \"2026-09-12\"\n    }\n  ]\n}"
                },
                "url": {
                  "raw": "{{baseUrl}}/external/api/v1/eInvoiceEntry/createFull",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "external",
                    "api",
                    "v1",
                    "eInvoiceEntry",
                    "createFull"
                  ]
                },
                "description": "Creates a full e-invoice entry with lines, allowances, payments, and terms in a single JSON call.\nAll dates: yyyy-MM-dd. For taxCategory='E' the vatExemptReasonCode is mandatory ([ibr-167-ae]).\n\nPeppol routing:\n  supplierParticipantId — seller's Peppol participant ID (e.g. '0088:1234567890123')\n  customerParticipantId — buyer's Peppol participant ID (e.g. '0088:9876543210987')\n  Both fields are optional (nullable).\n\nLegal registration / other IDs (all optional):\n  sellerLegalRegistrationId / buyerLegalRegistrationId       — IBT-030 / IBT-047, e.g. trade license number\n  sellerLegalRegistrationType / buyerLegalRegistrationType   — BTAE-15 / BTAE-16, one of TL, EID, PAS, CD\n  sellerLegalRegistrationAuthority / buyerLegalRegistrationAuthority — BTAE-12/18 / BTAE-11/19: authority name when type is TL/EID/CD, or passport-issuing country when type is PAS\n  sellerOtherId / buyerOtherId — additional tax/other identifier"
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n  \"errorKey\": \"API key missing\"\n}"
            }
          ],
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test(\"HTTP 200\", () => pm.response.to.have.status(200));",
                  "const j = pm.response.json();",
                  "pm.test(\"success = true (else see errorKey / error)\", () => pm.expect(j.success, JSON.stringify(j)).to.be.true);",
                  "pm.test(\"entry created or overwritten\", () => pm.expect([\"CREATED\", \"OVERWRITTEN\"]).to.include(j.status));",
                  "if (j.entryId) { pm.collectionVariables.set(\"entryId\", String(j.entryId)); console.log(\"entryId =\", j.entryId, \"documentId =\", j.documentId); }"
                ]
              }
            }
          ]
        },
        {
          "name": "3.3 Credit note (381) against an earlier invoice",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "X-API-KEY",
                "value": "{{apiKey}}"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"companyId\": 20,\n  \"invoiceRef\": \"IIL-CN-0001\",\n  \"documentId\": \"IIL-CN-0001\",\n  \"issueDate\": \"2026-07-14\",\n  \"invoiceTypeCode\": \"381\",\n  \"invoiceTransactionType\": \"00000000\",\n  \"documentCurrencyCode\": \"AED\",\n  \"noteEN\": \"INV\",\n  \"taxPointDate\": null,\n  \"invoiceSupplyDate\": null,\n  \"paymentDueDate\": \"2026-09-12\",\n  \"orderReference\": \"NA\",\n  \"contractDocumentReference\": \"SIL-301358\",\n  \"originalInvoiceReference\": \"IIL-1001309\",\n  \"originalInvoiceReferenceDate\": \"2026-07-14\",\n  \"buyerReference\": null,\n  \"invoicePeriodStartDate\": null,\n  \"invoicePeriodEndDate\": null,\n  \"sellerName\": \"TRONSTRIDE FZC\",\n  \"sellerVatTrn\": \"104196887400003\",\n  \"sellerVatScheme\": \"VAT\",\n  \"sellerRegisteredName\": \"TRONSTRIDE FZC\",\n  \"sellerAddressLine1\": \"BUSINESS CENTRE SHARJAH PUBLISHING CITY FREEZONE\",\n  \"sellerAddressLine2\": \"NA\",\n  \"sellerCity\": \"Sharjah\",\n  \"sellerPostalZone\": null,\n  \"sellerCountrySubdivision\": \"SHJ\",\n  \"sellerCountryCode\": \"AE\",\n  \"sellerTelephone\": \"971529031765\",\n  \"sellerEmail\": \"mohamed@tronstride.com\",\n  \"sellerPoBox\": null,\n  \"buyerName\": \"HABIB MOHAMMAD SHARIF ABDULLA ALMULLA\",\n  \"buyerVatTrn\": \"100711669800003\",\n  \"buyerVatScheme\": \"VAT\",\n  \"buyerRegisteredName\": \"HABIB MOHAMMAD SHARIF ABDULLA ALMULLA\",\n  \"buyerAddressLine1\": \"Dubai, UAE\",\n  \"buyerAddressLine2\": null,\n  \"buyerCity\": \"Dubai\",\n  \"buyerPostalZone\": null,\n  \"buyerCountrySubdivision\": \"DXB\",\n  \"buyerCountryCode\": \"AE\",\n  \"buyerTelephone\": null,\n  \"buyerEmail\": null,\n  \"buyerPoBox\": null,\n  \"buyerContact\": null,\n  \"sellerLegalRegistrationId\": \"714/2015\",\n  \"sellerLegalRegistrationType\": \"TL\",\n  \"sellerLegalRegistrationAuthority\": \"Dubai Economic Department\",\n  \"sellerOtherId\": null,\n  \"buyerLegalRegistrationId\": null,\n  \"buyerLegalRegistrationType\": null,\n  \"buyerLegalRegistrationAuthority\": null,\n  \"buyerOtherId\": null,\n  \"lineExtensionTotal\": 500.0,\n  \"docLevelDiscount\": 0,\n  \"docLevelCharges\": 0,\n  \"taxAmount\": 25.0,\n  \"totalIncludingTax\": 525.0,\n  \"payableAmount\": 525.0,\n  \"roundingAmount\": 0,\n  \"accountingCost\": null,\n  \"specialTaxTreatment\": null,\n  \"despatchDocRef\": null,\n  \"receiptDocRef\": null,\n  \"projectDocRef\": null,\n  \"originatorDocRef\": null,\n  \"prepaidAmount\": null,\n  \"taxCurrencyCode\": null,\n  \"vatInAccountingCurrency\": null,\n  \"exchangeRate\": null,\n  \"totalInLocalCurrency\": null,\n  \"deliveryLocation\": \"I & L\",\n  \"deliveryAddressLine1\": \"P.O. BOX 3222\",\n  \"deliveryAddressLine2\": \"SHARJAH, U.A.E.\",\n  \"deliveryAddressLine3\": \"NA\",\n  \"deliveryCity\": \"Sharjah\",\n  \"deliveryPostalZone\": \"NA\",\n  \"deliveryCountrySubdivision\": \"NA\",\n  \"deliveryCountryCode\": \"AE\",\n  \"deliverySchemeId\": null,\n  \"deliveryPartyId\": null,\n  \"deliveryPartyName\": null,\n  \"deliveryIncoterms\": null,\n  \"taxRepName\": null,\n  \"taxRepAddressLine1\": null,\n  \"taxRepAddressLine2\": null,\n  \"taxRepAddressLine3\": null,\n  \"taxRepCity\": null,\n  \"taxRepPostalZone\": null,\n  \"taxRepCountrySubdivision\": null,\n  \"taxRepCountryCode\": null,\n  \"taxRepTaxScheme\": null,\n  \"taxRepTaxId\": null,\n  \"supplierParticipantId\": null,\n  \"customerParticipantId\": null,\n  \"lines\": [\n    {\n      \"lineNumber\": 1,\n      \"itemName\": \"Returned goods\",\n      \"itemDescription\": \"Returned goods\",\n      \"quantity\": 1,\n      \"quantityUom\": \"EA\",\n      \"unitPrice\": 500.0,\n      \"lineNetAmount\": 500.0,\n      \"taxCategory\": \"S\",\n      \"taxRatePercent\": 5,\n      \"lineTaxAmount\": 25.0,\n      \"inclVatAmount\": 525.0\n    }\n  ],\n  \"allowances\": [],\n  \"payments\": [],\n  \"terms\": [\n    {\n      \"termId\": null,\n      \"termNote\": \"60 Days from Inv. Dt.\",\n      \"termAmount\": 39375.0,\n      \"termCurrency\": \"AED\",\n      \"termInstallDate\": \"2026-09-12\"\n    }\n  ],\n  \"creditNoteReasonCode\": \"DL8.61.1.D\"\n}"
            },
            "url": {
              "raw": "{{baseUrl}}/external/api/v1/eInvoiceEntry/createFull",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "external",
                "api",
                "v1",
                "eInvoiceEntry",
                "createFull"
              ]
            },
            "description": "Credit note. creditNoteReasonCode (BTAE-03) is mandatory for 381 (ibr-158-ae) and must come from the FTA list (DL8.61.1.A-E or VD, ibr-001-ae); originalInvoiceReference / originalInvoiceReferenceDate point at the invoice being credited. A credit note carries NO payment means (ibr-191-ae), so payments is empty. The CreditNote root, CreditNoteTypeCode and CreditedQuantity are generated from the code."
          },
          "response": [
            {
              "name": "Success",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "X-API-KEY",
                    "value": "{{apiKey}}"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"companyId\": 20,\n  \"invoiceRef\": \"IIL-1001309\",\n\n  \"documentId\":                 \"IIL-1001309\",\n  \"issueDate\":                  \"2026-07-14\",\n  \"invoiceTypeCode\":            \"380\",\n  \"invoiceTransactionType\":     \"00000000\",\n  \"documentCurrencyCode\":       \"AED\",\n  \"noteEN\":                     \"INV\",\n  \"taxPointDate\":               null,\n  \"invoiceSupplyDate\":          null,\n  \"paymentDueDate\":             \"2026-09-12\",\n  \"orderReference\":             \"NA\",\n  \"contractDocumentReference\":  \"SIL-301358\",\n  \"originalInvoiceReference\":   \"SIL-301358\",\n  \"originalInvoiceReferenceDate\": \"2026-07-09\",\n  \"buyerReference\":             null,\n  \"invoicePeriodStartDate\":     null,\n  \"invoicePeriodEndDate\":       null,\n\n  \"sellerName\":                 \"TRONSTRIDE FZC\",\n  \"sellerVatTrn\":               \"104196887400003\",\n  \"sellerVatScheme\":            \"VAT\",\n  \"sellerRegisteredName\":       \"TRONSTRIDE FZC\",\n  \"sellerAddressLine1\":         \"BUSINESS CENTRE SHARJAH PUBLISHING CITY FREEZONE\",\n  \"sellerAddressLine2\":         \"NA\",\n  \"sellerCity\":                 \"Sharjah\",\n  \"sellerPostalZone\":           null,\n  \"sellerCountrySubdivision\":   \"SHJ\",\n  \"sellerCountryCode\":          \"AE\",\n  \"sellerTelephone\":            \"971529031765\",\n  \"sellerEmail\":                \"mohamed@tronstride.com\",\n  \"sellerPoBox\":                null,\n\n  \"buyerName\":                  \"HABIB MOHAMMAD SHARIF ABDULLA ALMULLA\",\n  \"buyerVatTrn\":                \"100711669800003\",\n  \"buyerVatScheme\":             \"VAT\",\n  \"buyerRegisteredName\":        \"HABIB MOHAMMAD SHARIF ABDULLA ALMULLA\",\n  \"buyerAddressLine1\":          \"Dubai, UAE\",\n  \"buyerAddressLine2\":          null,\n  \"buyerCity\":                  \"Dubai\",\n  \"buyerPostalZone\":            null,\n  \"buyerCountrySubdivision\":    \"DXB\",\n  \"buyerCountryCode\":           \"AE\",\n  \"buyerTelephone\":             null,\n  \"buyerEmail\":                 null,\n  \"buyerPoBox\":                 null,\n  \"buyerContact\":               null,\n\n  \"sellerLegalRegistrationId\":         \"714/2015\",\n  \"sellerLegalRegistrationType\":       \"TL\",\n  \"sellerLegalRegistrationAuthority\":  \"Dubai Economic Department\",\n  \"sellerOtherId\":                     null,\n  \"buyerLegalRegistrationId\":          null,\n  \"buyerLegalRegistrationType\":        null,\n  \"buyerLegalRegistrationAuthority\":   null,\n  \"buyerOtherId\":                      null,\n\n  \"lineExtensionTotal\":         37500.00,\n  \"docLevelDiscount\":           0.00,\n  \"docLevelCharges\":            0.00,\n  \"taxAmount\":                  1875.00,\n  \"totalIncludingTax\":          39375.00,\n  \"payableAmount\":              39375.00,\n  \"roundingAmount\":             0.00,\n\n  \"accountingCost\":             null,\n  \"specialTaxTreatment\":        null,\n  \"despatchDocRef\":             null,\n  \"receiptDocRef\":              null,\n  \"projectDocRef\":              null,\n  \"originatorDocRef\":           null,\n\n  \"prepaidAmount\":              null,\n  \"taxCurrencyCode\":            null,\n  \"vatInAccountingCurrency\":    null,\n  \"exchangeRate\":               null,\n  \"totalInLocalCurrency\":       null,\n\n  \"deliveryLocation\":           \"I & L\",\n  \"deliveryAddressLine1\":       \"P.O. BOX 3222\",\n  \"deliveryAddressLine2\":       \"SHARJAH, U.A.E.\",\n  \"deliveryAddressLine3\":       \"NA\",\n  \"deliveryCity\":               \"Sharjah\",\n  \"deliveryPostalZone\":         \"NA\",\n  \"deliveryCountrySubdivision\": \"NA\",\n  \"deliveryCountryCode\":        \"AE\",\n  \"deliverySchemeId\":           null,\n  \"deliveryPartyId\":            null,\n  \"deliveryPartyName\":          null,\n  \"deliveryIncoterms\":          null,\n\n  \"taxRepName\":                 null,\n  \"taxRepAddressLine1\":         null,\n  \"taxRepAddressLine2\":         null,\n  \"taxRepAddressLine3\":         null,\n  \"taxRepCity\":                 null,\n  \"taxRepPostalZone\":           null,\n  \"taxRepCountrySubdivision\":   null,\n  \"taxRepCountryCode\":          null,\n  \"taxRepTaxScheme\":            null,\n  \"taxRepTaxId\":                null,\n\n  \"supplierParticipantId\":      null,\n  \"customerParticipantId\":      null,\n\n  \"lines\": [\n    {\n      \"lineNumber\":            1,\n      \"itemName\":              \"Safe Oilgo\",\n      \"itemDescription\":       \"Safe Oilgo\",\n      \"sellerItemId\":          \"ILFGICS003\",\n      \"itemTypeGoodsServices\": null,\n      \"itemCountryOrigin\":     \"AE\",\n      \"quantity\":              15.0,\n      \"quantityUom\":           \"H87\",\n      \"unitPrice\":             2500.00,\n      \"priceBaseQty\":          1.0,\n      \"priceBaseQtyUom\":       \"H87\",\n      \"lineDiscountAmount\":    0,\n      \"lineDiscountPercent\":   0,\n      \"lineChargeAmount\":      0,\n      \"lineNetAmount\":         37500.00,\n      \"taxCategory\":           \"S\",\n      \"taxRatePercent\":        5.0,\n      \"taxScheme\":             \"VAT\",\n      \"lineTaxAmount\":         1875.00,\n      \"inclVatAmount\":         39375.00,\n      \"rcmCode\":               null,\n      \"accountingCost\":        null,\n      \"orderLineRef\":          null,\n      \"periodStart\":           null,\n      \"periodEnd\":             null,\n      \"vatExemptReasonCode\":   null,\n      \"vatExemptReasonText\":   null\n    }\n  ],\n\n  \"allowances\": [],\n\n  \"payments\": [\n    {\n      \"paymentMeansCode\":   \"30\",\n      \"paymentId\":          null,\n      \"remittanceInfo\":     null,\n      \"creditAccountIban\":  \"AE070260001012029678901\",\n      \"creditAccountScheme\": \"IBAN\",\n      \"creditAccountName\":  null,\n      \"cardNumberLast4\":    null,\n      \"cardHolderName\":     null,\n      \"bankBicSwift\":       null,\n      \"bankAddressLine1\":   null,\n      \"bankCity\":           null,\n      \"bankCountry\":        null,\n      \"mandateReferenceId\": null\n    }\n  ],\n\n  \"terms\": [\n    {\n      \"termId\":          null,\n      \"termNote\":        \"60 Days from Inv. Dt.\",\n      \"termAmount\":      39375.00,\n      \"termCurrency\":    \"AED\",\n      \"termInstallDate\": \"2026-09-12\"\n    }\n  ]\n}"
                },
                "url": {
                  "raw": "{{baseUrl}}/external/api/v1/eInvoiceEntry/createFull",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "external",
                    "api",
                    "v1",
                    "eInvoiceEntry",
                    "createFull"
                  ]
                },
                "description": "Creates a full e-invoice entry with lines, allowances, payments, and terms in a single JSON call.\nAll dates: yyyy-MM-dd. For taxCategory='E' the vatExemptReasonCode is mandatory ([ibr-167-ae]).\n\nPeppol routing:\n  supplierParticipantId — seller's Peppol participant ID (e.g. '0088:1234567890123')\n  customerParticipantId — buyer's Peppol participant ID (e.g. '0088:9876543210987')\n  Both fields are optional (nullable).\n\nLegal registration / other IDs (all optional):\n  sellerLegalRegistrationId / buyerLegalRegistrationId       — IBT-030 / IBT-047, e.g. trade license number\n  sellerLegalRegistrationType / buyerLegalRegistrationType   — BTAE-15 / BTAE-16, one of TL, EID, PAS, CD\n  sellerLegalRegistrationAuthority / buyerLegalRegistrationAuthority — BTAE-12/18 / BTAE-11/19: authority name when type is TL/EID/CD, or passport-issuing country when type is PAS\n  sellerOtherId / buyerOtherId — additional tax/other identifier"
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n  \"success\":           true,\n  \"invoiceRef\":        \"INV-001\",\n  \"entryId\":           1042,\n  \"documentId\":        \"INV-2024-001\",\n  \"linesCreated\":      2,\n  \"allowancesCreated\": 1,\n  \"paymentsCreated\":   1,\n  \"termsCreated\":      1\n}"
            },
            {
              "name": "Validation Error (ibr-167-ae)",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "X-API-KEY",
                    "value": "{{apiKey}}"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"companyId\": 20,\n  \"invoiceRef\": \"IIL-1001309\",\n\n  \"documentId\":                 \"IIL-1001309\",\n  \"issueDate\":                  \"2026-07-14\",\n  \"invoiceTypeCode\":            \"380\",\n  \"invoiceTransactionType\":     \"00000000\",\n  \"documentCurrencyCode\":       \"AED\",\n  \"noteEN\":                     \"INV\",\n  \"taxPointDate\":               null,\n  \"invoiceSupplyDate\":          null,\n  \"paymentDueDate\":             \"2026-09-12\",\n  \"orderReference\":             \"NA\",\n  \"contractDocumentReference\":  \"SIL-301358\",\n  \"originalInvoiceReference\":   \"SIL-301358\",\n  \"originalInvoiceReferenceDate\": \"2026-07-09\",\n  \"buyerReference\":             null,\n  \"invoicePeriodStartDate\":     null,\n  \"invoicePeriodEndDate\":       null,\n\n  \"sellerName\":                 \"TRONSTRIDE FZC\",\n  \"sellerVatTrn\":               \"104196887400003\",\n  \"sellerVatScheme\":            \"VAT\",\n  \"sellerRegisteredName\":       \"TRONSTRIDE FZC\",\n  \"sellerAddressLine1\":         \"BUSINESS CENTRE SHARJAH PUBLISHING CITY FREEZONE\",\n  \"sellerAddressLine2\":         \"NA\",\n  \"sellerCity\":                 \"Sharjah\",\n  \"sellerPostalZone\":           null,\n  \"sellerCountrySubdivision\":   \"SHJ\",\n  \"sellerCountryCode\":          \"AE\",\n  \"sellerTelephone\":            \"971529031765\",\n  \"sellerEmail\":                \"mohamed@tronstride.com\",\n  \"sellerPoBox\":                null,\n\n  \"buyerName\":                  \"HABIB MOHAMMAD SHARIF ABDULLA ALMULLA\",\n  \"buyerVatTrn\":                \"100711669800003\",\n  \"buyerVatScheme\":             \"VAT\",\n  \"buyerRegisteredName\":        \"HABIB MOHAMMAD SHARIF ABDULLA ALMULLA\",\n  \"buyerAddressLine1\":          \"Dubai, UAE\",\n  \"buyerAddressLine2\":          null,\n  \"buyerCity\":                  \"Dubai\",\n  \"buyerPostalZone\":            null,\n  \"buyerCountrySubdivision\":    \"DXB\",\n  \"buyerCountryCode\":           \"AE\",\n  \"buyerTelephone\":             null,\n  \"buyerEmail\":                 null,\n  \"buyerPoBox\":                 null,\n  \"buyerContact\":               null,\n\n  \"sellerLegalRegistrationId\":         \"714/2015\",\n  \"sellerLegalRegistrationType\":       \"TL\",\n  \"sellerLegalRegistrationAuthority\":  \"Dubai Economic Department\",\n  \"sellerOtherId\":                     null,\n  \"buyerLegalRegistrationId\":          null,\n  \"buyerLegalRegistrationType\":        null,\n  \"buyerLegalRegistrationAuthority\":   null,\n  \"buyerOtherId\":                      null,\n\n  \"lineExtensionTotal\":         37500.00,\n  \"docLevelDiscount\":           0.00,\n  \"docLevelCharges\":            0.00,\n  \"taxAmount\":                  1875.00,\n  \"totalIncludingTax\":          39375.00,\n  \"payableAmount\":              39375.00,\n  \"roundingAmount\":             0.00,\n\n  \"accountingCost\":             null,\n  \"specialTaxTreatment\":        null,\n  \"despatchDocRef\":             null,\n  \"receiptDocRef\":              null,\n  \"projectDocRef\":              null,\n  \"originatorDocRef\":           null,\n\n  \"prepaidAmount\":              null,\n  \"taxCurrencyCode\":            null,\n  \"vatInAccountingCurrency\":    null,\n  \"exchangeRate\":               null,\n  \"totalInLocalCurrency\":       null,\n\n  \"deliveryLocation\":           \"I & L\",\n  \"deliveryAddressLine1\":       \"P.O. BOX 3222\",\n  \"deliveryAddressLine2\":       \"SHARJAH, U.A.E.\",\n  \"deliveryAddressLine3\":       \"NA\",\n  \"deliveryCity\":               \"Sharjah\",\n  \"deliveryPostalZone\":         \"NA\",\n  \"deliveryCountrySubdivision\": \"NA\",\n  \"deliveryCountryCode\":        \"AE\",\n  \"deliverySchemeId\":           null,\n  \"deliveryPartyId\":            null,\n  \"deliveryPartyName\":          null,\n  \"deliveryIncoterms\":          null,\n\n  \"taxRepName\":                 null,\n  \"taxRepAddressLine1\":         null,\n  \"taxRepAddressLine2\":         null,\n  \"taxRepAddressLine3\":         null,\n  \"taxRepCity\":                 null,\n  \"taxRepPostalZone\":           null,\n  \"taxRepCountrySubdivision\":   null,\n  \"taxRepCountryCode\":          null,\n  \"taxRepTaxScheme\":            null,\n  \"taxRepTaxId\":                null,\n\n  \"supplierParticipantId\":      null,\n  \"customerParticipantId\":      null,\n\n  \"lines\": [\n    {\n      \"lineNumber\":            1,\n      \"itemName\":              \"Safe Oilgo\",\n      \"itemDescription\":       \"Safe Oilgo\",\n      \"sellerItemId\":          \"ILFGICS003\",\n      \"itemTypeGoodsServices\": null,\n      \"itemCountryOrigin\":     \"AE\",\n      \"quantity\":              15.0,\n      \"quantityUom\":           \"H87\",\n      \"unitPrice\":             2500.00,\n      \"priceBaseQty\":          1.0,\n      \"priceBaseQtyUom\":       \"H87\",\n      \"lineDiscountAmount\":    0,\n      \"lineDiscountPercent\":   0,\n      \"lineChargeAmount\":      0,\n      \"lineNetAmount\":         37500.00,\n      \"taxCategory\":           \"S\",\n      \"taxRatePercent\":        5.0,\n      \"taxScheme\":             \"VAT\",\n      \"lineTaxAmount\":         1875.00,\n      \"inclVatAmount\":         39375.00,\n      \"rcmCode\":               null,\n      \"accountingCost\":        null,\n      \"orderLineRef\":          null,\n      \"periodStart\":           null,\n      \"periodEnd\":             null,\n      \"vatExemptReasonCode\":   null,\n      \"vatExemptReasonText\":   null\n    }\n  ],\n\n  \"allowances\": [],\n\n  \"payments\": [\n    {\n      \"paymentMeansCode\":   \"30\",\n      \"paymentId\":          null,\n      \"remittanceInfo\":     null,\n      \"creditAccountIban\":  \"AE070260001012029678901\",\n      \"creditAccountScheme\": \"IBAN\",\n      \"creditAccountName\":  null,\n      \"cardNumberLast4\":    null,\n      \"cardHolderName\":     null,\n      \"bankBicSwift\":       null,\n      \"bankAddressLine1\":   null,\n      \"bankCity\":           null,\n      \"bankCountry\":        null,\n      \"mandateReferenceId\": null\n    }\n  ],\n\n  \"terms\": [\n    {\n      \"termId\":          null,\n      \"termNote\":        \"60 Days from Inv. Dt.\",\n      \"termAmount\":      39375.00,\n      \"termCurrency\":    \"AED\",\n      \"termInstallDate\": \"2026-09-12\"\n    }\n  ]\n}"
                },
                "url": {
                  "raw": "{{baseUrl}}/external/api/v1/eInvoiceEntry/createFull",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "external",
                    "api",
                    "v1",
                    "eInvoiceEntry",
                    "createFull"
                  ]
                },
                "description": "Creates a full e-invoice entry with lines, allowances, payments, and terms in a single JSON call.\nAll dates: yyyy-MM-dd. For taxCategory='E' the vatExemptReasonCode is mandatory ([ibr-167-ae]).\n\nPeppol routing:\n  supplierParticipantId — seller's Peppol participant ID (e.g. '0088:1234567890123')\n  customerParticipantId — buyer's Peppol participant ID (e.g. '0088:9876543210987')\n  Both fields are optional (nullable).\n\nLegal registration / other IDs (all optional):\n  sellerLegalRegistrationId / buyerLegalRegistrationId       — IBT-030 / IBT-047, e.g. trade license number\n  sellerLegalRegistrationType / buyerLegalRegistrationType   — BTAE-15 / BTAE-16, one of TL, EID, PAS, CD\n  sellerLegalRegistrationAuthority / buyerLegalRegistrationAuthority — BTAE-12/18 / BTAE-11/19: authority name when type is TL/EID/CD, or passport-issuing country when type is PAS\n  sellerOtherId / buyerOtherId — additional tax/other identifier"
              },
              "status": "Bad Request",
              "code": 400,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n  \"success\": false,\n  \"error\": \"[ibr-167-ae] Line 1: vatExemptReasonCode is mandatory when taxCategory is 'E'.\"\n}"
            },
            {
              "name": "Unauthorized",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "X-API-KEY",
                    "value": "{{apiKey}}"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"companyId\": 20,\n  \"invoiceRef\": \"IIL-1001309\",\n\n  \"documentId\":                 \"IIL-1001309\",\n  \"issueDate\":                  \"2026-07-14\",\n  \"invoiceTypeCode\":            \"380\",\n  \"invoiceTransactionType\":     \"00000000\",\n  \"documentCurrencyCode\":       \"AED\",\n  \"noteEN\":                     \"INV\",\n  \"taxPointDate\":               null,\n  \"invoiceSupplyDate\":          null,\n  \"paymentDueDate\":             \"2026-09-12\",\n  \"orderReference\":             \"NA\",\n  \"contractDocumentReference\":  \"SIL-301358\",\n  \"originalInvoiceReference\":   \"SIL-301358\",\n  \"originalInvoiceReferenceDate\": \"2026-07-09\",\n  \"buyerReference\":             null,\n  \"invoicePeriodStartDate\":     null,\n  \"invoicePeriodEndDate\":       null,\n\n  \"sellerName\":                 \"TRONSTRIDE FZC\",\n  \"sellerVatTrn\":               \"104196887400003\",\n  \"sellerVatScheme\":            \"VAT\",\n  \"sellerRegisteredName\":       \"TRONSTRIDE FZC\",\n  \"sellerAddressLine1\":         \"BUSINESS CENTRE SHARJAH PUBLISHING CITY FREEZONE\",\n  \"sellerAddressLine2\":         \"NA\",\n  \"sellerCity\":                 \"Sharjah\",\n  \"sellerPostalZone\":           null,\n  \"sellerCountrySubdivision\":   \"SHJ\",\n  \"sellerCountryCode\":          \"AE\",\n  \"sellerTelephone\":            \"971529031765\",\n  \"sellerEmail\":                \"mohamed@tronstride.com\",\n  \"sellerPoBox\":                null,\n\n  \"buyerName\":                  \"HABIB MOHAMMAD SHARIF ABDULLA ALMULLA\",\n  \"buyerVatTrn\":                \"100711669800003\",\n  \"buyerVatScheme\":             \"VAT\",\n  \"buyerRegisteredName\":        \"HABIB MOHAMMAD SHARIF ABDULLA ALMULLA\",\n  \"buyerAddressLine1\":          \"Dubai, UAE\",\n  \"buyerAddressLine2\":          null,\n  \"buyerCity\":                  \"Dubai\",\n  \"buyerPostalZone\":            null,\n  \"buyerCountrySubdivision\":    \"DXB\",\n  \"buyerCountryCode\":           \"AE\",\n  \"buyerTelephone\":             null,\n  \"buyerEmail\":                 null,\n  \"buyerPoBox\":                 null,\n  \"buyerContact\":               null,\n\n  \"sellerLegalRegistrationId\":         \"714/2015\",\n  \"sellerLegalRegistrationType\":       \"TL\",\n  \"sellerLegalRegistrationAuthority\":  \"Dubai Economic Department\",\n  \"sellerOtherId\":                     null,\n  \"buyerLegalRegistrationId\":          null,\n  \"buyerLegalRegistrationType\":        null,\n  \"buyerLegalRegistrationAuthority\":   null,\n  \"buyerOtherId\":                      null,\n\n  \"lineExtensionTotal\":         37500.00,\n  \"docLevelDiscount\":           0.00,\n  \"docLevelCharges\":            0.00,\n  \"taxAmount\":                  1875.00,\n  \"totalIncludingTax\":          39375.00,\n  \"payableAmount\":              39375.00,\n  \"roundingAmount\":             0.00,\n\n  \"accountingCost\":             null,\n  \"specialTaxTreatment\":        null,\n  \"despatchDocRef\":             null,\n  \"receiptDocRef\":              null,\n  \"projectDocRef\":              null,\n  \"originatorDocRef\":           null,\n\n  \"prepaidAmount\":              null,\n  \"taxCurrencyCode\":            null,\n  \"vatInAccountingCurrency\":    null,\n  \"exchangeRate\":               null,\n  \"totalInLocalCurrency\":       null,\n\n  \"deliveryLocation\":           \"I & L\",\n  \"deliveryAddressLine1\":       \"P.O. BOX 3222\",\n  \"deliveryAddressLine2\":       \"SHARJAH, U.A.E.\",\n  \"deliveryAddressLine3\":       \"NA\",\n  \"deliveryCity\":               \"Sharjah\",\n  \"deliveryPostalZone\":         \"NA\",\n  \"deliveryCountrySubdivision\": \"NA\",\n  \"deliveryCountryCode\":        \"AE\",\n  \"deliverySchemeId\":           null,\n  \"deliveryPartyId\":            null,\n  \"deliveryPartyName\":          null,\n  \"deliveryIncoterms\":          null,\n\n  \"taxRepName\":                 null,\n  \"taxRepAddressLine1\":         null,\n  \"taxRepAddressLine2\":         null,\n  \"taxRepAddressLine3\":         null,\n  \"taxRepCity\":                 null,\n  \"taxRepPostalZone\":           null,\n  \"taxRepCountrySubdivision\":   null,\n  \"taxRepCountryCode\":          null,\n  \"taxRepTaxScheme\":            null,\n  \"taxRepTaxId\":                null,\n\n  \"supplierParticipantId\":      null,\n  \"customerParticipantId\":      null,\n\n  \"lines\": [\n    {\n      \"lineNumber\":            1,\n      \"itemName\":              \"Safe Oilgo\",\n      \"itemDescription\":       \"Safe Oilgo\",\n      \"sellerItemId\":          \"ILFGICS003\",\n      \"itemTypeGoodsServices\": null,\n      \"itemCountryOrigin\":     \"AE\",\n      \"quantity\":              15.0,\n      \"quantityUom\":           \"H87\",\n      \"unitPrice\":             2500.00,\n      \"priceBaseQty\":          1.0,\n      \"priceBaseQtyUom\":       \"H87\",\n      \"lineDiscountAmount\":    0,\n      \"lineDiscountPercent\":   0,\n      \"lineChargeAmount\":      0,\n      \"lineNetAmount\":         37500.00,\n      \"taxCategory\":           \"S\",\n      \"taxRatePercent\":        5.0,\n      \"taxScheme\":             \"VAT\",\n      \"lineTaxAmount\":         1875.00,\n      \"inclVatAmount\":         39375.00,\n      \"rcmCode\":               null,\n      \"accountingCost\":        null,\n      \"orderLineRef\":          null,\n      \"periodStart\":           null,\n      \"periodEnd\":             null,\n      \"vatExemptReasonCode\":   null,\n      \"vatExemptReasonText\":   null\n    }\n  ],\n\n  \"allowances\": [],\n\n  \"payments\": [\n    {\n      \"paymentMeansCode\":   \"30\",\n      \"paymentId\":          null,\n      \"remittanceInfo\":     null,\n      \"creditAccountIban\":  \"AE070260001012029678901\",\n      \"creditAccountScheme\": \"IBAN\",\n      \"creditAccountName\":  null,\n      \"cardNumberLast4\":    null,\n      \"cardHolderName\":     null,\n      \"bankBicSwift\":       null,\n      \"bankAddressLine1\":   null,\n      \"bankCity\":           null,\n      \"bankCountry\":        null,\n      \"mandateReferenceId\": null\n    }\n  ],\n\n  \"terms\": [\n    {\n      \"termId\":          null,\n      \"termNote\":        \"60 Days from Inv. Dt.\",\n      \"termAmount\":      39375.00,\n      \"termCurrency\":    \"AED\",\n      \"termInstallDate\": \"2026-09-12\"\n    }\n  ]\n}"
                },
                "url": {
                  "raw": "{{baseUrl}}/external/api/v1/eInvoiceEntry/createFull",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "external",
                    "api",
                    "v1",
                    "eInvoiceEntry",
                    "createFull"
                  ]
                },
                "description": "Creates a full e-invoice entry with lines, allowances, payments, and terms in a single JSON call.\nAll dates: yyyy-MM-dd. For taxCategory='E' the vatExemptReasonCode is mandatory ([ibr-167-ae]).\n\nPeppol routing:\n  supplierParticipantId — seller's Peppol participant ID (e.g. '0088:1234567890123')\n  customerParticipantId — buyer's Peppol participant ID (e.g. '0088:9876543210987')\n  Both fields are optional (nullable).\n\nLegal registration / other IDs (all optional):\n  sellerLegalRegistrationId / buyerLegalRegistrationId       — IBT-030 / IBT-047, e.g. trade license number\n  sellerLegalRegistrationType / buyerLegalRegistrationType   — BTAE-15 / BTAE-16, one of TL, EID, PAS, CD\n  sellerLegalRegistrationAuthority / buyerLegalRegistrationAuthority — BTAE-12/18 / BTAE-11/19: authority name when type is TL/EID/CD, or passport-issuing country when type is PAS\n  sellerOtherId / buyerOtherId — additional tax/other identifier"
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n  \"errorKey\": \"API key missing\"\n}"
            }
          ],
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test(\"HTTP 200\", () => pm.response.to.have.status(200));",
                  "const j = pm.response.json();",
                  "pm.test(\"success = true (else see errorKey / error)\", () => pm.expect(j.success, JSON.stringify(j)).to.be.true);",
                  "pm.test(\"entry created or overwritten\", () => pm.expect([\"CREATED\", \"OVERWRITTEN\"]).to.include(j.status));",
                  "if (j.entryId) { pm.collectionVariables.set(\"entryId\", String(j.entryId)); console.log(\"entryId =\", j.entryId, \"documentId =\", j.documentId); }"
                ]
              }
            }
          ]
        },
        {
          "name": "3.4 Line discount, header discount/charge and rounding amount",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "X-API-KEY",
                "value": "{{apiKey}}"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"companyId\": 20,\n  \"invoiceRef\": \"IIL-DISC-0001\",\n  \"documentId\": \"IIL-DISC-0001\",\n  \"issueDate\": \"2026-07-14\",\n  \"invoiceTypeCode\": \"380\",\n  \"invoiceTransactionType\": \"00000000\",\n  \"documentCurrencyCode\": \"AED\",\n  \"noteEN\": \"INV\",\n  \"taxPointDate\": null,\n  \"invoiceSupplyDate\": null,\n  \"paymentDueDate\": \"2026-09-12\",\n  \"orderReference\": \"NA\",\n  \"contractDocumentReference\": \"SIL-301358\",\n  \"originalInvoiceReference\": \"SIL-301358\",\n  \"originalInvoiceReferenceDate\": \"2026-07-09\",\n  \"buyerReference\": null,\n  \"invoicePeriodStartDate\": null,\n  \"invoicePeriodEndDate\": null,\n  \"sellerName\": \"TRONSTRIDE FZC\",\n  \"sellerVatTrn\": \"104196887400003\",\n  \"sellerVatScheme\": \"VAT\",\n  \"sellerRegisteredName\": \"TRONSTRIDE FZC\",\n  \"sellerAddressLine1\": \"BUSINESS CENTRE SHARJAH PUBLISHING CITY FREEZONE\",\n  \"sellerAddressLine2\": \"NA\",\n  \"sellerCity\": \"Sharjah\",\n  \"sellerPostalZone\": null,\n  \"sellerCountrySubdivision\": \"SHJ\",\n  \"sellerCountryCode\": \"AE\",\n  \"sellerTelephone\": \"971529031765\",\n  \"sellerEmail\": \"mohamed@tronstride.com\",\n  \"sellerPoBox\": null,\n  \"buyerName\": \"HABIB MOHAMMAD SHARIF ABDULLA ALMULLA\",\n  \"buyerVatTrn\": \"100711669800003\",\n  \"buyerVatScheme\": \"VAT\",\n  \"buyerRegisteredName\": \"HABIB MOHAMMAD SHARIF ABDULLA ALMULLA\",\n  \"buyerAddressLine1\": \"Dubai, UAE\",\n  \"buyerAddressLine2\": null,\n  \"buyerCity\": \"Dubai\",\n  \"buyerPostalZone\": null,\n  \"buyerCountrySubdivision\": \"DXB\",\n  \"buyerCountryCode\": \"AE\",\n  \"buyerTelephone\": null,\n  \"buyerEmail\": null,\n  \"buyerPoBox\": null,\n  \"buyerContact\": null,\n  \"sellerLegalRegistrationId\": \"714/2015\",\n  \"sellerLegalRegistrationType\": \"TL\",\n  \"sellerLegalRegistrationAuthority\": \"Dubai Economic Department\",\n  \"sellerOtherId\": null,\n  \"buyerLegalRegistrationId\": null,\n  \"buyerLegalRegistrationType\": null,\n  \"buyerLegalRegistrationAuthority\": null,\n  \"buyerOtherId\": null,\n  \"lineExtensionTotal\": 187.06,\n  \"docLevelDiscount\": 10.0,\n  \"docLevelCharges\": 20.0,\n  \"taxAmount\": 9.85,\n  \"totalIncludingTax\": 206.91,\n  \"payableAmount\": 206.95,\n  \"roundingAmount\": 0.04,\n  \"accountingCost\": null,\n  \"specialTaxTreatment\": null,\n  \"despatchDocRef\": null,\n  \"receiptDocRef\": null,\n  \"projectDocRef\": null,\n  \"originatorDocRef\": null,\n  \"prepaidAmount\": null,\n  \"taxCurrencyCode\": null,\n  \"vatInAccountingCurrency\": null,\n  \"exchangeRate\": null,\n  \"totalInLocalCurrency\": null,\n  \"deliveryLocation\": \"I & L\",\n  \"deliveryAddressLine1\": \"P.O. BOX 3222\",\n  \"deliveryAddressLine2\": \"SHARJAH, U.A.E.\",\n  \"deliveryAddressLine3\": \"NA\",\n  \"deliveryCity\": \"Sharjah\",\n  \"deliveryPostalZone\": \"NA\",\n  \"deliveryCountrySubdivision\": \"NA\",\n  \"deliveryCountryCode\": \"AE\",\n  \"deliverySchemeId\": null,\n  \"deliveryPartyId\": null,\n  \"deliveryPartyName\": null,\n  \"deliveryIncoterms\": null,\n  \"taxRepName\": null,\n  \"taxRepAddressLine1\": null,\n  \"taxRepAddressLine2\": null,\n  \"taxRepAddressLine3\": null,\n  \"taxRepCity\": null,\n  \"taxRepPostalZone\": null,\n  \"taxRepCountrySubdivision\": null,\n  \"taxRepCountryCode\": null,\n  \"taxRepTaxScheme\": null,\n  \"taxRepTaxId\": null,\n  \"supplierParticipantId\": null,\n  \"customerParticipantId\": null,\n  \"lines\": [\n    {\n      \"lineNumber\": 1,\n      \"itemName\": \"Widget with line discount\",\n      \"itemDescription\": \"Widget with line discount\",\n      \"quantity\": 2,\n      \"quantityUom\": \"EA\",\n      \"unitPrice\": 100.0,\n      \"lineNetAmount\": 185.0,\n      \"taxCategory\": \"S\",\n      \"taxRatePercent\": 5,\n      \"lineTaxAmount\": 9.25,\n      \"inclVatAmount\": 194.25,\n      \"lineDiscountAmount\": 15.0\n    },\n    {\n      \"lineNumber\": 2,\n      \"itemName\": \"Small item\",\n      \"itemDescription\": \"Small item\",\n      \"quantity\": 1,\n      \"quantityUom\": \"EA\",\n      \"unitPrice\": 1.03,\n      \"lineNetAmount\": 1.03,\n      \"taxCategory\": \"S\",\n      \"taxRatePercent\": 5,\n      \"lineTaxAmount\": 0.05,\n      \"inclVatAmount\": 1.08\n    },\n    {\n      \"lineNumber\": 3,\n      \"itemName\": \"Small item\",\n      \"itemDescription\": \"Small item\",\n      \"quantity\": 1,\n      \"quantityUom\": \"EA\",\n      \"unitPrice\": 1.03,\n      \"lineNetAmount\": 1.03,\n      \"taxCategory\": \"S\",\n      \"taxRatePercent\": 5,\n      \"lineTaxAmount\": 0.05,\n      \"inclVatAmount\": 1.08\n    }\n  ],\n  \"allowances\": [\n    {\n      \"level\": \"document\",\n      \"isCharge\": false,\n      \"reasonCode\": \"95\",\n      \"reason\": \"Header discount\",\n      \"amount\": 10.0,\n      \"taxCategory\": \"S\",\n      \"taxPercent\": 5\n    },\n    {\n      \"level\": \"document\",\n      \"isCharge\": true,\n      \"reasonCode\": \"AEA\",\n      \"reason\": \"Header charge\",\n      \"amount\": 20.0,\n      \"taxCategory\": \"S\",\n      \"taxPercent\": 5\n    }\n  ],\n  \"payments\": [\n    {\n      \"paymentMeansCode\": \"30\",\n      \"paymentId\": null,\n      \"remittanceInfo\": null,\n      \"creditAccountIban\": \"AE070260001012029678901\",\n      \"creditAccountScheme\": \"IBAN\",\n      \"creditAccountName\": null,\n      \"cardNumberLast4\": null,\n      \"cardHolderName\": null,\n      \"bankBicSwift\": null,\n      \"bankAddressLine1\": null,\n      \"bankCity\": null,\n      \"bankCountry\": null,\n      \"mandateReferenceId\": null\n    }\n  ],\n  \"terms\": [\n    {\n      \"termId\": null,\n      \"termNote\": \"60 Days from Inv. Dt.\",\n      \"termAmount\": 39375.0,\n      \"termCurrency\": \"AED\",\n      \"termInstallDate\": \"2026-09-12\"\n    }\n  ]\n}"
            },
            "url": {
              "raw": "{{baseUrl}}/external/api/v1/eInvoiceEntry/createFull",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "external",
                "api",
                "v1",
                "eInvoiceEntry",
                "createFull"
              ]
            },
            "description": "Shows every calculation rule at once. Line 1: 2 x 100 with lineDiscountAmount 15 -> lineNetAmount 185 (the discount is emitted as a line AllowanceCharge, ibr-147-ae). Header discount 10 and charge 20 come from the allowances array and feed docLevelDiscount / docLevelCharges. Tax is computed once on the breakdown: (187.06 - 10 + 20) x 5% = 9.85 (ibr-co-14); totalIncludingTax = 187.06 - 10 + 20 + 9.85 = 206.91 (ibr-co-13/15); roundingAmount 0.04 gives payableAmount 206.95 (ibr-co-16)."
          },
          "response": [
            {
              "name": "Success",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "X-API-KEY",
                    "value": "{{apiKey}}"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"companyId\": 20,\n  \"invoiceRef\": \"IIL-1001309\",\n\n  \"documentId\":                 \"IIL-1001309\",\n  \"issueDate\":                  \"2026-07-14\",\n  \"invoiceTypeCode\":            \"380\",\n  \"invoiceTransactionType\":     \"00000000\",\n  \"documentCurrencyCode\":       \"AED\",\n  \"noteEN\":                     \"INV\",\n  \"taxPointDate\":               null,\n  \"invoiceSupplyDate\":          null,\n  \"paymentDueDate\":             \"2026-09-12\",\n  \"orderReference\":             \"NA\",\n  \"contractDocumentReference\":  \"SIL-301358\",\n  \"originalInvoiceReference\":   \"SIL-301358\",\n  \"originalInvoiceReferenceDate\": \"2026-07-09\",\n  \"buyerReference\":             null,\n  \"invoicePeriodStartDate\":     null,\n  \"invoicePeriodEndDate\":       null,\n\n  \"sellerName\":                 \"TRONSTRIDE FZC\",\n  \"sellerVatTrn\":               \"104196887400003\",\n  \"sellerVatScheme\":            \"VAT\",\n  \"sellerRegisteredName\":       \"TRONSTRIDE FZC\",\n  \"sellerAddressLine1\":         \"BUSINESS CENTRE SHARJAH PUBLISHING CITY FREEZONE\",\n  \"sellerAddressLine2\":         \"NA\",\n  \"sellerCity\":                 \"Sharjah\",\n  \"sellerPostalZone\":           null,\n  \"sellerCountrySubdivision\":   \"SHJ\",\n  \"sellerCountryCode\":          \"AE\",\n  \"sellerTelephone\":            \"971529031765\",\n  \"sellerEmail\":                \"mohamed@tronstride.com\",\n  \"sellerPoBox\":                null,\n\n  \"buyerName\":                  \"HABIB MOHAMMAD SHARIF ABDULLA ALMULLA\",\n  \"buyerVatTrn\":                \"100711669800003\",\n  \"buyerVatScheme\":             \"VAT\",\n  \"buyerRegisteredName\":        \"HABIB MOHAMMAD SHARIF ABDULLA ALMULLA\",\n  \"buyerAddressLine1\":          \"Dubai, UAE\",\n  \"buyerAddressLine2\":          null,\n  \"buyerCity\":                  \"Dubai\",\n  \"buyerPostalZone\":            null,\n  \"buyerCountrySubdivision\":    \"DXB\",\n  \"buyerCountryCode\":           \"AE\",\n  \"buyerTelephone\":             null,\n  \"buyerEmail\":                 null,\n  \"buyerPoBox\":                 null,\n  \"buyerContact\":               null,\n\n  \"sellerLegalRegistrationId\":         \"714/2015\",\n  \"sellerLegalRegistrationType\":       \"TL\",\n  \"sellerLegalRegistrationAuthority\":  \"Dubai Economic Department\",\n  \"sellerOtherId\":                     null,\n  \"buyerLegalRegistrationId\":          null,\n  \"buyerLegalRegistrationType\":        null,\n  \"buyerLegalRegistrationAuthority\":   null,\n  \"buyerOtherId\":                      null,\n\n  \"lineExtensionTotal\":         37500.00,\n  \"docLevelDiscount\":           0.00,\n  \"docLevelCharges\":            0.00,\n  \"taxAmount\":                  1875.00,\n  \"totalIncludingTax\":          39375.00,\n  \"payableAmount\":              39375.00,\n  \"roundingAmount\":             0.00,\n\n  \"accountingCost\":             null,\n  \"specialTaxTreatment\":        null,\n  \"despatchDocRef\":             null,\n  \"receiptDocRef\":              null,\n  \"projectDocRef\":              null,\n  \"originatorDocRef\":           null,\n\n  \"prepaidAmount\":              null,\n  \"taxCurrencyCode\":            null,\n  \"vatInAccountingCurrency\":    null,\n  \"exchangeRate\":               null,\n  \"totalInLocalCurrency\":       null,\n\n  \"deliveryLocation\":           \"I & L\",\n  \"deliveryAddressLine1\":       \"P.O. BOX 3222\",\n  \"deliveryAddressLine2\":       \"SHARJAH, U.A.E.\",\n  \"deliveryAddressLine3\":       \"NA\",\n  \"deliveryCity\":               \"Sharjah\",\n  \"deliveryPostalZone\":         \"NA\",\n  \"deliveryCountrySubdivision\": \"NA\",\n  \"deliveryCountryCode\":        \"AE\",\n  \"deliverySchemeId\":           null,\n  \"deliveryPartyId\":            null,\n  \"deliveryPartyName\":          null,\n  \"deliveryIncoterms\":          null,\n\n  \"taxRepName\":                 null,\n  \"taxRepAddressLine1\":         null,\n  \"taxRepAddressLine2\":         null,\n  \"taxRepAddressLine3\":         null,\n  \"taxRepCity\":                 null,\n  \"taxRepPostalZone\":           null,\n  \"taxRepCountrySubdivision\":   null,\n  \"taxRepCountryCode\":          null,\n  \"taxRepTaxScheme\":            null,\n  \"taxRepTaxId\":                null,\n\n  \"supplierParticipantId\":      null,\n  \"customerParticipantId\":      null,\n\n  \"lines\": [\n    {\n      \"lineNumber\":            1,\n      \"itemName\":              \"Safe Oilgo\",\n      \"itemDescription\":       \"Safe Oilgo\",\n      \"sellerItemId\":          \"ILFGICS003\",\n      \"itemTypeGoodsServices\": null,\n      \"itemCountryOrigin\":     \"AE\",\n      \"quantity\":              15.0,\n      \"quantityUom\":           \"H87\",\n      \"unitPrice\":             2500.00,\n      \"priceBaseQty\":          1.0,\n      \"priceBaseQtyUom\":       \"H87\",\n      \"lineDiscountAmount\":    0,\n      \"lineDiscountPercent\":   0,\n      \"lineChargeAmount\":      0,\n      \"lineNetAmount\":         37500.00,\n      \"taxCategory\":           \"S\",\n      \"taxRatePercent\":        5.0,\n      \"taxScheme\":             \"VAT\",\n      \"lineTaxAmount\":         1875.00,\n      \"inclVatAmount\":         39375.00,\n      \"rcmCode\":               null,\n      \"accountingCost\":        null,\n      \"orderLineRef\":          null,\n      \"periodStart\":           null,\n      \"periodEnd\":             null,\n      \"vatExemptReasonCode\":   null,\n      \"vatExemptReasonText\":   null\n    }\n  ],\n\n  \"allowances\": [],\n\n  \"payments\": [\n    {\n      \"paymentMeansCode\":   \"30\",\n      \"paymentId\":          null,\n      \"remittanceInfo\":     null,\n      \"creditAccountIban\":  \"AE070260001012029678901\",\n      \"creditAccountScheme\": \"IBAN\",\n      \"creditAccountName\":  null,\n      \"cardNumberLast4\":    null,\n      \"cardHolderName\":     null,\n      \"bankBicSwift\":       null,\n      \"bankAddressLine1\":   null,\n      \"bankCity\":           null,\n      \"bankCountry\":        null,\n      \"mandateReferenceId\": null\n    }\n  ],\n\n  \"terms\": [\n    {\n      \"termId\":          null,\n      \"termNote\":        \"60 Days from Inv. Dt.\",\n      \"termAmount\":      39375.00,\n      \"termCurrency\":    \"AED\",\n      \"termInstallDate\": \"2026-09-12\"\n    }\n  ]\n}"
                },
                "url": {
                  "raw": "{{baseUrl}}/external/api/v1/eInvoiceEntry/createFull",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "external",
                    "api",
                    "v1",
                    "eInvoiceEntry",
                    "createFull"
                  ]
                },
                "description": "Creates a full e-invoice entry with lines, allowances, payments, and terms in a single JSON call.\nAll dates: yyyy-MM-dd. For taxCategory='E' the vatExemptReasonCode is mandatory ([ibr-167-ae]).\n\nPeppol routing:\n  supplierParticipantId — seller's Peppol participant ID (e.g. '0088:1234567890123')\n  customerParticipantId — buyer's Peppol participant ID (e.g. '0088:9876543210987')\n  Both fields are optional (nullable).\n\nLegal registration / other IDs (all optional):\n  sellerLegalRegistrationId / buyerLegalRegistrationId       — IBT-030 / IBT-047, e.g. trade license number\n  sellerLegalRegistrationType / buyerLegalRegistrationType   — BTAE-15 / BTAE-16, one of TL, EID, PAS, CD\n  sellerLegalRegistrationAuthority / buyerLegalRegistrationAuthority — BTAE-12/18 / BTAE-11/19: authority name when type is TL/EID/CD, or passport-issuing country when type is PAS\n  sellerOtherId / buyerOtherId — additional tax/other identifier"
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n  \"success\":           true,\n  \"invoiceRef\":        \"INV-001\",\n  \"entryId\":           1042,\n  \"documentId\":        \"INV-2024-001\",\n  \"linesCreated\":      2,\n  \"allowancesCreated\": 1,\n  \"paymentsCreated\":   1,\n  \"termsCreated\":      1\n}"
            },
            {
              "name": "Validation Error (ibr-167-ae)",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "X-API-KEY",
                    "value": "{{apiKey}}"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"companyId\": 20,\n  \"invoiceRef\": \"IIL-1001309\",\n\n  \"documentId\":                 \"IIL-1001309\",\n  \"issueDate\":                  \"2026-07-14\",\n  \"invoiceTypeCode\":            \"380\",\n  \"invoiceTransactionType\":     \"00000000\",\n  \"documentCurrencyCode\":       \"AED\",\n  \"noteEN\":                     \"INV\",\n  \"taxPointDate\":               null,\n  \"invoiceSupplyDate\":          null,\n  \"paymentDueDate\":             \"2026-09-12\",\n  \"orderReference\":             \"NA\",\n  \"contractDocumentReference\":  \"SIL-301358\",\n  \"originalInvoiceReference\":   \"SIL-301358\",\n  \"originalInvoiceReferenceDate\": \"2026-07-09\",\n  \"buyerReference\":             null,\n  \"invoicePeriodStartDate\":     null,\n  \"invoicePeriodEndDate\":       null,\n\n  \"sellerName\":                 \"TRONSTRIDE FZC\",\n  \"sellerVatTrn\":               \"104196887400003\",\n  \"sellerVatScheme\":            \"VAT\",\n  \"sellerRegisteredName\":       \"TRONSTRIDE FZC\",\n  \"sellerAddressLine1\":         \"BUSINESS CENTRE SHARJAH PUBLISHING CITY FREEZONE\",\n  \"sellerAddressLine2\":         \"NA\",\n  \"sellerCity\":                 \"Sharjah\",\n  \"sellerPostalZone\":           null,\n  \"sellerCountrySubdivision\":   \"SHJ\",\n  \"sellerCountryCode\":          \"AE\",\n  \"sellerTelephone\":            \"971529031765\",\n  \"sellerEmail\":                \"mohamed@tronstride.com\",\n  \"sellerPoBox\":                null,\n\n  \"buyerName\":                  \"HABIB MOHAMMAD SHARIF ABDULLA ALMULLA\",\n  \"buyerVatTrn\":                \"100711669800003\",\n  \"buyerVatScheme\":             \"VAT\",\n  \"buyerRegisteredName\":        \"HABIB MOHAMMAD SHARIF ABDULLA ALMULLA\",\n  \"buyerAddressLine1\":          \"Dubai, UAE\",\n  \"buyerAddressLine2\":          null,\n  \"buyerCity\":                  \"Dubai\",\n  \"buyerPostalZone\":            null,\n  \"buyerCountrySubdivision\":    \"DXB\",\n  \"buyerCountryCode\":           \"AE\",\n  \"buyerTelephone\":             null,\n  \"buyerEmail\":                 null,\n  \"buyerPoBox\":                 null,\n  \"buyerContact\":               null,\n\n  \"sellerLegalRegistrationId\":         \"714/2015\",\n  \"sellerLegalRegistrationType\":       \"TL\",\n  \"sellerLegalRegistrationAuthority\":  \"Dubai Economic Department\",\n  \"sellerOtherId\":                     null,\n  \"buyerLegalRegistrationId\":          null,\n  \"buyerLegalRegistrationType\":        null,\n  \"buyerLegalRegistrationAuthority\":   null,\n  \"buyerOtherId\":                      null,\n\n  \"lineExtensionTotal\":         37500.00,\n  \"docLevelDiscount\":           0.00,\n  \"docLevelCharges\":            0.00,\n  \"taxAmount\":                  1875.00,\n  \"totalIncludingTax\":          39375.00,\n  \"payableAmount\":              39375.00,\n  \"roundingAmount\":             0.00,\n\n  \"accountingCost\":             null,\n  \"specialTaxTreatment\":        null,\n  \"despatchDocRef\":             null,\n  \"receiptDocRef\":              null,\n  \"projectDocRef\":              null,\n  \"originatorDocRef\":           null,\n\n  \"prepaidAmount\":              null,\n  \"taxCurrencyCode\":            null,\n  \"vatInAccountingCurrency\":    null,\n  \"exchangeRate\":               null,\n  \"totalInLocalCurrency\":       null,\n\n  \"deliveryLocation\":           \"I & L\",\n  \"deliveryAddressLine1\":       \"P.O. BOX 3222\",\n  \"deliveryAddressLine2\":       \"SHARJAH, U.A.E.\",\n  \"deliveryAddressLine3\":       \"NA\",\n  \"deliveryCity\":               \"Sharjah\",\n  \"deliveryPostalZone\":         \"NA\",\n  \"deliveryCountrySubdivision\": \"NA\",\n  \"deliveryCountryCode\":        \"AE\",\n  \"deliverySchemeId\":           null,\n  \"deliveryPartyId\":            null,\n  \"deliveryPartyName\":          null,\n  \"deliveryIncoterms\":          null,\n\n  \"taxRepName\":                 null,\n  \"taxRepAddressLine1\":         null,\n  \"taxRepAddressLine2\":         null,\n  \"taxRepAddressLine3\":         null,\n  \"taxRepCity\":                 null,\n  \"taxRepPostalZone\":           null,\n  \"taxRepCountrySubdivision\":   null,\n  \"taxRepCountryCode\":          null,\n  \"taxRepTaxScheme\":            null,\n  \"taxRepTaxId\":                null,\n\n  \"supplierParticipantId\":      null,\n  \"customerParticipantId\":      null,\n\n  \"lines\": [\n    {\n      \"lineNumber\":            1,\n      \"itemName\":              \"Safe Oilgo\",\n      \"itemDescription\":       \"Safe Oilgo\",\n      \"sellerItemId\":          \"ILFGICS003\",\n      \"itemTypeGoodsServices\": null,\n      \"itemCountryOrigin\":     \"AE\",\n      \"quantity\":              15.0,\n      \"quantityUom\":           \"H87\",\n      \"unitPrice\":             2500.00,\n      \"priceBaseQty\":          1.0,\n      \"priceBaseQtyUom\":       \"H87\",\n      \"lineDiscountAmount\":    0,\n      \"lineDiscountPercent\":   0,\n      \"lineChargeAmount\":      0,\n      \"lineNetAmount\":         37500.00,\n      \"taxCategory\":           \"S\",\n      \"taxRatePercent\":        5.0,\n      \"taxScheme\":             \"VAT\",\n      \"lineTaxAmount\":         1875.00,\n      \"inclVatAmount\":         39375.00,\n      \"rcmCode\":               null,\n      \"accountingCost\":        null,\n      \"orderLineRef\":          null,\n      \"periodStart\":           null,\n      \"periodEnd\":             null,\n      \"vatExemptReasonCode\":   null,\n      \"vatExemptReasonText\":   null\n    }\n  ],\n\n  \"allowances\": [],\n\n  \"payments\": [\n    {\n      \"paymentMeansCode\":   \"30\",\n      \"paymentId\":          null,\n      \"remittanceInfo\":     null,\n      \"creditAccountIban\":  \"AE070260001012029678901\",\n      \"creditAccountScheme\": \"IBAN\",\n      \"creditAccountName\":  null,\n      \"cardNumberLast4\":    null,\n      \"cardHolderName\":     null,\n      \"bankBicSwift\":       null,\n      \"bankAddressLine1\":   null,\n      \"bankCity\":           null,\n      \"bankCountry\":        null,\n      \"mandateReferenceId\": null\n    }\n  ],\n\n  \"terms\": [\n    {\n      \"termId\":          null,\n      \"termNote\":        \"60 Days from Inv. Dt.\",\n      \"termAmount\":      39375.00,\n      \"termCurrency\":    \"AED\",\n      \"termInstallDate\": \"2026-09-12\"\n    }\n  ]\n}"
                },
                "url": {
                  "raw": "{{baseUrl}}/external/api/v1/eInvoiceEntry/createFull",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "external",
                    "api",
                    "v1",
                    "eInvoiceEntry",
                    "createFull"
                  ]
                },
                "description": "Creates a full e-invoice entry with lines, allowances, payments, and terms in a single JSON call.\nAll dates: yyyy-MM-dd. For taxCategory='E' the vatExemptReasonCode is mandatory ([ibr-167-ae]).\n\nPeppol routing:\n  supplierParticipantId — seller's Peppol participant ID (e.g. '0088:1234567890123')\n  customerParticipantId — buyer's Peppol participant ID (e.g. '0088:9876543210987')\n  Both fields are optional (nullable).\n\nLegal registration / other IDs (all optional):\n  sellerLegalRegistrationId / buyerLegalRegistrationId       — IBT-030 / IBT-047, e.g. trade license number\n  sellerLegalRegistrationType / buyerLegalRegistrationType   — BTAE-15 / BTAE-16, one of TL, EID, PAS, CD\n  sellerLegalRegistrationAuthority / buyerLegalRegistrationAuthority — BTAE-12/18 / BTAE-11/19: authority name when type is TL/EID/CD, or passport-issuing country when type is PAS\n  sellerOtherId / buyerOtherId — additional tax/other identifier"
              },
              "status": "Bad Request",
              "code": 400,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n  \"success\": false,\n  \"error\": \"[ibr-167-ae] Line 1: vatExemptReasonCode is mandatory when taxCategory is 'E'.\"\n}"
            },
            {
              "name": "Unauthorized",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "X-API-KEY",
                    "value": "{{apiKey}}"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"companyId\": 20,\n  \"invoiceRef\": \"IIL-1001309\",\n\n  \"documentId\":                 \"IIL-1001309\",\n  \"issueDate\":                  \"2026-07-14\",\n  \"invoiceTypeCode\":            \"380\",\n  \"invoiceTransactionType\":     \"00000000\",\n  \"documentCurrencyCode\":       \"AED\",\n  \"noteEN\":                     \"INV\",\n  \"taxPointDate\":               null,\n  \"invoiceSupplyDate\":          null,\n  \"paymentDueDate\":             \"2026-09-12\",\n  \"orderReference\":             \"NA\",\n  \"contractDocumentReference\":  \"SIL-301358\",\n  \"originalInvoiceReference\":   \"SIL-301358\",\n  \"originalInvoiceReferenceDate\": \"2026-07-09\",\n  \"buyerReference\":             null,\n  \"invoicePeriodStartDate\":     null,\n  \"invoicePeriodEndDate\":       null,\n\n  \"sellerName\":                 \"TRONSTRIDE FZC\",\n  \"sellerVatTrn\":               \"104196887400003\",\n  \"sellerVatScheme\":            \"VAT\",\n  \"sellerRegisteredName\":       \"TRONSTRIDE FZC\",\n  \"sellerAddressLine1\":         \"BUSINESS CENTRE SHARJAH PUBLISHING CITY FREEZONE\",\n  \"sellerAddressLine2\":         \"NA\",\n  \"sellerCity\":                 \"Sharjah\",\n  \"sellerPostalZone\":           null,\n  \"sellerCountrySubdivision\":   \"SHJ\",\n  \"sellerCountryCode\":          \"AE\",\n  \"sellerTelephone\":            \"971529031765\",\n  \"sellerEmail\":                \"mohamed@tronstride.com\",\n  \"sellerPoBox\":                null,\n\n  \"buyerName\":                  \"HABIB MOHAMMAD SHARIF ABDULLA ALMULLA\",\n  \"buyerVatTrn\":                \"100711669800003\",\n  \"buyerVatScheme\":             \"VAT\",\n  \"buyerRegisteredName\":        \"HABIB MOHAMMAD SHARIF ABDULLA ALMULLA\",\n  \"buyerAddressLine1\":          \"Dubai, UAE\",\n  \"buyerAddressLine2\":          null,\n  \"buyerCity\":                  \"Dubai\",\n  \"buyerPostalZone\":            null,\n  \"buyerCountrySubdivision\":    \"DXB\",\n  \"buyerCountryCode\":           \"AE\",\n  \"buyerTelephone\":             null,\n  \"buyerEmail\":                 null,\n  \"buyerPoBox\":                 null,\n  \"buyerContact\":               null,\n\n  \"sellerLegalRegistrationId\":         \"714/2015\",\n  \"sellerLegalRegistrationType\":       \"TL\",\n  \"sellerLegalRegistrationAuthority\":  \"Dubai Economic Department\",\n  \"sellerOtherId\":                     null,\n  \"buyerLegalRegistrationId\":          null,\n  \"buyerLegalRegistrationType\":        null,\n  \"buyerLegalRegistrationAuthority\":   null,\n  \"buyerOtherId\":                      null,\n\n  \"lineExtensionTotal\":         37500.00,\n  \"docLevelDiscount\":           0.00,\n  \"docLevelCharges\":            0.00,\n  \"taxAmount\":                  1875.00,\n  \"totalIncludingTax\":          39375.00,\n  \"payableAmount\":              39375.00,\n  \"roundingAmount\":             0.00,\n\n  \"accountingCost\":             null,\n  \"specialTaxTreatment\":        null,\n  \"despatchDocRef\":             null,\n  \"receiptDocRef\":              null,\n  \"projectDocRef\":              null,\n  \"originatorDocRef\":           null,\n\n  \"prepaidAmount\":              null,\n  \"taxCurrencyCode\":            null,\n  \"vatInAccountingCurrency\":    null,\n  \"exchangeRate\":               null,\n  \"totalInLocalCurrency\":       null,\n\n  \"deliveryLocation\":           \"I & L\",\n  \"deliveryAddressLine1\":       \"P.O. BOX 3222\",\n  \"deliveryAddressLine2\":       \"SHARJAH, U.A.E.\",\n  \"deliveryAddressLine3\":       \"NA\",\n  \"deliveryCity\":               \"Sharjah\",\n  \"deliveryPostalZone\":         \"NA\",\n  \"deliveryCountrySubdivision\": \"NA\",\n  \"deliveryCountryCode\":        \"AE\",\n  \"deliverySchemeId\":           null,\n  \"deliveryPartyId\":            null,\n  \"deliveryPartyName\":          null,\n  \"deliveryIncoterms\":          null,\n\n  \"taxRepName\":                 null,\n  \"taxRepAddressLine1\":         null,\n  \"taxRepAddressLine2\":         null,\n  \"taxRepAddressLine3\":         null,\n  \"taxRepCity\":                 null,\n  \"taxRepPostalZone\":           null,\n  \"taxRepCountrySubdivision\":   null,\n  \"taxRepCountryCode\":          null,\n  \"taxRepTaxScheme\":            null,\n  \"taxRepTaxId\":                null,\n\n  \"supplierParticipantId\":      null,\n  \"customerParticipantId\":      null,\n\n  \"lines\": [\n    {\n      \"lineNumber\":            1,\n      \"itemName\":              \"Safe Oilgo\",\n      \"itemDescription\":       \"Safe Oilgo\",\n      \"sellerItemId\":          \"ILFGICS003\",\n      \"itemTypeGoodsServices\": null,\n      \"itemCountryOrigin\":     \"AE\",\n      \"quantity\":              15.0,\n      \"quantityUom\":           \"H87\",\n      \"unitPrice\":             2500.00,\n      \"priceBaseQty\":          1.0,\n      \"priceBaseQtyUom\":       \"H87\",\n      \"lineDiscountAmount\":    0,\n      \"lineDiscountPercent\":   0,\n      \"lineChargeAmount\":      0,\n      \"lineNetAmount\":         37500.00,\n      \"taxCategory\":           \"S\",\n      \"taxRatePercent\":        5.0,\n      \"taxScheme\":             \"VAT\",\n      \"lineTaxAmount\":         1875.00,\n      \"inclVatAmount\":         39375.00,\n      \"rcmCode\":               null,\n      \"accountingCost\":        null,\n      \"orderLineRef\":          null,\n      \"periodStart\":           null,\n      \"periodEnd\":             null,\n      \"vatExemptReasonCode\":   null,\n      \"vatExemptReasonText\":   null\n    }\n  ],\n\n  \"allowances\": [],\n\n  \"payments\": [\n    {\n      \"paymentMeansCode\":   \"30\",\n      \"paymentId\":          null,\n      \"remittanceInfo\":     null,\n      \"creditAccountIban\":  \"AE070260001012029678901\",\n      \"creditAccountScheme\": \"IBAN\",\n      \"creditAccountName\":  null,\n      \"cardNumberLast4\":    null,\n      \"cardHolderName\":     null,\n      \"bankBicSwift\":       null,\n      \"bankAddressLine1\":   null,\n      \"bankCity\":           null,\n      \"bankCountry\":        null,\n      \"mandateReferenceId\": null\n    }\n  ],\n\n  \"terms\": [\n    {\n      \"termId\":          null,\n      \"termNote\":        \"60 Days from Inv. Dt.\",\n      \"termAmount\":      39375.00,\n      \"termCurrency\":    \"AED\",\n      \"termInstallDate\": \"2026-09-12\"\n    }\n  ]\n}"
                },
                "url": {
                  "raw": "{{baseUrl}}/external/api/v1/eInvoiceEntry/createFull",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "external",
                    "api",
                    "v1",
                    "eInvoiceEntry",
                    "createFull"
                  ]
                },
                "description": "Creates a full e-invoice entry with lines, allowances, payments, and terms in a single JSON call.\nAll dates: yyyy-MM-dd. For taxCategory='E' the vatExemptReasonCode is mandatory ([ibr-167-ae]).\n\nPeppol routing:\n  supplierParticipantId — seller's Peppol participant ID (e.g. '0088:1234567890123')\n  customerParticipantId — buyer's Peppol participant ID (e.g. '0088:9876543210987')\n  Both fields are optional (nullable).\n\nLegal registration / other IDs (all optional):\n  sellerLegalRegistrationId / buyerLegalRegistrationId       — IBT-030 / IBT-047, e.g. trade license number\n  sellerLegalRegistrationType / buyerLegalRegistrationType   — BTAE-15 / BTAE-16, one of TL, EID, PAS, CD\n  sellerLegalRegistrationAuthority / buyerLegalRegistrationAuthority — BTAE-12/18 / BTAE-11/19: authority name when type is TL/EID/CD, or passport-issuing country when type is PAS\n  sellerOtherId / buyerOtherId — additional tax/other identifier"
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n  \"errorKey\": \"API key missing\"\n}"
            }
          ],
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test(\"HTTP 200\", () => pm.response.to.have.status(200));",
                  "const j = pm.response.json();",
                  "pm.test(\"success = true (else see errorKey / error)\", () => pm.expect(j.success, JSON.stringify(j)).to.be.true);",
                  "pm.test(\"entry created or overwritten\", () => pm.expect([\"CREATED\", \"OVERWRITTEN\"]).to.include(j.status));",
                  "if (j.entryId) { pm.collectionVariables.set(\"entryId\", String(j.entryId)); console.log(\"entryId =\", j.entryId, \"documentId =\", j.documentId); }"
                ]
              }
            }
          ]
        },
        {
          "name": "3.5 Deemed supply (no payment means)",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "X-API-KEY",
                "value": "{{apiKey}}"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"companyId\": 20,\n  \"documentId\": \"EX-DEEMEDSUPP-0001\",\n  \"invoiceRef\": \"EX-DEEMEDSUPP-0001\",\n  \"issueDate\": \"2026-09-06\",\n  \"paymentDueDate\": \"2026-10-06\",\n  \"sellerName\": \"TRONSTRIDE FZC\",\n  \"sellerVatTrn\": \"104196887400003\",\n  \"sellerVatScheme\": \"VAT\",\n  \"sellerRegisteredName\": \"TRONSTRIDE FZC\",\n  \"sellerAddressLine1\": \"BUSINESS CENTRE SHARJAH PUBLISHING CITY FREEZONE\",\n  \"sellerAddressLine2\": \"NA\",\n  \"sellerCity\": \"Sharjah\",\n  \"sellerPostalZone\": null,\n  \"sellerCountrySubdivision\": \"SHJ\",\n  \"sellerCountryCode\": \"AE\",\n  \"sellerTelephone\": \"971529031765\",\n  \"sellerEmail\": \"mohamed@tronstride.com\",\n  \"sellerPoBox\": null,\n  \"sellerLegalRegistrationId\": \"714/2015\",\n  \"sellerLegalRegistrationType\": \"TL\",\n  \"sellerLegalRegistrationAuthority\": \"Dubai Economic Department\",\n  \"sellerOtherId\": null,\n  \"invoiceTypeCode\": \"380\",\n  \"invoiceTransactionType\": \"01000000\",\n  \"documentCurrencyCode\": \"AED\",\n  \"buyerName\": \"TRONSTRIDE FZC\",\n  \"buyerRegisteredName\": \"TRONSTRIDE FZC\",\n  \"buyerVatTrn\": \"104196887400003\",\n  \"buyerVatScheme\": \"VAT\",\n  \"buyerOtherId\": \"1041968874\",\n  \"buyerAddressLine1\": \"BUSINESS CENTRE SHARJAH PUBLISHING CITY FREEZONE\",\n  \"buyerAddressLine2\": \"1\",\n  \"buyerCity\": \"SHJ\",\n  \"buyerCountrySubdivision\": \"SHJ\",\n  \"buyerCountryCode\": \"AE\",\n  \"buyerPostalZone\": \"000000\",\n  \"buyerTelephone\": \"971529031765\",\n  \"buyerEmail\": \"kabashik786@gmail.com\",\n  \"buyerLegalRegistrationId\": \"1009077240\",\n  \"buyerLegalRegistrationType\": \"TL\",\n  \"buyerLegalRegistrationAuthority\": \"SPC FREEZONE\",\n  \"customerParticipantId\": \"0235:1041968874\",\n  \"noteEN\": \"Deemed supply - promotional samples handed to customer\",\n  \"payments\": [],\n  \"lines\": [\n    {\n      \"lineNumber\": 1,\n      \"itemName\": \"Promotional samples\",\n      \"itemDescription\": \"Promotional samples\",\n      \"quantity\": 20,\n      \"quantityUom\": \"EA\",\n      \"unitPrice\": 25.0,\n      \"lineNetAmount\": 500.0,\n      \"taxCategory\": \"S\",\n      \"taxRatePercent\": 5,\n      \"lineTaxAmount\": 25.0,\n      \"inclVatAmount\": 525.0\n    }\n  ],\n  \"lineExtensionTotal\": 500.0,\n  \"docLevelDiscount\": 0,\n  \"docLevelCharges\": 0,\n  \"taxAmount\": 25.0,\n  \"totalIncludingTax\": 525.0,\n  \"roundingAmount\": 0,\n  \"payableAmount\": 525.0\n}"
            },
            "url": {
              "raw": "{{baseUrl}}/external/api/v1/eInvoiceEntry/createFull",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "external",
                "api",
                "v1",
                "eInvoiceEntry",
                "createFull"
              ]
            },
            "description": "A normal 380 invoice with transaction type 01000000 (deemed supply). There is no payment: the Payment tab stays empty and the document is routed to the FTA's deemed-supply address instead of a customer.\n\n- 01000000 = deemed supply (position 2). Cannot be combined with 480 / 81.\n- VAT is still charged on the value of the goods even though nobody pays.\n\nValidated and delivered on 2026-09-06 (entry EX-DEEMEDSUPP-0906094646)."
          },
          "response": [
            {
              "name": "Success",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "X-API-KEY",
                    "value": "{{apiKey}}"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"companyId\": 20,\n  \"invoiceRef\": \"IIL-1001309\",\n\n  \"documentId\":                 \"IIL-1001309\",\n  \"issueDate\":                  \"2026-07-14\",\n  \"invoiceTypeCode\":            \"380\",\n  \"invoiceTransactionType\":     \"00000000\",\n  \"documentCurrencyCode\":       \"AED\",\n  \"noteEN\":                     \"INV\",\n  \"taxPointDate\":               null,\n  \"invoiceSupplyDate\":          null,\n  \"paymentDueDate\":             \"2026-09-12\",\n  \"orderReference\":             \"NA\",\n  \"contractDocumentReference\":  \"SIL-301358\",\n  \"originalInvoiceReference\":   \"SIL-301358\",\n  \"originalInvoiceReferenceDate\": \"2026-07-09\",\n  \"buyerReference\":             null,\n  \"invoicePeriodStartDate\":     null,\n  \"invoicePeriodEndDate\":       null,\n\n  \"sellerName\":                 \"TRONSTRIDE FZC\",\n  \"sellerVatTrn\":               \"104196887400003\",\n  \"sellerVatScheme\":            \"VAT\",\n  \"sellerRegisteredName\":       \"TRONSTRIDE FZC\",\n  \"sellerAddressLine1\":         \"BUSINESS CENTRE SHARJAH PUBLISHING CITY FREEZONE\",\n  \"sellerAddressLine2\":         \"NA\",\n  \"sellerCity\":                 \"Sharjah\",\n  \"sellerPostalZone\":           null,\n  \"sellerCountrySubdivision\":   \"SHJ\",\n  \"sellerCountryCode\":          \"AE\",\n  \"sellerTelephone\":            \"971529031765\",\n  \"sellerEmail\":                \"mohamed@tronstride.com\",\n  \"sellerPoBox\":                null,\n\n  \"buyerName\":                  \"HABIB MOHAMMAD SHARIF ABDULLA ALMULLA\",\n  \"buyerVatTrn\":                \"100711669800003\",\n  \"buyerVatScheme\":             \"VAT\",\n  \"buyerRegisteredName\":        \"HABIB MOHAMMAD SHARIF ABDULLA ALMULLA\",\n  \"buyerAddressLine1\":          \"Dubai, UAE\",\n  \"buyerAddressLine2\":          null,\n  \"buyerCity\":                  \"Dubai\",\n  \"buyerPostalZone\":            null,\n  \"buyerCountrySubdivision\":    \"DXB\",\n  \"buyerCountryCode\":           \"AE\",\n  \"buyerTelephone\":             null,\n  \"buyerEmail\":                 null,\n  \"buyerPoBox\":                 null,\n  \"buyerContact\":               null,\n\n  \"sellerLegalRegistrationId\":         \"714/2015\",\n  \"sellerLegalRegistrationType\":       \"TL\",\n  \"sellerLegalRegistrationAuthority\":  \"Dubai Economic Department\",\n  \"sellerOtherId\":                     null,\n  \"buyerLegalRegistrationId\":          null,\n  \"buyerLegalRegistrationType\":        null,\n  \"buyerLegalRegistrationAuthority\":   null,\n  \"buyerOtherId\":                      null,\n\n  \"lineExtensionTotal\":         37500.00,\n  \"docLevelDiscount\":           0.00,\n  \"docLevelCharges\":            0.00,\n  \"taxAmount\":                  1875.00,\n  \"totalIncludingTax\":          39375.00,\n  \"payableAmount\":              39375.00,\n  \"roundingAmount\":             0.00,\n\n  \"accountingCost\":             null,\n  \"specialTaxTreatment\":        null,\n  \"despatchDocRef\":             null,\n  \"receiptDocRef\":              null,\n  \"projectDocRef\":              null,\n  \"originatorDocRef\":           null,\n\n  \"prepaidAmount\":              null,\n  \"taxCurrencyCode\":            null,\n  \"vatInAccountingCurrency\":    null,\n  \"exchangeRate\":               null,\n  \"totalInLocalCurrency\":       null,\n\n  \"deliveryLocation\":           \"I & L\",\n  \"deliveryAddressLine1\":       \"P.O. BOX 3222\",\n  \"deliveryAddressLine2\":       \"SHARJAH, U.A.E.\",\n  \"deliveryAddressLine3\":       \"NA\",\n  \"deliveryCity\":               \"Sharjah\",\n  \"deliveryPostalZone\":         \"NA\",\n  \"deliveryCountrySubdivision\": \"NA\",\n  \"deliveryCountryCode\":        \"AE\",\n  \"deliverySchemeId\":           null,\n  \"deliveryPartyId\":            null,\n  \"deliveryPartyName\":          null,\n  \"deliveryIncoterms\":          null,\n\n  \"taxRepName\":                 null,\n  \"taxRepAddressLine1\":         null,\n  \"taxRepAddressLine2\":         null,\n  \"taxRepAddressLine3\":         null,\n  \"taxRepCity\":                 null,\n  \"taxRepPostalZone\":           null,\n  \"taxRepCountrySubdivision\":   null,\n  \"taxRepCountryCode\":          null,\n  \"taxRepTaxScheme\":            null,\n  \"taxRepTaxId\":                null,\n\n  \"supplierParticipantId\":      null,\n  \"customerParticipantId\":      null,\n\n  \"lines\": [\n    {\n      \"lineNumber\":            1,\n      \"itemName\":              \"Safe Oilgo\",\n      \"itemDescription\":       \"Safe Oilgo\",\n      \"sellerItemId\":          \"ILFGICS003\",\n      \"itemTypeGoodsServices\": null,\n      \"itemCountryOrigin\":     \"AE\",\n      \"quantity\":              15.0,\n      \"quantityUom\":           \"H87\",\n      \"unitPrice\":             2500.00,\n      \"priceBaseQty\":          1.0,\n      \"priceBaseQtyUom\":       \"H87\",\n      \"lineDiscountAmount\":    0,\n      \"lineDiscountPercent\":   0,\n      \"lineChargeAmount\":      0,\n      \"lineNetAmount\":         37500.00,\n      \"taxCategory\":           \"S\",\n      \"taxRatePercent\":        5.0,\n      \"taxScheme\":             \"VAT\",\n      \"lineTaxAmount\":         1875.00,\n      \"inclVatAmount\":         39375.00,\n      \"rcmCode\":               null,\n      \"accountingCost\":        null,\n      \"orderLineRef\":          null,\n      \"periodStart\":           null,\n      \"periodEnd\":             null,\n      \"vatExemptReasonCode\":   null,\n      \"vatExemptReasonText\":   null\n    }\n  ],\n\n  \"allowances\": [],\n\n  \"payments\": [\n    {\n      \"paymentMeansCode\":   \"30\",\n      \"paymentId\":          null,\n      \"remittanceInfo\":     null,\n      \"creditAccountIban\":  \"AE070260001012029678901\",\n      \"creditAccountScheme\": \"IBAN\",\n      \"creditAccountName\":  null,\n      \"cardNumberLast4\":    null,\n      \"cardHolderName\":     null,\n      \"bankBicSwift\":       null,\n      \"bankAddressLine1\":   null,\n      \"bankCity\":           null,\n      \"bankCountry\":        null,\n      \"mandateReferenceId\": null\n    }\n  ],\n\n  \"terms\": [\n    {\n      \"termId\":          null,\n      \"termNote\":        \"60 Days from Inv. Dt.\",\n      \"termAmount\":      39375.00,\n      \"termCurrency\":    \"AED\",\n      \"termInstallDate\": \"2026-09-12\"\n    }\n  ]\n}"
                },
                "url": {
                  "raw": "{{baseUrl}}/external/api/v1/eInvoiceEntry/createFull",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "external",
                    "api",
                    "v1",
                    "eInvoiceEntry",
                    "createFull"
                  ]
                },
                "description": "Creates a full e-invoice entry with lines, allowances, payments, and terms in a single JSON call.\nAll dates: yyyy-MM-dd. For taxCategory='E' the vatExemptReasonCode is mandatory ([ibr-167-ae]).\n\nPeppol routing:\n  supplierParticipantId — seller's Peppol participant ID (e.g. '0088:1234567890123')\n  customerParticipantId — buyer's Peppol participant ID (e.g. '0088:9876543210987')\n  Both fields are optional (nullable).\n\nLegal registration / other IDs (all optional):\n  sellerLegalRegistrationId / buyerLegalRegistrationId       — IBT-030 / IBT-047, e.g. trade license number\n  sellerLegalRegistrationType / buyerLegalRegistrationType   — BTAE-15 / BTAE-16, one of TL, EID, PAS, CD\n  sellerLegalRegistrationAuthority / buyerLegalRegistrationAuthority — BTAE-12/18 / BTAE-11/19: authority name when type is TL/EID/CD, or passport-issuing country when type is PAS\n  sellerOtherId / buyerOtherId — additional tax/other identifier"
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n  \"success\":           true,\n  \"invoiceRef\":        \"INV-001\",\n  \"entryId\":           1042,\n  \"documentId\":        \"INV-2024-001\",\n  \"linesCreated\":      2,\n  \"allowancesCreated\": 1,\n  \"paymentsCreated\":   1,\n  \"termsCreated\":      1\n}"
            },
            {
              "name": "Validation Error (ibr-167-ae)",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "X-API-KEY",
                    "value": "{{apiKey}}"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"companyId\": 20,\n  \"invoiceRef\": \"IIL-1001309\",\n\n  \"documentId\":                 \"IIL-1001309\",\n  \"issueDate\":                  \"2026-07-14\",\n  \"invoiceTypeCode\":            \"380\",\n  \"invoiceTransactionType\":     \"00000000\",\n  \"documentCurrencyCode\":       \"AED\",\n  \"noteEN\":                     \"INV\",\n  \"taxPointDate\":               null,\n  \"invoiceSupplyDate\":          null,\n  \"paymentDueDate\":             \"2026-09-12\",\n  \"orderReference\":             \"NA\",\n  \"contractDocumentReference\":  \"SIL-301358\",\n  \"originalInvoiceReference\":   \"SIL-301358\",\n  \"originalInvoiceReferenceDate\": \"2026-07-09\",\n  \"buyerReference\":             null,\n  \"invoicePeriodStartDate\":     null,\n  \"invoicePeriodEndDate\":       null,\n\n  \"sellerName\":                 \"TRONSTRIDE FZC\",\n  \"sellerVatTrn\":               \"104196887400003\",\n  \"sellerVatScheme\":            \"VAT\",\n  \"sellerRegisteredName\":       \"TRONSTRIDE FZC\",\n  \"sellerAddressLine1\":         \"BUSINESS CENTRE SHARJAH PUBLISHING CITY FREEZONE\",\n  \"sellerAddressLine2\":         \"NA\",\n  \"sellerCity\":                 \"Sharjah\",\n  \"sellerPostalZone\":           null,\n  \"sellerCountrySubdivision\":   \"SHJ\",\n  \"sellerCountryCode\":          \"AE\",\n  \"sellerTelephone\":            \"971529031765\",\n  \"sellerEmail\":                \"mohamed@tronstride.com\",\n  \"sellerPoBox\":                null,\n\n  \"buyerName\":                  \"HABIB MOHAMMAD SHARIF ABDULLA ALMULLA\",\n  \"buyerVatTrn\":                \"100711669800003\",\n  \"buyerVatScheme\":             \"VAT\",\n  \"buyerRegisteredName\":        \"HABIB MOHAMMAD SHARIF ABDULLA ALMULLA\",\n  \"buyerAddressLine1\":          \"Dubai, UAE\",\n  \"buyerAddressLine2\":          null,\n  \"buyerCity\":                  \"Dubai\",\n  \"buyerPostalZone\":            null,\n  \"buyerCountrySubdivision\":    \"DXB\",\n  \"buyerCountryCode\":           \"AE\",\n  \"buyerTelephone\":             null,\n  \"buyerEmail\":                 null,\n  \"buyerPoBox\":                 null,\n  \"buyerContact\":               null,\n\n  \"sellerLegalRegistrationId\":         \"714/2015\",\n  \"sellerLegalRegistrationType\":       \"TL\",\n  \"sellerLegalRegistrationAuthority\":  \"Dubai Economic Department\",\n  \"sellerOtherId\":                     null,\n  \"buyerLegalRegistrationId\":          null,\n  \"buyerLegalRegistrationType\":        null,\n  \"buyerLegalRegistrationAuthority\":   null,\n  \"buyerOtherId\":                      null,\n\n  \"lineExtensionTotal\":         37500.00,\n  \"docLevelDiscount\":           0.00,\n  \"docLevelCharges\":            0.00,\n  \"taxAmount\":                  1875.00,\n  \"totalIncludingTax\":          39375.00,\n  \"payableAmount\":              39375.00,\n  \"roundingAmount\":             0.00,\n\n  \"accountingCost\":             null,\n  \"specialTaxTreatment\":        null,\n  \"despatchDocRef\":             null,\n  \"receiptDocRef\":              null,\n  \"projectDocRef\":              null,\n  \"originatorDocRef\":           null,\n\n  \"prepaidAmount\":              null,\n  \"taxCurrencyCode\":            null,\n  \"vatInAccountingCurrency\":    null,\n  \"exchangeRate\":               null,\n  \"totalInLocalCurrency\":       null,\n\n  \"deliveryLocation\":           \"I & L\",\n  \"deliveryAddressLine1\":       \"P.O. BOX 3222\",\n  \"deliveryAddressLine2\":       \"SHARJAH, U.A.E.\",\n  \"deliveryAddressLine3\":       \"NA\",\n  \"deliveryCity\":               \"Sharjah\",\n  \"deliveryPostalZone\":         \"NA\",\n  \"deliveryCountrySubdivision\": \"NA\",\n  \"deliveryCountryCode\":        \"AE\",\n  \"deliverySchemeId\":           null,\n  \"deliveryPartyId\":            null,\n  \"deliveryPartyName\":          null,\n  \"deliveryIncoterms\":          null,\n\n  \"taxRepName\":                 null,\n  \"taxRepAddressLine1\":         null,\n  \"taxRepAddressLine2\":         null,\n  \"taxRepAddressLine3\":         null,\n  \"taxRepCity\":                 null,\n  \"taxRepPostalZone\":           null,\n  \"taxRepCountrySubdivision\":   null,\n  \"taxRepCountryCode\":          null,\n  \"taxRepTaxScheme\":            null,\n  \"taxRepTaxId\":                null,\n\n  \"supplierParticipantId\":      null,\n  \"customerParticipantId\":      null,\n\n  \"lines\": [\n    {\n      \"lineNumber\":            1,\n      \"itemName\":              \"Safe Oilgo\",\n      \"itemDescription\":       \"Safe Oilgo\",\n      \"sellerItemId\":          \"ILFGICS003\",\n      \"itemTypeGoodsServices\": null,\n      \"itemCountryOrigin\":     \"AE\",\n      \"quantity\":              15.0,\n      \"quantityUom\":           \"H87\",\n      \"unitPrice\":             2500.00,\n      \"priceBaseQty\":          1.0,\n      \"priceBaseQtyUom\":       \"H87\",\n      \"lineDiscountAmount\":    0,\n      \"lineDiscountPercent\":   0,\n      \"lineChargeAmount\":      0,\n      \"lineNetAmount\":         37500.00,\n      \"taxCategory\":           \"S\",\n      \"taxRatePercent\":        5.0,\n      \"taxScheme\":             \"VAT\",\n      \"lineTaxAmount\":         1875.00,\n      \"inclVatAmount\":         39375.00,\n      \"rcmCode\":               null,\n      \"accountingCost\":        null,\n      \"orderLineRef\":          null,\n      \"periodStart\":           null,\n      \"periodEnd\":             null,\n      \"vatExemptReasonCode\":   null,\n      \"vatExemptReasonText\":   null\n    }\n  ],\n\n  \"allowances\": [],\n\n  \"payments\": [\n    {\n      \"paymentMeansCode\":   \"30\",\n      \"paymentId\":          null,\n      \"remittanceInfo\":     null,\n      \"creditAccountIban\":  \"AE070260001012029678901\",\n      \"creditAccountScheme\": \"IBAN\",\n      \"creditAccountName\":  null,\n      \"cardNumberLast4\":    null,\n      \"cardHolderName\":     null,\n      \"bankBicSwift\":       null,\n      \"bankAddressLine1\":   null,\n      \"bankCity\":           null,\n      \"bankCountry\":        null,\n      \"mandateReferenceId\": null\n    }\n  ],\n\n  \"terms\": [\n    {\n      \"termId\":          null,\n      \"termNote\":        \"60 Days from Inv. Dt.\",\n      \"termAmount\":      39375.00,\n      \"termCurrency\":    \"AED\",\n      \"termInstallDate\": \"2026-09-12\"\n    }\n  ]\n}"
                },
                "url": {
                  "raw": "{{baseUrl}}/external/api/v1/eInvoiceEntry/createFull",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "external",
                    "api",
                    "v1",
                    "eInvoiceEntry",
                    "createFull"
                  ]
                },
                "description": "Creates a full e-invoice entry with lines, allowances, payments, and terms in a single JSON call.\nAll dates: yyyy-MM-dd. For taxCategory='E' the vatExemptReasonCode is mandatory ([ibr-167-ae]).\n\nPeppol routing:\n  supplierParticipantId — seller's Peppol participant ID (e.g. '0088:1234567890123')\n  customerParticipantId — buyer's Peppol participant ID (e.g. '0088:9876543210987')\n  Both fields are optional (nullable).\n\nLegal registration / other IDs (all optional):\n  sellerLegalRegistrationId / buyerLegalRegistrationId       — IBT-030 / IBT-047, e.g. trade license number\n  sellerLegalRegistrationType / buyerLegalRegistrationType   — BTAE-15 / BTAE-16, one of TL, EID, PAS, CD\n  sellerLegalRegistrationAuthority / buyerLegalRegistrationAuthority — BTAE-12/18 / BTAE-11/19: authority name when type is TL/EID/CD, or passport-issuing country when type is PAS\n  sellerOtherId / buyerOtherId — additional tax/other identifier"
              },
              "status": "Bad Request",
              "code": 400,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n  \"success\": false,\n  \"error\": \"[ibr-167-ae] Line 1: vatExemptReasonCode is mandatory when taxCategory is 'E'.\"\n}"
            },
            {
              "name": "Unauthorized",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "X-API-KEY",
                    "value": "{{apiKey}}"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"companyId\": 20,\n  \"invoiceRef\": \"IIL-1001309\",\n\n  \"documentId\":                 \"IIL-1001309\",\n  \"issueDate\":                  \"2026-07-14\",\n  \"invoiceTypeCode\":            \"380\",\n  \"invoiceTransactionType\":     \"00000000\",\n  \"documentCurrencyCode\":       \"AED\",\n  \"noteEN\":                     \"INV\",\n  \"taxPointDate\":               null,\n  \"invoiceSupplyDate\":          null,\n  \"paymentDueDate\":             \"2026-09-12\",\n  \"orderReference\":             \"NA\",\n  \"contractDocumentReference\":  \"SIL-301358\",\n  \"originalInvoiceReference\":   \"SIL-301358\",\n  \"originalInvoiceReferenceDate\": \"2026-07-09\",\n  \"buyerReference\":             null,\n  \"invoicePeriodStartDate\":     null,\n  \"invoicePeriodEndDate\":       null,\n\n  \"sellerName\":                 \"TRONSTRIDE FZC\",\n  \"sellerVatTrn\":               \"104196887400003\",\n  \"sellerVatScheme\":            \"VAT\",\n  \"sellerRegisteredName\":       \"TRONSTRIDE FZC\",\n  \"sellerAddressLine1\":         \"BUSINESS CENTRE SHARJAH PUBLISHING CITY FREEZONE\",\n  \"sellerAddressLine2\":         \"NA\",\n  \"sellerCity\":                 \"Sharjah\",\n  \"sellerPostalZone\":           null,\n  \"sellerCountrySubdivision\":   \"SHJ\",\n  \"sellerCountryCode\":          \"AE\",\n  \"sellerTelephone\":            \"971529031765\",\n  \"sellerEmail\":                \"mohamed@tronstride.com\",\n  \"sellerPoBox\":                null,\n\n  \"buyerName\":                  \"HABIB MOHAMMAD SHARIF ABDULLA ALMULLA\",\n  \"buyerVatTrn\":                \"100711669800003\",\n  \"buyerVatScheme\":             \"VAT\",\n  \"buyerRegisteredName\":        \"HABIB MOHAMMAD SHARIF ABDULLA ALMULLA\",\n  \"buyerAddressLine1\":          \"Dubai, UAE\",\n  \"buyerAddressLine2\":          null,\n  \"buyerCity\":                  \"Dubai\",\n  \"buyerPostalZone\":            null,\n  \"buyerCountrySubdivision\":    \"DXB\",\n  \"buyerCountryCode\":           \"AE\",\n  \"buyerTelephone\":             null,\n  \"buyerEmail\":                 null,\n  \"buyerPoBox\":                 null,\n  \"buyerContact\":               null,\n\n  \"sellerLegalRegistrationId\":         \"714/2015\",\n  \"sellerLegalRegistrationType\":       \"TL\",\n  \"sellerLegalRegistrationAuthority\":  \"Dubai Economic Department\",\n  \"sellerOtherId\":                     null,\n  \"buyerLegalRegistrationId\":          null,\n  \"buyerLegalRegistrationType\":        null,\n  \"buyerLegalRegistrationAuthority\":   null,\n  \"buyerOtherId\":                      null,\n\n  \"lineExtensionTotal\":         37500.00,\n  \"docLevelDiscount\":           0.00,\n  \"docLevelCharges\":            0.00,\n  \"taxAmount\":                  1875.00,\n  \"totalIncludingTax\":          39375.00,\n  \"payableAmount\":              39375.00,\n  \"roundingAmount\":             0.00,\n\n  \"accountingCost\":             null,\n  \"specialTaxTreatment\":        null,\n  \"despatchDocRef\":             null,\n  \"receiptDocRef\":              null,\n  \"projectDocRef\":              null,\n  \"originatorDocRef\":           null,\n\n  \"prepaidAmount\":              null,\n  \"taxCurrencyCode\":            null,\n  \"vatInAccountingCurrency\":    null,\n  \"exchangeRate\":               null,\n  \"totalInLocalCurrency\":       null,\n\n  \"deliveryLocation\":           \"I & L\",\n  \"deliveryAddressLine1\":       \"P.O. BOX 3222\",\n  \"deliveryAddressLine2\":       \"SHARJAH, U.A.E.\",\n  \"deliveryAddressLine3\":       \"NA\",\n  \"deliveryCity\":               \"Sharjah\",\n  \"deliveryPostalZone\":         \"NA\",\n  \"deliveryCountrySubdivision\": \"NA\",\n  \"deliveryCountryCode\":        \"AE\",\n  \"deliverySchemeId\":           null,\n  \"deliveryPartyId\":            null,\n  \"deliveryPartyName\":          null,\n  \"deliveryIncoterms\":          null,\n\n  \"taxRepName\":                 null,\n  \"taxRepAddressLine1\":         null,\n  \"taxRepAddressLine2\":         null,\n  \"taxRepAddressLine3\":         null,\n  \"taxRepCity\":                 null,\n  \"taxRepPostalZone\":           null,\n  \"taxRepCountrySubdivision\":   null,\n  \"taxRepCountryCode\":          null,\n  \"taxRepTaxScheme\":            null,\n  \"taxRepTaxId\":                null,\n\n  \"supplierParticipantId\":      null,\n  \"customerParticipantId\":      null,\n\n  \"lines\": [\n    {\n      \"lineNumber\":            1,\n      \"itemName\":              \"Safe Oilgo\",\n      \"itemDescription\":       \"Safe Oilgo\",\n      \"sellerItemId\":          \"ILFGICS003\",\n      \"itemTypeGoodsServices\": null,\n      \"itemCountryOrigin\":     \"AE\",\n      \"quantity\":              15.0,\n      \"quantityUom\":           \"H87\",\n      \"unitPrice\":             2500.00,\n      \"priceBaseQty\":          1.0,\n      \"priceBaseQtyUom\":       \"H87\",\n      \"lineDiscountAmount\":    0,\n      \"lineDiscountPercent\":   0,\n      \"lineChargeAmount\":      0,\n      \"lineNetAmount\":         37500.00,\n      \"taxCategory\":           \"S\",\n      \"taxRatePercent\":        5.0,\n      \"taxScheme\":             \"VAT\",\n      \"lineTaxAmount\":         1875.00,\n      \"inclVatAmount\":         39375.00,\n      \"rcmCode\":               null,\n      \"accountingCost\":        null,\n      \"orderLineRef\":          null,\n      \"periodStart\":           null,\n      \"periodEnd\":             null,\n      \"vatExemptReasonCode\":   null,\n      \"vatExemptReasonText\":   null\n    }\n  ],\n\n  \"allowances\": [],\n\n  \"payments\": [\n    {\n      \"paymentMeansCode\":   \"30\",\n      \"paymentId\":          null,\n      \"remittanceInfo\":     null,\n      \"creditAccountIban\":  \"AE070260001012029678901\",\n      \"creditAccountScheme\": \"IBAN\",\n      \"creditAccountName\":  null,\n      \"cardNumberLast4\":    null,\n      \"cardHolderName\":     null,\n      \"bankBicSwift\":       null,\n      \"bankAddressLine1\":   null,\n      \"bankCity\":           null,\n      \"bankCountry\":        null,\n      \"mandateReferenceId\": null\n    }\n  ],\n\n  \"terms\": [\n    {\n      \"termId\":          null,\n      \"termNote\":        \"60 Days from Inv. Dt.\",\n      \"termAmount\":      39375.00,\n      \"termCurrency\":    \"AED\",\n      \"termInstallDate\": \"2026-09-12\"\n    }\n  ]\n}"
                },
                "url": {
                  "raw": "{{baseUrl}}/external/api/v1/eInvoiceEntry/createFull",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "external",
                    "api",
                    "v1",
                    "eInvoiceEntry",
                    "createFull"
                  ]
                },
                "description": "Creates a full e-invoice entry with lines, allowances, payments, and terms in a single JSON call.\nAll dates: yyyy-MM-dd. For taxCategory='E' the vatExemptReasonCode is mandatory ([ibr-167-ae]).\n\nPeppol routing:\n  supplierParticipantId — seller's Peppol participant ID (e.g. '0088:1234567890123')\n  customerParticipantId — buyer's Peppol participant ID (e.g. '0088:9876543210987')\n  Both fields are optional (nullable).\n\nLegal registration / other IDs (all optional):\n  sellerLegalRegistrationId / buyerLegalRegistrationId       — IBT-030 / IBT-047, e.g. trade license number\n  sellerLegalRegistrationType / buyerLegalRegistrationType   — BTAE-15 / BTAE-16, one of TL, EID, PAS, CD\n  sellerLegalRegistrationAuthority / buyerLegalRegistrationAuthority — BTAE-12/18 / BTAE-11/19: authority name when type is TL/EID/CD, or passport-issuing country when type is PAS\n  sellerOtherId / buyerOtherId — additional tax/other identifier"
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n  \"errorKey\": \"API key missing\"\n}"
            }
          ],
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test(\"HTTP 200\", () => pm.response.to.have.status(200));",
                  "const j = pm.response.json();",
                  "pm.test(\"success = true (else see errorKey / error)\", () => pm.expect(j.success, JSON.stringify(j)).to.be.true);",
                  "pm.test(\"entry created or overwritten\", () => pm.expect([\"CREATED\", \"OVERWRITTEN\"]).to.include(j.status));",
                  "if (j.entryId) { pm.collectionVariables.set(\"entryId\", String(j.entryId)); console.log(\"entryId =\", j.entryId, \"documentId =\", j.documentId); }"
                ]
              }
            }
          ]
        },
        {
          "name": "3.6 UAE buyer not yet on Peppol",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "X-API-KEY",
                "value": "{{apiKey}}"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"companyId\": 20,\n  \"documentId\": \"EX-BUYERNOTON-0001\",\n  \"invoiceRef\": \"EX-BUYERNOTON-0001\",\n  \"issueDate\": \"2026-09-06\",\n  \"paymentDueDate\": \"2026-10-06\",\n  \"sellerName\": \"TRONSTRIDE FZC\",\n  \"sellerVatTrn\": \"104196887400003\",\n  \"sellerVatScheme\": \"VAT\",\n  \"sellerRegisteredName\": \"TRONSTRIDE FZC\",\n  \"sellerAddressLine1\": \"BUSINESS CENTRE SHARJAH PUBLISHING CITY FREEZONE\",\n  \"sellerAddressLine2\": \"NA\",\n  \"sellerCity\": \"Sharjah\",\n  \"sellerPostalZone\": null,\n  \"sellerCountrySubdivision\": \"SHJ\",\n  \"sellerCountryCode\": \"AE\",\n  \"sellerTelephone\": \"971529031765\",\n  \"sellerEmail\": \"mohamed@tronstride.com\",\n  \"sellerPoBox\": null,\n  \"sellerLegalRegistrationId\": \"714/2015\",\n  \"sellerLegalRegistrationType\": \"TL\",\n  \"sellerLegalRegistrationAuthority\": \"Dubai Economic Department\",\n  \"sellerOtherId\": null,\n  \"invoiceTypeCode\": \"380\",\n  \"invoiceTransactionType\": \"00000000\",\n  \"documentCurrencyCode\": \"AED\",\n  \"buyerName\": \"Al Noor Trading LLC\",\n  \"buyerRegisteredName\": \"Al Noor Trading LLC\",\n  \"buyerVatTrn\": \"100000000000103\",\n  \"buyerVatScheme\": \"VAT\",\n  \"buyerOtherId\": \"\",\n  \"buyerAddressLine1\": \"Al Khalid Road, Building 10\",\n  \"buyerAddressLine2\": \"1\",\n  \"buyerCity\": \"Dubai\",\n  \"buyerCountrySubdivision\": \"DXB\",\n  \"buyerCountryCode\": \"AE\",\n  \"buyerPostalZone\": \"\",\n  \"buyerTelephone\": \"971529031765\",\n  \"buyerEmail\": \"kabashik786@gmail.com\",\n  \"buyerLegalRegistrationId\": \"CN-7654321\",\n  \"buyerLegalRegistrationType\": \"TL\",\n  \"buyerLegalRegistrationAuthority\": \"Dubai Economy\",\n  \"customerParticipantId\": \"\",\n  \"noteEN\": \"Customer not yet registered on Peppol\",\n  \"payments\": [\n    {\n      \"paymentMeansCode\": \"10\"\n    }\n  ],\n  \"lines\": [\n    {\n      \"lineNumber\": 1,\n      \"itemName\": \"Maintenance services\",\n      \"itemDescription\": \"Maintenance services\",\n      \"quantity\": 1,\n      \"quantityUom\": \"EA\",\n      \"unitPrice\": 1000.0,\n      \"lineNetAmount\": 1000.0,\n      \"taxCategory\": \"S\",\n      \"taxRatePercent\": 5,\n      \"lineTaxAmount\": 50.0,\n      \"inclVatAmount\": 1050.0\n    }\n  ],\n  \"lineExtensionTotal\": 1000.0,\n  \"docLevelDiscount\": 0,\n  \"docLevelCharges\": 0,\n  \"taxAmount\": 50.0,\n  \"totalIncludingTax\": 1050.0,\n  \"roundingAmount\": 0,\n  \"payableAmount\": 1050.0\n}"
            },
            "url": {
              "raw": "{{baseUrl}}/external/api/v1/eInvoiceEntry/createFull",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "external",
                "api",
                "v1",
                "eInvoiceEntry",
                "createFull"
              ]
            },
            "description": "Exactly like a standard invoice. When the customer is not found in the Peppol network the document is still reported to the FTA and delivered to the 'buyer not registered' address; you send the customer their copy as before.\n\n- The customer's real TRN. The system checks the network and routes automatically.\n- Leave empty: it is derived from the TRN and the network check.\n\nValidated on 2026-09-06 (entry EX-BUYERNOTON-0906094652); routing to the not-registered address needs the September orchestrator build."
          },
          "response": [
            {
              "name": "Success",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "X-API-KEY",
                    "value": "{{apiKey}}"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"companyId\": 20,\n  \"invoiceRef\": \"IIL-1001309\",\n\n  \"documentId\":                 \"IIL-1001309\",\n  \"issueDate\":                  \"2026-07-14\",\n  \"invoiceTypeCode\":            \"380\",\n  \"invoiceTransactionType\":     \"00000000\",\n  \"documentCurrencyCode\":       \"AED\",\n  \"noteEN\":                     \"INV\",\n  \"taxPointDate\":               null,\n  \"invoiceSupplyDate\":          null,\n  \"paymentDueDate\":             \"2026-09-12\",\n  \"orderReference\":             \"NA\",\n  \"contractDocumentReference\":  \"SIL-301358\",\n  \"originalInvoiceReference\":   \"SIL-301358\",\n  \"originalInvoiceReferenceDate\": \"2026-07-09\",\n  \"buyerReference\":             null,\n  \"invoicePeriodStartDate\":     null,\n  \"invoicePeriodEndDate\":       null,\n\n  \"sellerName\":                 \"TRONSTRIDE FZC\",\n  \"sellerVatTrn\":               \"104196887400003\",\n  \"sellerVatScheme\":            \"VAT\",\n  \"sellerRegisteredName\":       \"TRONSTRIDE FZC\",\n  \"sellerAddressLine1\":         \"BUSINESS CENTRE SHARJAH PUBLISHING CITY FREEZONE\",\n  \"sellerAddressLine2\":         \"NA\",\n  \"sellerCity\":                 \"Sharjah\",\n  \"sellerPostalZone\":           null,\n  \"sellerCountrySubdivision\":   \"SHJ\",\n  \"sellerCountryCode\":          \"AE\",\n  \"sellerTelephone\":            \"971529031765\",\n  \"sellerEmail\":                \"mohamed@tronstride.com\",\n  \"sellerPoBox\":                null,\n\n  \"buyerName\":                  \"HABIB MOHAMMAD SHARIF ABDULLA ALMULLA\",\n  \"buyerVatTrn\":                \"100711669800003\",\n  \"buyerVatScheme\":             \"VAT\",\n  \"buyerRegisteredName\":        \"HABIB MOHAMMAD SHARIF ABDULLA ALMULLA\",\n  \"buyerAddressLine1\":          \"Dubai, UAE\",\n  \"buyerAddressLine2\":          null,\n  \"buyerCity\":                  \"Dubai\",\n  \"buyerPostalZone\":            null,\n  \"buyerCountrySubdivision\":    \"DXB\",\n  \"buyerCountryCode\":           \"AE\",\n  \"buyerTelephone\":             null,\n  \"buyerEmail\":                 null,\n  \"buyerPoBox\":                 null,\n  \"buyerContact\":               null,\n\n  \"sellerLegalRegistrationId\":         \"714/2015\",\n  \"sellerLegalRegistrationType\":       \"TL\",\n  \"sellerLegalRegistrationAuthority\":  \"Dubai Economic Department\",\n  \"sellerOtherId\":                     null,\n  \"buyerLegalRegistrationId\":          null,\n  \"buyerLegalRegistrationType\":        null,\n  \"buyerLegalRegistrationAuthority\":   null,\n  \"buyerOtherId\":                      null,\n\n  \"lineExtensionTotal\":         37500.00,\n  \"docLevelDiscount\":           0.00,\n  \"docLevelCharges\":            0.00,\n  \"taxAmount\":                  1875.00,\n  \"totalIncludingTax\":          39375.00,\n  \"payableAmount\":              39375.00,\n  \"roundingAmount\":             0.00,\n\n  \"accountingCost\":             null,\n  \"specialTaxTreatment\":        null,\n  \"despatchDocRef\":             null,\n  \"receiptDocRef\":              null,\n  \"projectDocRef\":              null,\n  \"originatorDocRef\":           null,\n\n  \"prepaidAmount\":              null,\n  \"taxCurrencyCode\":            null,\n  \"vatInAccountingCurrency\":    null,\n  \"exchangeRate\":               null,\n  \"totalInLocalCurrency\":       null,\n\n  \"deliveryLocation\":           \"I & L\",\n  \"deliveryAddressLine1\":       \"P.O. BOX 3222\",\n  \"deliveryAddressLine2\":       \"SHARJAH, U.A.E.\",\n  \"deliveryAddressLine3\":       \"NA\",\n  \"deliveryCity\":               \"Sharjah\",\n  \"deliveryPostalZone\":         \"NA\",\n  \"deliveryCountrySubdivision\": \"NA\",\n  \"deliveryCountryCode\":        \"AE\",\n  \"deliverySchemeId\":           null,\n  \"deliveryPartyId\":            null,\n  \"deliveryPartyName\":          null,\n  \"deliveryIncoterms\":          null,\n\n  \"taxRepName\":                 null,\n  \"taxRepAddressLine1\":         null,\n  \"taxRepAddressLine2\":         null,\n  \"taxRepAddressLine3\":         null,\n  \"taxRepCity\":                 null,\n  \"taxRepPostalZone\":           null,\n  \"taxRepCountrySubdivision\":   null,\n  \"taxRepCountryCode\":          null,\n  \"taxRepTaxScheme\":            null,\n  \"taxRepTaxId\":                null,\n\n  \"supplierParticipantId\":      null,\n  \"customerParticipantId\":      null,\n\n  \"lines\": [\n    {\n      \"lineNumber\":            1,\n      \"itemName\":              \"Safe Oilgo\",\n      \"itemDescription\":       \"Safe Oilgo\",\n      \"sellerItemId\":          \"ILFGICS003\",\n      \"itemTypeGoodsServices\": null,\n      \"itemCountryOrigin\":     \"AE\",\n      \"quantity\":              15.0,\n      \"quantityUom\":           \"H87\",\n      \"unitPrice\":             2500.00,\n      \"priceBaseQty\":          1.0,\n      \"priceBaseQtyUom\":       \"H87\",\n      \"lineDiscountAmount\":    0,\n      \"lineDiscountPercent\":   0,\n      \"lineChargeAmount\":      0,\n      \"lineNetAmount\":         37500.00,\n      \"taxCategory\":           \"S\",\n      \"taxRatePercent\":        5.0,\n      \"taxScheme\":             \"VAT\",\n      \"lineTaxAmount\":         1875.00,\n      \"inclVatAmount\":         39375.00,\n      \"rcmCode\":               null,\n      \"accountingCost\":        null,\n      \"orderLineRef\":          null,\n      \"periodStart\":           null,\n      \"periodEnd\":             null,\n      \"vatExemptReasonCode\":   null,\n      \"vatExemptReasonText\":   null\n    }\n  ],\n\n  \"allowances\": [],\n\n  \"payments\": [\n    {\n      \"paymentMeansCode\":   \"30\",\n      \"paymentId\":          null,\n      \"remittanceInfo\":     null,\n      \"creditAccountIban\":  \"AE070260001012029678901\",\n      \"creditAccountScheme\": \"IBAN\",\n      \"creditAccountName\":  null,\n      \"cardNumberLast4\":    null,\n      \"cardHolderName\":     null,\n      \"bankBicSwift\":       null,\n      \"bankAddressLine1\":   null,\n      \"bankCity\":           null,\n      \"bankCountry\":        null,\n      \"mandateReferenceId\": null\n    }\n  ],\n\n  \"terms\": [\n    {\n      \"termId\":          null,\n      \"termNote\":        \"60 Days from Inv. Dt.\",\n      \"termAmount\":      39375.00,\n      \"termCurrency\":    \"AED\",\n      \"termInstallDate\": \"2026-09-12\"\n    }\n  ]\n}"
                },
                "url": {
                  "raw": "{{baseUrl}}/external/api/v1/eInvoiceEntry/createFull",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "external",
                    "api",
                    "v1",
                    "eInvoiceEntry",
                    "createFull"
                  ]
                },
                "description": "Creates a full e-invoice entry with lines, allowances, payments, and terms in a single JSON call.\nAll dates: yyyy-MM-dd. For taxCategory='E' the vatExemptReasonCode is mandatory ([ibr-167-ae]).\n\nPeppol routing:\n  supplierParticipantId — seller's Peppol participant ID (e.g. '0088:1234567890123')\n  customerParticipantId — buyer's Peppol participant ID (e.g. '0088:9876543210987')\n  Both fields are optional (nullable).\n\nLegal registration / other IDs (all optional):\n  sellerLegalRegistrationId / buyerLegalRegistrationId       — IBT-030 / IBT-047, e.g. trade license number\n  sellerLegalRegistrationType / buyerLegalRegistrationType   — BTAE-15 / BTAE-16, one of TL, EID, PAS, CD\n  sellerLegalRegistrationAuthority / buyerLegalRegistrationAuthority — BTAE-12/18 / BTAE-11/19: authority name when type is TL/EID/CD, or passport-issuing country when type is PAS\n  sellerOtherId / buyerOtherId — additional tax/other identifier"
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n  \"success\":           true,\n  \"invoiceRef\":        \"INV-001\",\n  \"entryId\":           1042,\n  \"documentId\":        \"INV-2024-001\",\n  \"linesCreated\":      2,\n  \"allowancesCreated\": 1,\n  \"paymentsCreated\":   1,\n  \"termsCreated\":      1\n}"
            },
            {
              "name": "Validation Error (ibr-167-ae)",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "X-API-KEY",
                    "value": "{{apiKey}}"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"companyId\": 20,\n  \"invoiceRef\": \"IIL-1001309\",\n\n  \"documentId\":                 \"IIL-1001309\",\n  \"issueDate\":                  \"2026-07-14\",\n  \"invoiceTypeCode\":            \"380\",\n  \"invoiceTransactionType\":     \"00000000\",\n  \"documentCurrencyCode\":       \"AED\",\n  \"noteEN\":                     \"INV\",\n  \"taxPointDate\":               null,\n  \"invoiceSupplyDate\":          null,\n  \"paymentDueDate\":             \"2026-09-12\",\n  \"orderReference\":             \"NA\",\n  \"contractDocumentReference\":  \"SIL-301358\",\n  \"originalInvoiceReference\":   \"SIL-301358\",\n  \"originalInvoiceReferenceDate\": \"2026-07-09\",\n  \"buyerReference\":             null,\n  \"invoicePeriodStartDate\":     null,\n  \"invoicePeriodEndDate\":       null,\n\n  \"sellerName\":                 \"TRONSTRIDE FZC\",\n  \"sellerVatTrn\":               \"104196887400003\",\n  \"sellerVatScheme\":            \"VAT\",\n  \"sellerRegisteredName\":       \"TRONSTRIDE FZC\",\n  \"sellerAddressLine1\":         \"BUSINESS CENTRE SHARJAH PUBLISHING CITY FREEZONE\",\n  \"sellerAddressLine2\":         \"NA\",\n  \"sellerCity\":                 \"Sharjah\",\n  \"sellerPostalZone\":           null,\n  \"sellerCountrySubdivision\":   \"SHJ\",\n  \"sellerCountryCode\":          \"AE\",\n  \"sellerTelephone\":            \"971529031765\",\n  \"sellerEmail\":                \"mohamed@tronstride.com\",\n  \"sellerPoBox\":                null,\n\n  \"buyerName\":                  \"HABIB MOHAMMAD SHARIF ABDULLA ALMULLA\",\n  \"buyerVatTrn\":                \"100711669800003\",\n  \"buyerVatScheme\":             \"VAT\",\n  \"buyerRegisteredName\":        \"HABIB MOHAMMAD SHARIF ABDULLA ALMULLA\",\n  \"buyerAddressLine1\":          \"Dubai, UAE\",\n  \"buyerAddressLine2\":          null,\n  \"buyerCity\":                  \"Dubai\",\n  \"buyerPostalZone\":            null,\n  \"buyerCountrySubdivision\":    \"DXB\",\n  \"buyerCountryCode\":           \"AE\",\n  \"buyerTelephone\":             null,\n  \"buyerEmail\":                 null,\n  \"buyerPoBox\":                 null,\n  \"buyerContact\":               null,\n\n  \"sellerLegalRegistrationId\":         \"714/2015\",\n  \"sellerLegalRegistrationType\":       \"TL\",\n  \"sellerLegalRegistrationAuthority\":  \"Dubai Economic Department\",\n  \"sellerOtherId\":                     null,\n  \"buyerLegalRegistrationId\":          null,\n  \"buyerLegalRegistrationType\":        null,\n  \"buyerLegalRegistrationAuthority\":   null,\n  \"buyerOtherId\":                      null,\n\n  \"lineExtensionTotal\":         37500.00,\n  \"docLevelDiscount\":           0.00,\n  \"docLevelCharges\":            0.00,\n  \"taxAmount\":                  1875.00,\n  \"totalIncludingTax\":          39375.00,\n  \"payableAmount\":              39375.00,\n  \"roundingAmount\":             0.00,\n\n  \"accountingCost\":             null,\n  \"specialTaxTreatment\":        null,\n  \"despatchDocRef\":             null,\n  \"receiptDocRef\":              null,\n  \"projectDocRef\":              null,\n  \"originatorDocRef\":           null,\n\n  \"prepaidAmount\":              null,\n  \"taxCurrencyCode\":            null,\n  \"vatInAccountingCurrency\":    null,\n  \"exchangeRate\":               null,\n  \"totalInLocalCurrency\":       null,\n\n  \"deliveryLocation\":           \"I & L\",\n  \"deliveryAddressLine1\":       \"P.O. BOX 3222\",\n  \"deliveryAddressLine2\":       \"SHARJAH, U.A.E.\",\n  \"deliveryAddressLine3\":       \"NA\",\n  \"deliveryCity\":               \"Sharjah\",\n  \"deliveryPostalZone\":         \"NA\",\n  \"deliveryCountrySubdivision\": \"NA\",\n  \"deliveryCountryCode\":        \"AE\",\n  \"deliverySchemeId\":           null,\n  \"deliveryPartyId\":            null,\n  \"deliveryPartyName\":          null,\n  \"deliveryIncoterms\":          null,\n\n  \"taxRepName\":                 null,\n  \"taxRepAddressLine1\":         null,\n  \"taxRepAddressLine2\":         null,\n  \"taxRepAddressLine3\":         null,\n  \"taxRepCity\":                 null,\n  \"taxRepPostalZone\":           null,\n  \"taxRepCountrySubdivision\":   null,\n  \"taxRepCountryCode\":          null,\n  \"taxRepTaxScheme\":            null,\n  \"taxRepTaxId\":                null,\n\n  \"supplierParticipantId\":      null,\n  \"customerParticipantId\":      null,\n\n  \"lines\": [\n    {\n      \"lineNumber\":            1,\n      \"itemName\":              \"Safe Oilgo\",\n      \"itemDescription\":       \"Safe Oilgo\",\n      \"sellerItemId\":          \"ILFGICS003\",\n      \"itemTypeGoodsServices\": null,\n      \"itemCountryOrigin\":     \"AE\",\n      \"quantity\":              15.0,\n      \"quantityUom\":           \"H87\",\n      \"unitPrice\":             2500.00,\n      \"priceBaseQty\":          1.0,\n      \"priceBaseQtyUom\":       \"H87\",\n      \"lineDiscountAmount\":    0,\n      \"lineDiscountPercent\":   0,\n      \"lineChargeAmount\":      0,\n      \"lineNetAmount\":         37500.00,\n      \"taxCategory\":           \"S\",\n      \"taxRatePercent\":        5.0,\n      \"taxScheme\":             \"VAT\",\n      \"lineTaxAmount\":         1875.00,\n      \"inclVatAmount\":         39375.00,\n      \"rcmCode\":               null,\n      \"accountingCost\":        null,\n      \"orderLineRef\":          null,\n      \"periodStart\":           null,\n      \"periodEnd\":             null,\n      \"vatExemptReasonCode\":   null,\n      \"vatExemptReasonText\":   null\n    }\n  ],\n\n  \"allowances\": [],\n\n  \"payments\": [\n    {\n      \"paymentMeansCode\":   \"30\",\n      \"paymentId\":          null,\n      \"remittanceInfo\":     null,\n      \"creditAccountIban\":  \"AE070260001012029678901\",\n      \"creditAccountScheme\": \"IBAN\",\n      \"creditAccountName\":  null,\n      \"cardNumberLast4\":    null,\n      \"cardHolderName\":     null,\n      \"bankBicSwift\":       null,\n      \"bankAddressLine1\":   null,\n      \"bankCity\":           null,\n      \"bankCountry\":        null,\n      \"mandateReferenceId\": null\n    }\n  ],\n\n  \"terms\": [\n    {\n      \"termId\":          null,\n      \"termNote\":        \"60 Days from Inv. Dt.\",\n      \"termAmount\":      39375.00,\n      \"termCurrency\":    \"AED\",\n      \"termInstallDate\": \"2026-09-12\"\n    }\n  ]\n}"
                },
                "url": {
                  "raw": "{{baseUrl}}/external/api/v1/eInvoiceEntry/createFull",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "external",
                    "api",
                    "v1",
                    "eInvoiceEntry",
                    "createFull"
                  ]
                },
                "description": "Creates a full e-invoice entry with lines, allowances, payments, and terms in a single JSON call.\nAll dates: yyyy-MM-dd. For taxCategory='E' the vatExemptReasonCode is mandatory ([ibr-167-ae]).\n\nPeppol routing:\n  supplierParticipantId — seller's Peppol participant ID (e.g. '0088:1234567890123')\n  customerParticipantId — buyer's Peppol participant ID (e.g. '0088:9876543210987')\n  Both fields are optional (nullable).\n\nLegal registration / other IDs (all optional):\n  sellerLegalRegistrationId / buyerLegalRegistrationId       — IBT-030 / IBT-047, e.g. trade license number\n  sellerLegalRegistrationType / buyerLegalRegistrationType   — BTAE-15 / BTAE-16, one of TL, EID, PAS, CD\n  sellerLegalRegistrationAuthority / buyerLegalRegistrationAuthority — BTAE-12/18 / BTAE-11/19: authority name when type is TL/EID/CD, or passport-issuing country when type is PAS\n  sellerOtherId / buyerOtherId — additional tax/other identifier"
              },
              "status": "Bad Request",
              "code": 400,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n  \"success\": false,\n  \"error\": \"[ibr-167-ae] Line 1: vatExemptReasonCode is mandatory when taxCategory is 'E'.\"\n}"
            },
            {
              "name": "Unauthorized",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "X-API-KEY",
                    "value": "{{apiKey}}"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"companyId\": 20,\n  \"invoiceRef\": \"IIL-1001309\",\n\n  \"documentId\":                 \"IIL-1001309\",\n  \"issueDate\":                  \"2026-07-14\",\n  \"invoiceTypeCode\":            \"380\",\n  \"invoiceTransactionType\":     \"00000000\",\n  \"documentCurrencyCode\":       \"AED\",\n  \"noteEN\":                     \"INV\",\n  \"taxPointDate\":               null,\n  \"invoiceSupplyDate\":          null,\n  \"paymentDueDate\":             \"2026-09-12\",\n  \"orderReference\":             \"NA\",\n  \"contractDocumentReference\":  \"SIL-301358\",\n  \"originalInvoiceReference\":   \"SIL-301358\",\n  \"originalInvoiceReferenceDate\": \"2026-07-09\",\n  \"buyerReference\":             null,\n  \"invoicePeriodStartDate\":     null,\n  \"invoicePeriodEndDate\":       null,\n\n  \"sellerName\":                 \"TRONSTRIDE FZC\",\n  \"sellerVatTrn\":               \"104196887400003\",\n  \"sellerVatScheme\":            \"VAT\",\n  \"sellerRegisteredName\":       \"TRONSTRIDE FZC\",\n  \"sellerAddressLine1\":         \"BUSINESS CENTRE SHARJAH PUBLISHING CITY FREEZONE\",\n  \"sellerAddressLine2\":         \"NA\",\n  \"sellerCity\":                 \"Sharjah\",\n  \"sellerPostalZone\":           null,\n  \"sellerCountrySubdivision\":   \"SHJ\",\n  \"sellerCountryCode\":          \"AE\",\n  \"sellerTelephone\":            \"971529031765\",\n  \"sellerEmail\":                \"mohamed@tronstride.com\",\n  \"sellerPoBox\":                null,\n\n  \"buyerName\":                  \"HABIB MOHAMMAD SHARIF ABDULLA ALMULLA\",\n  \"buyerVatTrn\":                \"100711669800003\",\n  \"buyerVatScheme\":             \"VAT\",\n  \"buyerRegisteredName\":        \"HABIB MOHAMMAD SHARIF ABDULLA ALMULLA\",\n  \"buyerAddressLine1\":          \"Dubai, UAE\",\n  \"buyerAddressLine2\":          null,\n  \"buyerCity\":                  \"Dubai\",\n  \"buyerPostalZone\":            null,\n  \"buyerCountrySubdivision\":    \"DXB\",\n  \"buyerCountryCode\":           \"AE\",\n  \"buyerTelephone\":             null,\n  \"buyerEmail\":                 null,\n  \"buyerPoBox\":                 null,\n  \"buyerContact\":               null,\n\n  \"sellerLegalRegistrationId\":         \"714/2015\",\n  \"sellerLegalRegistrationType\":       \"TL\",\n  \"sellerLegalRegistrationAuthority\":  \"Dubai Economic Department\",\n  \"sellerOtherId\":                     null,\n  \"buyerLegalRegistrationId\":          null,\n  \"buyerLegalRegistrationType\":        null,\n  \"buyerLegalRegistrationAuthority\":   null,\n  \"buyerOtherId\":                      null,\n\n  \"lineExtensionTotal\":         37500.00,\n  \"docLevelDiscount\":           0.00,\n  \"docLevelCharges\":            0.00,\n  \"taxAmount\":                  1875.00,\n  \"totalIncludingTax\":          39375.00,\n  \"payableAmount\":              39375.00,\n  \"roundingAmount\":             0.00,\n\n  \"accountingCost\":             null,\n  \"specialTaxTreatment\":        null,\n  \"despatchDocRef\":             null,\n  \"receiptDocRef\":              null,\n  \"projectDocRef\":              null,\n  \"originatorDocRef\":           null,\n\n  \"prepaidAmount\":              null,\n  \"taxCurrencyCode\":            null,\n  \"vatInAccountingCurrency\":    null,\n  \"exchangeRate\":               null,\n  \"totalInLocalCurrency\":       null,\n\n  \"deliveryLocation\":           \"I & L\",\n  \"deliveryAddressLine1\":       \"P.O. BOX 3222\",\n  \"deliveryAddressLine2\":       \"SHARJAH, U.A.E.\",\n  \"deliveryAddressLine3\":       \"NA\",\n  \"deliveryCity\":               \"Sharjah\",\n  \"deliveryPostalZone\":         \"NA\",\n  \"deliveryCountrySubdivision\": \"NA\",\n  \"deliveryCountryCode\":        \"AE\",\n  \"deliverySchemeId\":           null,\n  \"deliveryPartyId\":            null,\n  \"deliveryPartyName\":          null,\n  \"deliveryIncoterms\":          null,\n\n  \"taxRepName\":                 null,\n  \"taxRepAddressLine1\":         null,\n  \"taxRepAddressLine2\":         null,\n  \"taxRepAddressLine3\":         null,\n  \"taxRepCity\":                 null,\n  \"taxRepPostalZone\":           null,\n  \"taxRepCountrySubdivision\":   null,\n  \"taxRepCountryCode\":          null,\n  \"taxRepTaxScheme\":            null,\n  \"taxRepTaxId\":                null,\n\n  \"supplierParticipantId\":      null,\n  \"customerParticipantId\":      null,\n\n  \"lines\": [\n    {\n      \"lineNumber\":            1,\n      \"itemName\":              \"Safe Oilgo\",\n      \"itemDescription\":       \"Safe Oilgo\",\n      \"sellerItemId\":          \"ILFGICS003\",\n      \"itemTypeGoodsServices\": null,\n      \"itemCountryOrigin\":     \"AE\",\n      \"quantity\":              15.0,\n      \"quantityUom\":           \"H87\",\n      \"unitPrice\":             2500.00,\n      \"priceBaseQty\":          1.0,\n      \"priceBaseQtyUom\":       \"H87\",\n      \"lineDiscountAmount\":    0,\n      \"lineDiscountPercent\":   0,\n      \"lineChargeAmount\":      0,\n      \"lineNetAmount\":         37500.00,\n      \"taxCategory\":           \"S\",\n      \"taxRatePercent\":        5.0,\n      \"taxScheme\":             \"VAT\",\n      \"lineTaxAmount\":         1875.00,\n      \"inclVatAmount\":         39375.00,\n      \"rcmCode\":               null,\n      \"accountingCost\":        null,\n      \"orderLineRef\":          null,\n      \"periodStart\":           null,\n      \"periodEnd\":             null,\n      \"vatExemptReasonCode\":   null,\n      \"vatExemptReasonText\":   null\n    }\n  ],\n\n  \"allowances\": [],\n\n  \"payments\": [\n    {\n      \"paymentMeansCode\":   \"30\",\n      \"paymentId\":          null,\n      \"remittanceInfo\":     null,\n      \"creditAccountIban\":  \"AE070260001012029678901\",\n      \"creditAccountScheme\": \"IBAN\",\n      \"creditAccountName\":  null,\n      \"cardNumberLast4\":    null,\n      \"cardHolderName\":     null,\n      \"bankBicSwift\":       null,\n      \"bankAddressLine1\":   null,\n      \"bankCity\":           null,\n      \"bankCountry\":        null,\n      \"mandateReferenceId\": null\n    }\n  ],\n\n  \"terms\": [\n    {\n      \"termId\":          null,\n      \"termNote\":        \"60 Days from Inv. Dt.\",\n      \"termAmount\":      39375.00,\n      \"termCurrency\":    \"AED\",\n      \"termInstallDate\": \"2026-09-12\"\n    }\n  ]\n}"
                },
                "url": {
                  "raw": "{{baseUrl}}/external/api/v1/eInvoiceEntry/createFull",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "external",
                    "api",
                    "v1",
                    "eInvoiceEntry",
                    "createFull"
                  ]
                },
                "description": "Creates a full e-invoice entry with lines, allowances, payments, and terms in a single JSON call.\nAll dates: yyyy-MM-dd. For taxCategory='E' the vatExemptReasonCode is mandatory ([ibr-167-ae]).\n\nPeppol routing:\n  supplierParticipantId — seller's Peppol participant ID (e.g. '0088:1234567890123')\n  customerParticipantId — buyer's Peppol participant ID (e.g. '0088:9876543210987')\n  Both fields are optional (nullable).\n\nLegal registration / other IDs (all optional):\n  sellerLegalRegistrationId / buyerLegalRegistrationId       — IBT-030 / IBT-047, e.g. trade license number\n  sellerLegalRegistrationType / buyerLegalRegistrationType   — BTAE-15 / BTAE-16, one of TL, EID, PAS, CD\n  sellerLegalRegistrationAuthority / buyerLegalRegistrationAuthority — BTAE-12/18 / BTAE-11/19: authority name when type is TL/EID/CD, or passport-issuing country when type is PAS\n  sellerOtherId / buyerOtherId — additional tax/other identifier"
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n  \"errorKey\": \"API key missing\"\n}"
            }
          ],
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test(\"HTTP 200\", () => pm.response.to.have.status(200));",
                  "const j = pm.response.json();",
                  "pm.test(\"success = true (else see errorKey / error)\", () => pm.expect(j.success, JSON.stringify(j)).to.be.true);",
                  "pm.test(\"entry created or overwritten\", () => pm.expect([\"CREATED\", \"OVERWRITTEN\"]).to.include(j.status));",
                  "if (j.entryId) { pm.collectionVariables.set(\"entryId\", String(j.entryId)); console.log(\"entryId =\", j.entryId, \"documentId =\", j.documentId); }"
                ]
              }
            }
          ]
        },
        {
          "name": "3.7 Export (zero-rated, foreign buyer, delivery address)",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "X-API-KEY",
                "value": "{{apiKey}}"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"companyId\": 20,\n  \"documentId\": \"EX-EXPORT-0001\",\n  \"invoiceRef\": \"EX-EXPORT-0001\",\n  \"issueDate\": \"2026-09-06\",\n  \"paymentDueDate\": \"2026-10-06\",\n  \"sellerName\": \"TRONSTRIDE FZC\",\n  \"sellerVatTrn\": \"104196887400003\",\n  \"sellerVatScheme\": \"VAT\",\n  \"sellerRegisteredName\": \"TRONSTRIDE FZC\",\n  \"sellerAddressLine1\": \"BUSINESS CENTRE SHARJAH PUBLISHING CITY FREEZONE\",\n  \"sellerAddressLine2\": \"NA\",\n  \"sellerCity\": \"Sharjah\",\n  \"sellerPostalZone\": null,\n  \"sellerCountrySubdivision\": \"SHJ\",\n  \"sellerCountryCode\": \"AE\",\n  \"sellerTelephone\": \"971529031765\",\n  \"sellerEmail\": \"mohamed@tronstride.com\",\n  \"sellerPoBox\": null,\n  \"sellerLegalRegistrationId\": \"714/2015\",\n  \"sellerLegalRegistrationType\": \"TL\",\n  \"sellerLegalRegistrationAuthority\": \"Dubai Economic Department\",\n  \"sellerOtherId\": null,\n  \"invoiceTypeCode\": \"380\",\n  \"invoiceTransactionType\": \"00000001\",\n  \"documentCurrencyCode\": \"AED\",\n  \"buyerName\": \"Nordic Imports AB\",\n  \"buyerRegisteredName\": \"Nordic Imports AB\",\n  \"buyerVatTrn\": \"\",\n  \"buyerVatScheme\": \"\",\n  \"buyerOtherId\": \"\",\n  \"buyerAddressLine1\": \"Storgatan 12\",\n  \"buyerAddressLine2\": \"1\",\n  \"buyerCity\": \"Stockholm\",\n  \"buyerCountrySubdivision\": \"Stockholm County\",\n  \"buyerCountryCode\": \"SE\",\n  \"buyerPostalZone\": \"11122\",\n  \"buyerTelephone\": \"971529031765\",\n  \"buyerEmail\": \"kabashik786@gmail.com\",\n  \"buyerLegalRegistrationId\": \"556677-8899\",\n  \"buyerLegalRegistrationType\": \"TL\",\n  \"buyerLegalRegistrationAuthority\": \"Bolagsverket\",\n  \"customerParticipantId\": \"\",\n  \"noteEN\": \"Export of goods - zero rated\",\n  \"payments\": [\n    {\n      \"paymentMeansCode\": \"10\"\n    }\n  ],\n  \"lines\": [\n    {\n      \"lineNumber\": 1,\n      \"itemName\": \"Exported goods\",\n      \"itemDescription\": \"Exported goods\",\n      \"quantity\": 10,\n      \"quantityUom\": \"EA\",\n      \"unitPrice\": 120.0,\n      \"lineNetAmount\": 1200.0,\n      \"taxCategory\": \"Z\",\n      \"taxRatePercent\": 0,\n      \"lineTaxAmount\": 0,\n      \"inclVatAmount\": 1200.0\n    }\n  ],\n  \"lineExtensionTotal\": 1200.0,\n  \"docLevelDiscount\": 0,\n  \"docLevelCharges\": 0,\n  \"taxAmount\": 0,\n  \"totalIncludingTax\": 1200.0,\n  \"roundingAmount\": 0,\n  \"payableAmount\": 1200.0,\n  \"deliveryLocation\": \"Stockholm warehouse\",\n  \"deliveryAddressLine1\": \"Storgatan 12\",\n  \"deliveryCity\": \"Stockholm\",\n  \"deliveryCountrySubdivision\": \"Stockholm County\",\n  \"deliveryCountryCode\": \"SE\"\n}"
            },
            "url": {
              "raw": "{{baseUrl}}/external/api/v1/eInvoiceEntry/createFull",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "external",
                "api",
                "v1",
                "eInvoiceEntry",
                "createFull"
              ]
            },
            "description": "Transaction type 00000001 (export), foreign buyer without TRN or TIN, lines zero-rated (Z). The document is routed to the FTA's export address.\n\n- 00000001 = export (position 8).\n- The customer's country. No TRN or TIN is needed for an export customer (ibr-135-ae).\n- Free text for a foreign address (emirate codes apply only to AE).\n- For an export the delivery address line 1, city and subdivision are mandatory unless goods are delivered inside the UAE (ibr-152-ae).\n\nValidated and delivered on 2026-09-06 (entry EX-EXPORT-0906094746)."
          },
          "response": [
            {
              "name": "Success",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "X-API-KEY",
                    "value": "{{apiKey}}"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"companyId\": 20,\n  \"invoiceRef\": \"IIL-1001309\",\n\n  \"documentId\":                 \"IIL-1001309\",\n  \"issueDate\":                  \"2026-07-14\",\n  \"invoiceTypeCode\":            \"380\",\n  \"invoiceTransactionType\":     \"00000000\",\n  \"documentCurrencyCode\":       \"AED\",\n  \"noteEN\":                     \"INV\",\n  \"taxPointDate\":               null,\n  \"invoiceSupplyDate\":          null,\n  \"paymentDueDate\":             \"2026-09-12\",\n  \"orderReference\":             \"NA\",\n  \"contractDocumentReference\":  \"SIL-301358\",\n  \"originalInvoiceReference\":   \"SIL-301358\",\n  \"originalInvoiceReferenceDate\": \"2026-07-09\",\n  \"buyerReference\":             null,\n  \"invoicePeriodStartDate\":     null,\n  \"invoicePeriodEndDate\":       null,\n\n  \"sellerName\":                 \"TRONSTRIDE FZC\",\n  \"sellerVatTrn\":               \"104196887400003\",\n  \"sellerVatScheme\":            \"VAT\",\n  \"sellerRegisteredName\":       \"TRONSTRIDE FZC\",\n  \"sellerAddressLine1\":         \"BUSINESS CENTRE SHARJAH PUBLISHING CITY FREEZONE\",\n  \"sellerAddressLine2\":         \"NA\",\n  \"sellerCity\":                 \"Sharjah\",\n  \"sellerPostalZone\":           null,\n  \"sellerCountrySubdivision\":   \"SHJ\",\n  \"sellerCountryCode\":          \"AE\",\n  \"sellerTelephone\":            \"971529031765\",\n  \"sellerEmail\":                \"mohamed@tronstride.com\",\n  \"sellerPoBox\":                null,\n\n  \"buyerName\":                  \"HABIB MOHAMMAD SHARIF ABDULLA ALMULLA\",\n  \"buyerVatTrn\":                \"100711669800003\",\n  \"buyerVatScheme\":             \"VAT\",\n  \"buyerRegisteredName\":        \"HABIB MOHAMMAD SHARIF ABDULLA ALMULLA\",\n  \"buyerAddressLine1\":          \"Dubai, UAE\",\n  \"buyerAddressLine2\":          null,\n  \"buyerCity\":                  \"Dubai\",\n  \"buyerPostalZone\":            null,\n  \"buyerCountrySubdivision\":    \"DXB\",\n  \"buyerCountryCode\":           \"AE\",\n  \"buyerTelephone\":             null,\n  \"buyerEmail\":                 null,\n  \"buyerPoBox\":                 null,\n  \"buyerContact\":               null,\n\n  \"sellerLegalRegistrationId\":         \"714/2015\",\n  \"sellerLegalRegistrationType\":       \"TL\",\n  \"sellerLegalRegistrationAuthority\":  \"Dubai Economic Department\",\n  \"sellerOtherId\":                     null,\n  \"buyerLegalRegistrationId\":          null,\n  \"buyerLegalRegistrationType\":        null,\n  \"buyerLegalRegistrationAuthority\":   null,\n  \"buyerOtherId\":                      null,\n\n  \"lineExtensionTotal\":         37500.00,\n  \"docLevelDiscount\":           0.00,\n  \"docLevelCharges\":            0.00,\n  \"taxAmount\":                  1875.00,\n  \"totalIncludingTax\":          39375.00,\n  \"payableAmount\":              39375.00,\n  \"roundingAmount\":             0.00,\n\n  \"accountingCost\":             null,\n  \"specialTaxTreatment\":        null,\n  \"despatchDocRef\":             null,\n  \"receiptDocRef\":              null,\n  \"projectDocRef\":              null,\n  \"originatorDocRef\":           null,\n\n  \"prepaidAmount\":              null,\n  \"taxCurrencyCode\":            null,\n  \"vatInAccountingCurrency\":    null,\n  \"exchangeRate\":               null,\n  \"totalInLocalCurrency\":       null,\n\n  \"deliveryLocation\":           \"I & L\",\n  \"deliveryAddressLine1\":       \"P.O. BOX 3222\",\n  \"deliveryAddressLine2\":       \"SHARJAH, U.A.E.\",\n  \"deliveryAddressLine3\":       \"NA\",\n  \"deliveryCity\":               \"Sharjah\",\n  \"deliveryPostalZone\":         \"NA\",\n  \"deliveryCountrySubdivision\": \"NA\",\n  \"deliveryCountryCode\":        \"AE\",\n  \"deliverySchemeId\":           null,\n  \"deliveryPartyId\":            null,\n  \"deliveryPartyName\":          null,\n  \"deliveryIncoterms\":          null,\n\n  \"taxRepName\":                 null,\n  \"taxRepAddressLine1\":         null,\n  \"taxRepAddressLine2\":         null,\n  \"taxRepAddressLine3\":         null,\n  \"taxRepCity\":                 null,\n  \"taxRepPostalZone\":           null,\n  \"taxRepCountrySubdivision\":   null,\n  \"taxRepCountryCode\":          null,\n  \"taxRepTaxScheme\":            null,\n  \"taxRepTaxId\":                null,\n\n  \"supplierParticipantId\":      null,\n  \"customerParticipantId\":      null,\n\n  \"lines\": [\n    {\n      \"lineNumber\":            1,\n      \"itemName\":              \"Safe Oilgo\",\n      \"itemDescription\":       \"Safe Oilgo\",\n      \"sellerItemId\":          \"ILFGICS003\",\n      \"itemTypeGoodsServices\": null,\n      \"itemCountryOrigin\":     \"AE\",\n      \"quantity\":              15.0,\n      \"quantityUom\":           \"H87\",\n      \"unitPrice\":             2500.00,\n      \"priceBaseQty\":          1.0,\n      \"priceBaseQtyUom\":       \"H87\",\n      \"lineDiscountAmount\":    0,\n      \"lineDiscountPercent\":   0,\n      \"lineChargeAmount\":      0,\n      \"lineNetAmount\":         37500.00,\n      \"taxCategory\":           \"S\",\n      \"taxRatePercent\":        5.0,\n      \"taxScheme\":             \"VAT\",\n      \"lineTaxAmount\":         1875.00,\n      \"inclVatAmount\":         39375.00,\n      \"rcmCode\":               null,\n      \"accountingCost\":        null,\n      \"orderLineRef\":          null,\n      \"periodStart\":           null,\n      \"periodEnd\":             null,\n      \"vatExemptReasonCode\":   null,\n      \"vatExemptReasonText\":   null\n    }\n  ],\n\n  \"allowances\": [],\n\n  \"payments\": [\n    {\n      \"paymentMeansCode\":   \"30\",\n      \"paymentId\":          null,\n      \"remittanceInfo\":     null,\n      \"creditAccountIban\":  \"AE070260001012029678901\",\n      \"creditAccountScheme\": \"IBAN\",\n      \"creditAccountName\":  null,\n      \"cardNumberLast4\":    null,\n      \"cardHolderName\":     null,\n      \"bankBicSwift\":       null,\n      \"bankAddressLine1\":   null,\n      \"bankCity\":           null,\n      \"bankCountry\":        null,\n      \"mandateReferenceId\": null\n    }\n  ],\n\n  \"terms\": [\n    {\n      \"termId\":          null,\n      \"termNote\":        \"60 Days from Inv. Dt.\",\n      \"termAmount\":      39375.00,\n      \"termCurrency\":    \"AED\",\n      \"termInstallDate\": \"2026-09-12\"\n    }\n  ]\n}"
                },
                "url": {
                  "raw": "{{baseUrl}}/external/api/v1/eInvoiceEntry/createFull",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "external",
                    "api",
                    "v1",
                    "eInvoiceEntry",
                    "createFull"
                  ]
                },
                "description": "Creates a full e-invoice entry with lines, allowances, payments, and terms in a single JSON call.\nAll dates: yyyy-MM-dd. For taxCategory='E' the vatExemptReasonCode is mandatory ([ibr-167-ae]).\n\nPeppol routing:\n  supplierParticipantId — seller's Peppol participant ID (e.g. '0088:1234567890123')\n  customerParticipantId — buyer's Peppol participant ID (e.g. '0088:9876543210987')\n  Both fields are optional (nullable).\n\nLegal registration / other IDs (all optional):\n  sellerLegalRegistrationId / buyerLegalRegistrationId       — IBT-030 / IBT-047, e.g. trade license number\n  sellerLegalRegistrationType / buyerLegalRegistrationType   — BTAE-15 / BTAE-16, one of TL, EID, PAS, CD\n  sellerLegalRegistrationAuthority / buyerLegalRegistrationAuthority — BTAE-12/18 / BTAE-11/19: authority name when type is TL/EID/CD, or passport-issuing country when type is PAS\n  sellerOtherId / buyerOtherId — additional tax/other identifier"
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n  \"success\":           true,\n  \"invoiceRef\":        \"INV-001\",\n  \"entryId\":           1042,\n  \"documentId\":        \"INV-2024-001\",\n  \"linesCreated\":      2,\n  \"allowancesCreated\": 1,\n  \"paymentsCreated\":   1,\n  \"termsCreated\":      1\n}"
            },
            {
              "name": "Validation Error (ibr-167-ae)",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "X-API-KEY",
                    "value": "{{apiKey}}"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"companyId\": 20,\n  \"invoiceRef\": \"IIL-1001309\",\n\n  \"documentId\":                 \"IIL-1001309\",\n  \"issueDate\":                  \"2026-07-14\",\n  \"invoiceTypeCode\":            \"380\",\n  \"invoiceTransactionType\":     \"00000000\",\n  \"documentCurrencyCode\":       \"AED\",\n  \"noteEN\":                     \"INV\",\n  \"taxPointDate\":               null,\n  \"invoiceSupplyDate\":          null,\n  \"paymentDueDate\":             \"2026-09-12\",\n  \"orderReference\":             \"NA\",\n  \"contractDocumentReference\":  \"SIL-301358\",\n  \"originalInvoiceReference\":   \"SIL-301358\",\n  \"originalInvoiceReferenceDate\": \"2026-07-09\",\n  \"buyerReference\":             null,\n  \"invoicePeriodStartDate\":     null,\n  \"invoicePeriodEndDate\":       null,\n\n  \"sellerName\":                 \"TRONSTRIDE FZC\",\n  \"sellerVatTrn\":               \"104196887400003\",\n  \"sellerVatScheme\":            \"VAT\",\n  \"sellerRegisteredName\":       \"TRONSTRIDE FZC\",\n  \"sellerAddressLine1\":         \"BUSINESS CENTRE SHARJAH PUBLISHING CITY FREEZONE\",\n  \"sellerAddressLine2\":         \"NA\",\n  \"sellerCity\":                 \"Sharjah\",\n  \"sellerPostalZone\":           null,\n  \"sellerCountrySubdivision\":   \"SHJ\",\n  \"sellerCountryCode\":          \"AE\",\n  \"sellerTelephone\":            \"971529031765\",\n  \"sellerEmail\":                \"mohamed@tronstride.com\",\n  \"sellerPoBox\":                null,\n\n  \"buyerName\":                  \"HABIB MOHAMMAD SHARIF ABDULLA ALMULLA\",\n  \"buyerVatTrn\":                \"100711669800003\",\n  \"buyerVatScheme\":             \"VAT\",\n  \"buyerRegisteredName\":        \"HABIB MOHAMMAD SHARIF ABDULLA ALMULLA\",\n  \"buyerAddressLine1\":          \"Dubai, UAE\",\n  \"buyerAddressLine2\":          null,\n  \"buyerCity\":                  \"Dubai\",\n  \"buyerPostalZone\":            null,\n  \"buyerCountrySubdivision\":    \"DXB\",\n  \"buyerCountryCode\":           \"AE\",\n  \"buyerTelephone\":             null,\n  \"buyerEmail\":                 null,\n  \"buyerPoBox\":                 null,\n  \"buyerContact\":               null,\n\n  \"sellerLegalRegistrationId\":         \"714/2015\",\n  \"sellerLegalRegistrationType\":       \"TL\",\n  \"sellerLegalRegistrationAuthority\":  \"Dubai Economic Department\",\n  \"sellerOtherId\":                     null,\n  \"buyerLegalRegistrationId\":          null,\n  \"buyerLegalRegistrationType\":        null,\n  \"buyerLegalRegistrationAuthority\":   null,\n  \"buyerOtherId\":                      null,\n\n  \"lineExtensionTotal\":         37500.00,\n  \"docLevelDiscount\":           0.00,\n  \"docLevelCharges\":            0.00,\n  \"taxAmount\":                  1875.00,\n  \"totalIncludingTax\":          39375.00,\n  \"payableAmount\":              39375.00,\n  \"roundingAmount\":             0.00,\n\n  \"accountingCost\":             null,\n  \"specialTaxTreatment\":        null,\n  \"despatchDocRef\":             null,\n  \"receiptDocRef\":              null,\n  \"projectDocRef\":              null,\n  \"originatorDocRef\":           null,\n\n  \"prepaidAmount\":              null,\n  \"taxCurrencyCode\":            null,\n  \"vatInAccountingCurrency\":    null,\n  \"exchangeRate\":               null,\n  \"totalInLocalCurrency\":       null,\n\n  \"deliveryLocation\":           \"I & L\",\n  \"deliveryAddressLine1\":       \"P.O. BOX 3222\",\n  \"deliveryAddressLine2\":       \"SHARJAH, U.A.E.\",\n  \"deliveryAddressLine3\":       \"NA\",\n  \"deliveryCity\":               \"Sharjah\",\n  \"deliveryPostalZone\":         \"NA\",\n  \"deliveryCountrySubdivision\": \"NA\",\n  \"deliveryCountryCode\":        \"AE\",\n  \"deliverySchemeId\":           null,\n  \"deliveryPartyId\":            null,\n  \"deliveryPartyName\":          null,\n  \"deliveryIncoterms\":          null,\n\n  \"taxRepName\":                 null,\n  \"taxRepAddressLine1\":         null,\n  \"taxRepAddressLine2\":         null,\n  \"taxRepAddressLine3\":         null,\n  \"taxRepCity\":                 null,\n  \"taxRepPostalZone\":           null,\n  \"taxRepCountrySubdivision\":   null,\n  \"taxRepCountryCode\":          null,\n  \"taxRepTaxScheme\":            null,\n  \"taxRepTaxId\":                null,\n\n  \"supplierParticipantId\":      null,\n  \"customerParticipantId\":      null,\n\n  \"lines\": [\n    {\n      \"lineNumber\":            1,\n      \"itemName\":              \"Safe Oilgo\",\n      \"itemDescription\":       \"Safe Oilgo\",\n      \"sellerItemId\":          \"ILFGICS003\",\n      \"itemTypeGoodsServices\": null,\n      \"itemCountryOrigin\":     \"AE\",\n      \"quantity\":              15.0,\n      \"quantityUom\":           \"H87\",\n      \"unitPrice\":             2500.00,\n      \"priceBaseQty\":          1.0,\n      \"priceBaseQtyUom\":       \"H87\",\n      \"lineDiscountAmount\":    0,\n      \"lineDiscountPercent\":   0,\n      \"lineChargeAmount\":      0,\n      \"lineNetAmount\":         37500.00,\n      \"taxCategory\":           \"S\",\n      \"taxRatePercent\":        5.0,\n      \"taxScheme\":             \"VAT\",\n      \"lineTaxAmount\":         1875.00,\n      \"inclVatAmount\":         39375.00,\n      \"rcmCode\":               null,\n      \"accountingCost\":        null,\n      \"orderLineRef\":          null,\n      \"periodStart\":           null,\n      \"periodEnd\":             null,\n      \"vatExemptReasonCode\":   null,\n      \"vatExemptReasonText\":   null\n    }\n  ],\n\n  \"allowances\": [],\n\n  \"payments\": [\n    {\n      \"paymentMeansCode\":   \"30\",\n      \"paymentId\":          null,\n      \"remittanceInfo\":     null,\n      \"creditAccountIban\":  \"AE070260001012029678901\",\n      \"creditAccountScheme\": \"IBAN\",\n      \"creditAccountName\":  null,\n      \"cardNumberLast4\":    null,\n      \"cardHolderName\":     null,\n      \"bankBicSwift\":       null,\n      \"bankAddressLine1\":   null,\n      \"bankCity\":           null,\n      \"bankCountry\":        null,\n      \"mandateReferenceId\": null\n    }\n  ],\n\n  \"terms\": [\n    {\n      \"termId\":          null,\n      \"termNote\":        \"60 Days from Inv. Dt.\",\n      \"termAmount\":      39375.00,\n      \"termCurrency\":    \"AED\",\n      \"termInstallDate\": \"2026-09-12\"\n    }\n  ]\n}"
                },
                "url": {
                  "raw": "{{baseUrl}}/external/api/v1/eInvoiceEntry/createFull",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "external",
                    "api",
                    "v1",
                    "eInvoiceEntry",
                    "createFull"
                  ]
                },
                "description": "Creates a full e-invoice entry with lines, allowances, payments, and terms in a single JSON call.\nAll dates: yyyy-MM-dd. For taxCategory='E' the vatExemptReasonCode is mandatory ([ibr-167-ae]).\n\nPeppol routing:\n  supplierParticipantId — seller's Peppol participant ID (e.g. '0088:1234567890123')\n  customerParticipantId — buyer's Peppol participant ID (e.g. '0088:9876543210987')\n  Both fields are optional (nullable).\n\nLegal registration / other IDs (all optional):\n  sellerLegalRegistrationId / buyerLegalRegistrationId       — IBT-030 / IBT-047, e.g. trade license number\n  sellerLegalRegistrationType / buyerLegalRegistrationType   — BTAE-15 / BTAE-16, one of TL, EID, PAS, CD\n  sellerLegalRegistrationAuthority / buyerLegalRegistrationAuthority — BTAE-12/18 / BTAE-11/19: authority name when type is TL/EID/CD, or passport-issuing country when type is PAS\n  sellerOtherId / buyerOtherId — additional tax/other identifier"
              },
              "status": "Bad Request",
              "code": 400,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n  \"success\": false,\n  \"error\": \"[ibr-167-ae] Line 1: vatExemptReasonCode is mandatory when taxCategory is 'E'.\"\n}"
            },
            {
              "name": "Unauthorized",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "X-API-KEY",
                    "value": "{{apiKey}}"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"companyId\": 20,\n  \"invoiceRef\": \"IIL-1001309\",\n\n  \"documentId\":                 \"IIL-1001309\",\n  \"issueDate\":                  \"2026-07-14\",\n  \"invoiceTypeCode\":            \"380\",\n  \"invoiceTransactionType\":     \"00000000\",\n  \"documentCurrencyCode\":       \"AED\",\n  \"noteEN\":                     \"INV\",\n  \"taxPointDate\":               null,\n  \"invoiceSupplyDate\":          null,\n  \"paymentDueDate\":             \"2026-09-12\",\n  \"orderReference\":             \"NA\",\n  \"contractDocumentReference\":  \"SIL-301358\",\n  \"originalInvoiceReference\":   \"SIL-301358\",\n  \"originalInvoiceReferenceDate\": \"2026-07-09\",\n  \"buyerReference\":             null,\n  \"invoicePeriodStartDate\":     null,\n  \"invoicePeriodEndDate\":       null,\n\n  \"sellerName\":                 \"TRONSTRIDE FZC\",\n  \"sellerVatTrn\":               \"104196887400003\",\n  \"sellerVatScheme\":            \"VAT\",\n  \"sellerRegisteredName\":       \"TRONSTRIDE FZC\",\n  \"sellerAddressLine1\":         \"BUSINESS CENTRE SHARJAH PUBLISHING CITY FREEZONE\",\n  \"sellerAddressLine2\":         \"NA\",\n  \"sellerCity\":                 \"Sharjah\",\n  \"sellerPostalZone\":           null,\n  \"sellerCountrySubdivision\":   \"SHJ\",\n  \"sellerCountryCode\":          \"AE\",\n  \"sellerTelephone\":            \"971529031765\",\n  \"sellerEmail\":                \"mohamed@tronstride.com\",\n  \"sellerPoBox\":                null,\n\n  \"buyerName\":                  \"HABIB MOHAMMAD SHARIF ABDULLA ALMULLA\",\n  \"buyerVatTrn\":                \"100711669800003\",\n  \"buyerVatScheme\":             \"VAT\",\n  \"buyerRegisteredName\":        \"HABIB MOHAMMAD SHARIF ABDULLA ALMULLA\",\n  \"buyerAddressLine1\":          \"Dubai, UAE\",\n  \"buyerAddressLine2\":          null,\n  \"buyerCity\":                  \"Dubai\",\n  \"buyerPostalZone\":            null,\n  \"buyerCountrySubdivision\":    \"DXB\",\n  \"buyerCountryCode\":           \"AE\",\n  \"buyerTelephone\":             null,\n  \"buyerEmail\":                 null,\n  \"buyerPoBox\":                 null,\n  \"buyerContact\":               null,\n\n  \"sellerLegalRegistrationId\":         \"714/2015\",\n  \"sellerLegalRegistrationType\":       \"TL\",\n  \"sellerLegalRegistrationAuthority\":  \"Dubai Economic Department\",\n  \"sellerOtherId\":                     null,\n  \"buyerLegalRegistrationId\":          null,\n  \"buyerLegalRegistrationType\":        null,\n  \"buyerLegalRegistrationAuthority\":   null,\n  \"buyerOtherId\":                      null,\n\n  \"lineExtensionTotal\":         37500.00,\n  \"docLevelDiscount\":           0.00,\n  \"docLevelCharges\":            0.00,\n  \"taxAmount\":                  1875.00,\n  \"totalIncludingTax\":          39375.00,\n  \"payableAmount\":              39375.00,\n  \"roundingAmount\":             0.00,\n\n  \"accountingCost\":             null,\n  \"specialTaxTreatment\":        null,\n  \"despatchDocRef\":             null,\n  \"receiptDocRef\":              null,\n  \"projectDocRef\":              null,\n  \"originatorDocRef\":           null,\n\n  \"prepaidAmount\":              null,\n  \"taxCurrencyCode\":            null,\n  \"vatInAccountingCurrency\":    null,\n  \"exchangeRate\":               null,\n  \"totalInLocalCurrency\":       null,\n\n  \"deliveryLocation\":           \"I & L\",\n  \"deliveryAddressLine1\":       \"P.O. BOX 3222\",\n  \"deliveryAddressLine2\":       \"SHARJAH, U.A.E.\",\n  \"deliveryAddressLine3\":       \"NA\",\n  \"deliveryCity\":               \"Sharjah\",\n  \"deliveryPostalZone\":         \"NA\",\n  \"deliveryCountrySubdivision\": \"NA\",\n  \"deliveryCountryCode\":        \"AE\",\n  \"deliverySchemeId\":           null,\n  \"deliveryPartyId\":            null,\n  \"deliveryPartyName\":          null,\n  \"deliveryIncoterms\":          null,\n\n  \"taxRepName\":                 null,\n  \"taxRepAddressLine1\":         null,\n  \"taxRepAddressLine2\":         null,\n  \"taxRepAddressLine3\":         null,\n  \"taxRepCity\":                 null,\n  \"taxRepPostalZone\":           null,\n  \"taxRepCountrySubdivision\":   null,\n  \"taxRepCountryCode\":          null,\n  \"taxRepTaxScheme\":            null,\n  \"taxRepTaxId\":                null,\n\n  \"supplierParticipantId\":      null,\n  \"customerParticipantId\":      null,\n\n  \"lines\": [\n    {\n      \"lineNumber\":            1,\n      \"itemName\":              \"Safe Oilgo\",\n      \"itemDescription\":       \"Safe Oilgo\",\n      \"sellerItemId\":          \"ILFGICS003\",\n      \"itemTypeGoodsServices\": null,\n      \"itemCountryOrigin\":     \"AE\",\n      \"quantity\":              15.0,\n      \"quantityUom\":           \"H87\",\n      \"unitPrice\":             2500.00,\n      \"priceBaseQty\":          1.0,\n      \"priceBaseQtyUom\":       \"H87\",\n      \"lineDiscountAmount\":    0,\n      \"lineDiscountPercent\":   0,\n      \"lineChargeAmount\":      0,\n      \"lineNetAmount\":         37500.00,\n      \"taxCategory\":           \"S\",\n      \"taxRatePercent\":        5.0,\n      \"taxScheme\":             \"VAT\",\n      \"lineTaxAmount\":         1875.00,\n      \"inclVatAmount\":         39375.00,\n      \"rcmCode\":               null,\n      \"accountingCost\":        null,\n      \"orderLineRef\":          null,\n      \"periodStart\":           null,\n      \"periodEnd\":             null,\n      \"vatExemptReasonCode\":   null,\n      \"vatExemptReasonText\":   null\n    }\n  ],\n\n  \"allowances\": [],\n\n  \"payments\": [\n    {\n      \"paymentMeansCode\":   \"30\",\n      \"paymentId\":          null,\n      \"remittanceInfo\":     null,\n      \"creditAccountIban\":  \"AE070260001012029678901\",\n      \"creditAccountScheme\": \"IBAN\",\n      \"creditAccountName\":  null,\n      \"cardNumberLast4\":    null,\n      \"cardHolderName\":     null,\n      \"bankBicSwift\":       null,\n      \"bankAddressLine1\":   null,\n      \"bankCity\":           null,\n      \"bankCountry\":        null,\n      \"mandateReferenceId\": null\n    }\n  ],\n\n  \"terms\": [\n    {\n      \"termId\":          null,\n      \"termNote\":        \"60 Days from Inv. Dt.\",\n      \"termAmount\":      39375.00,\n      \"termCurrency\":    \"AED\",\n      \"termInstallDate\": \"2026-09-12\"\n    }\n  ]\n}"
                },
                "url": {
                  "raw": "{{baseUrl}}/external/api/v1/eInvoiceEntry/createFull",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "external",
                    "api",
                    "v1",
                    "eInvoiceEntry",
                    "createFull"
                  ]
                },
                "description": "Creates a full e-invoice entry with lines, allowances, payments, and terms in a single JSON call.\nAll dates: yyyy-MM-dd. For taxCategory='E' the vatExemptReasonCode is mandatory ([ibr-167-ae]).\n\nPeppol routing:\n  supplierParticipantId — seller's Peppol participant ID (e.g. '0088:1234567890123')\n  customerParticipantId — buyer's Peppol participant ID (e.g. '0088:9876543210987')\n  Both fields are optional (nullable).\n\nLegal registration / other IDs (all optional):\n  sellerLegalRegistrationId / buyerLegalRegistrationId       — IBT-030 / IBT-047, e.g. trade license number\n  sellerLegalRegistrationType / buyerLegalRegistrationType   — BTAE-15 / BTAE-16, one of TL, EID, PAS, CD\n  sellerLegalRegistrationAuthority / buyerLegalRegistrationAuthority — BTAE-12/18 / BTAE-11/19: authority name when type is TL/EID/CD, or passport-issuing country when type is PAS\n  sellerOtherId / buyerOtherId — additional tax/other identifier"
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n  \"errorKey\": \"API key missing\"\n}"
            }
          ],
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test(\"HTTP 200\", () => pm.response.to.have.status(200));",
                  "const j = pm.response.json();",
                  "pm.test(\"success = true (else see errorKey / error)\", () => pm.expect(j.success, JSON.stringify(j)).to.be.true);",
                  "pm.test(\"entry created or overwritten\", () => pm.expect([\"CREATED\", \"OVERWRITTEN\"]).to.include(j.status));",
                  "if (j.entryId) { pm.collectionVariables.set(\"entryId\", String(j.entryId)); console.log(\"entryId =\", j.entryId, \"documentId =\", j.documentId); }"
                ]
              }
            }
          ]
        },
        {
          "name": "3.8 Reverse charge (AE lines, RCM code, GTIN)",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "X-API-KEY",
                "value": "{{apiKey}}"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"companyId\": 20,\n  \"documentId\": \"EX-REVERSECHA-0001\",\n  \"invoiceRef\": \"EX-REVERSECHA-0001\",\n  \"issueDate\": \"2026-09-06\",\n  \"paymentDueDate\": \"2026-10-06\",\n  \"sellerName\": \"TRONSTRIDE FZC\",\n  \"sellerVatTrn\": \"104196887400003\",\n  \"sellerVatScheme\": \"VAT\",\n  \"sellerRegisteredName\": \"TRONSTRIDE FZC\",\n  \"sellerAddressLine1\": \"BUSINESS CENTRE SHARJAH PUBLISHING CITY FREEZONE\",\n  \"sellerAddressLine2\": \"NA\",\n  \"sellerCity\": \"Sharjah\",\n  \"sellerPostalZone\": null,\n  \"sellerCountrySubdivision\": \"SHJ\",\n  \"sellerCountryCode\": \"AE\",\n  \"sellerTelephone\": \"971529031765\",\n  \"sellerEmail\": \"mohamed@tronstride.com\",\n  \"sellerPoBox\": null,\n  \"sellerLegalRegistrationId\": \"714/2015\",\n  \"sellerLegalRegistrationType\": \"TL\",\n  \"sellerLegalRegistrationAuthority\": \"Dubai Economic Department\",\n  \"sellerOtherId\": null,\n  \"invoiceTypeCode\": \"380\",\n  \"invoiceTransactionType\": \"00000000\",\n  \"documentCurrencyCode\": \"AED\",\n  \"buyerName\": \"TRONSTRIDE FZC\",\n  \"buyerRegisteredName\": \"TRONSTRIDE FZC\",\n  \"buyerVatTrn\": \"104196887400003\",\n  \"buyerVatScheme\": \"VAT\",\n  \"buyerOtherId\": \"1041968874\",\n  \"buyerAddressLine1\": \"BUSINESS CENTRE SHARJAH PUBLISHING CITY FREEZONE\",\n  \"buyerAddressLine2\": \"1\",\n  \"buyerCity\": \"SHJ\",\n  \"buyerCountrySubdivision\": \"SHJ\",\n  \"buyerCountryCode\": \"AE\",\n  \"buyerPostalZone\": \"000000\",\n  \"buyerTelephone\": \"971529031765\",\n  \"buyerEmail\": \"kabashik786@gmail.com\",\n  \"buyerLegalRegistrationId\": \"1009077240\",\n  \"buyerLegalRegistrationType\": \"TL\",\n  \"buyerLegalRegistrationAuthority\": \"SPC FREEZONE\",\n  \"customerParticipantId\": \"0235:1041968874\",\n  \"noteEN\": \"Reverse charge supply of electronic devices\",\n  \"payments\": [\n    {\n      \"paymentMeansCode\": \"10\"\n    }\n  ],\n  \"lines\": [\n    {\n      \"lineNumber\": 1,\n      \"itemName\": \"Smartphones (RCM)\",\n      \"itemDescription\": \"Smartphones (RCM)\",\n      \"quantity\": 10,\n      \"quantityUom\": \"EA\",\n      \"unitPrice\": 1500.0,\n      \"lineNetAmount\": 15000.0,\n      \"taxCategory\": \"AE\",\n      \"taxRatePercent\": 0,\n      \"lineTaxAmount\": 0,\n      \"inclVatAmount\": 15000.0,\n      \"rcmCode\": \"DL8.48.8.1\",\n      \"itemStandardId\": \"06291041500213\",\n      \"itemTypeGoodsServices\": \"G\"\n    }\n  ],\n  \"lineExtensionTotal\": 15000.0,\n  \"docLevelDiscount\": 0,\n  \"docLevelCharges\": 0,\n  \"taxAmount\": 0,\n  \"totalIncludingTax\": 15000.0,\n  \"roundingAmount\": 0,\n  \"payableAmount\": 15000.0\n}"
            },
            "url": {
              "raw": "{{baseUrl}}/external/api/v1/eInvoiceEntry/createFull",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "external",
                "api",
                "v1",
                "eInvoiceEntry",
                "createFull"
              ]
            },
            "description": "Lines use tax category AE with zero VAT, each line names the RCM goods type and carries a standard item ID (GTIN), and the customer's TRN is mandatory.\n\n- Mandatory on a reverse-charge invoice (ibr-103-ae).\n- Zero: the customer accounts for the VAT.\n\nPasses the v1.04 rules (ibr-006/103/162/166/174-ae) in the release test; needs the September backend and orchestrator builds."
          },
          "response": [
            {
              "name": "Success",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "X-API-KEY",
                    "value": "{{apiKey}}"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"companyId\": 20,\n  \"invoiceRef\": \"IIL-1001309\",\n\n  \"documentId\":                 \"IIL-1001309\",\n  \"issueDate\":                  \"2026-07-14\",\n  \"invoiceTypeCode\":            \"380\",\n  \"invoiceTransactionType\":     \"00000000\",\n  \"documentCurrencyCode\":       \"AED\",\n  \"noteEN\":                     \"INV\",\n  \"taxPointDate\":               null,\n  \"invoiceSupplyDate\":          null,\n  \"paymentDueDate\":             \"2026-09-12\",\n  \"orderReference\":             \"NA\",\n  \"contractDocumentReference\":  \"SIL-301358\",\n  \"originalInvoiceReference\":   \"SIL-301358\",\n  \"originalInvoiceReferenceDate\": \"2026-07-09\",\n  \"buyerReference\":             null,\n  \"invoicePeriodStartDate\":     null,\n  \"invoicePeriodEndDate\":       null,\n\n  \"sellerName\":                 \"TRONSTRIDE FZC\",\n  \"sellerVatTrn\":               \"104196887400003\",\n  \"sellerVatScheme\":            \"VAT\",\n  \"sellerRegisteredName\":       \"TRONSTRIDE FZC\",\n  \"sellerAddressLine1\":         \"BUSINESS CENTRE SHARJAH PUBLISHING CITY FREEZONE\",\n  \"sellerAddressLine2\":         \"NA\",\n  \"sellerCity\":                 \"Sharjah\",\n  \"sellerPostalZone\":           null,\n  \"sellerCountrySubdivision\":   \"SHJ\",\n  \"sellerCountryCode\":          \"AE\",\n  \"sellerTelephone\":            \"971529031765\",\n  \"sellerEmail\":                \"mohamed@tronstride.com\",\n  \"sellerPoBox\":                null,\n\n  \"buyerName\":                  \"HABIB MOHAMMAD SHARIF ABDULLA ALMULLA\",\n  \"buyerVatTrn\":                \"100711669800003\",\n  \"buyerVatScheme\":             \"VAT\",\n  \"buyerRegisteredName\":        \"HABIB MOHAMMAD SHARIF ABDULLA ALMULLA\",\n  \"buyerAddressLine1\":          \"Dubai, UAE\",\n  \"buyerAddressLine2\":          null,\n  \"buyerCity\":                  \"Dubai\",\n  \"buyerPostalZone\":            null,\n  \"buyerCountrySubdivision\":    \"DXB\",\n  \"buyerCountryCode\":           \"AE\",\n  \"buyerTelephone\":             null,\n  \"buyerEmail\":                 null,\n  \"buyerPoBox\":                 null,\n  \"buyerContact\":               null,\n\n  \"sellerLegalRegistrationId\":         \"714/2015\",\n  \"sellerLegalRegistrationType\":       \"TL\",\n  \"sellerLegalRegistrationAuthority\":  \"Dubai Economic Department\",\n  \"sellerOtherId\":                     null,\n  \"buyerLegalRegistrationId\":          null,\n  \"buyerLegalRegistrationType\":        null,\n  \"buyerLegalRegistrationAuthority\":   null,\n  \"buyerOtherId\":                      null,\n\n  \"lineExtensionTotal\":         37500.00,\n  \"docLevelDiscount\":           0.00,\n  \"docLevelCharges\":            0.00,\n  \"taxAmount\":                  1875.00,\n  \"totalIncludingTax\":          39375.00,\n  \"payableAmount\":              39375.00,\n  \"roundingAmount\":             0.00,\n\n  \"accountingCost\":             null,\n  \"specialTaxTreatment\":        null,\n  \"despatchDocRef\":             null,\n  \"receiptDocRef\":              null,\n  \"projectDocRef\":              null,\n  \"originatorDocRef\":           null,\n\n  \"prepaidAmount\":              null,\n  \"taxCurrencyCode\":            null,\n  \"vatInAccountingCurrency\":    null,\n  \"exchangeRate\":               null,\n  \"totalInLocalCurrency\":       null,\n\n  \"deliveryLocation\":           \"I & L\",\n  \"deliveryAddressLine1\":       \"P.O. BOX 3222\",\n  \"deliveryAddressLine2\":       \"SHARJAH, U.A.E.\",\n  \"deliveryAddressLine3\":       \"NA\",\n  \"deliveryCity\":               \"Sharjah\",\n  \"deliveryPostalZone\":         \"NA\",\n  \"deliveryCountrySubdivision\": \"NA\",\n  \"deliveryCountryCode\":        \"AE\",\n  \"deliverySchemeId\":           null,\n  \"deliveryPartyId\":            null,\n  \"deliveryPartyName\":          null,\n  \"deliveryIncoterms\":          null,\n\n  \"taxRepName\":                 null,\n  \"taxRepAddressLine1\":         null,\n  \"taxRepAddressLine2\":         null,\n  \"taxRepAddressLine3\":         null,\n  \"taxRepCity\":                 null,\n  \"taxRepPostalZone\":           null,\n  \"taxRepCountrySubdivision\":   null,\n  \"taxRepCountryCode\":          null,\n  \"taxRepTaxScheme\":            null,\n  \"taxRepTaxId\":                null,\n\n  \"supplierParticipantId\":      null,\n  \"customerParticipantId\":      null,\n\n  \"lines\": [\n    {\n      \"lineNumber\":            1,\n      \"itemName\":              \"Safe Oilgo\",\n      \"itemDescription\":       \"Safe Oilgo\",\n      \"sellerItemId\":          \"ILFGICS003\",\n      \"itemTypeGoodsServices\": null,\n      \"itemCountryOrigin\":     \"AE\",\n      \"quantity\":              15.0,\n      \"quantityUom\":           \"H87\",\n      \"unitPrice\":             2500.00,\n      \"priceBaseQty\":          1.0,\n      \"priceBaseQtyUom\":       \"H87\",\n      \"lineDiscountAmount\":    0,\n      \"lineDiscountPercent\":   0,\n      \"lineChargeAmount\":      0,\n      \"lineNetAmount\":         37500.00,\n      \"taxCategory\":           \"S\",\n      \"taxRatePercent\":        5.0,\n      \"taxScheme\":             \"VAT\",\n      \"lineTaxAmount\":         1875.00,\n      \"inclVatAmount\":         39375.00,\n      \"rcmCode\":               null,\n      \"accountingCost\":        null,\n      \"orderLineRef\":          null,\n      \"periodStart\":           null,\n      \"periodEnd\":             null,\n      \"vatExemptReasonCode\":   null,\n      \"vatExemptReasonText\":   null\n    }\n  ],\n\n  \"allowances\": [],\n\n  \"payments\": [\n    {\n      \"paymentMeansCode\":   \"30\",\n      \"paymentId\":          null,\n      \"remittanceInfo\":     null,\n      \"creditAccountIban\":  \"AE070260001012029678901\",\n      \"creditAccountScheme\": \"IBAN\",\n      \"creditAccountName\":  null,\n      \"cardNumberLast4\":    null,\n      \"cardHolderName\":     null,\n      \"bankBicSwift\":       null,\n      \"bankAddressLine1\":   null,\n      \"bankCity\":           null,\n      \"bankCountry\":        null,\n      \"mandateReferenceId\": null\n    }\n  ],\n\n  \"terms\": [\n    {\n      \"termId\":          null,\n      \"termNote\":        \"60 Days from Inv. Dt.\",\n      \"termAmount\":      39375.00,\n      \"termCurrency\":    \"AED\",\n      \"termInstallDate\": \"2026-09-12\"\n    }\n  ]\n}"
                },
                "url": {
                  "raw": "{{baseUrl}}/external/api/v1/eInvoiceEntry/createFull",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "external",
                    "api",
                    "v1",
                    "eInvoiceEntry",
                    "createFull"
                  ]
                },
                "description": "Creates a full e-invoice entry with lines, allowances, payments, and terms in a single JSON call.\nAll dates: yyyy-MM-dd. For taxCategory='E' the vatExemptReasonCode is mandatory ([ibr-167-ae]).\n\nPeppol routing:\n  supplierParticipantId — seller's Peppol participant ID (e.g. '0088:1234567890123')\n  customerParticipantId — buyer's Peppol participant ID (e.g. '0088:9876543210987')\n  Both fields are optional (nullable).\n\nLegal registration / other IDs (all optional):\n  sellerLegalRegistrationId / buyerLegalRegistrationId       — IBT-030 / IBT-047, e.g. trade license number\n  sellerLegalRegistrationType / buyerLegalRegistrationType   — BTAE-15 / BTAE-16, one of TL, EID, PAS, CD\n  sellerLegalRegistrationAuthority / buyerLegalRegistrationAuthority — BTAE-12/18 / BTAE-11/19: authority name when type is TL/EID/CD, or passport-issuing country when type is PAS\n  sellerOtherId / buyerOtherId — additional tax/other identifier"
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n  \"success\":           true,\n  \"invoiceRef\":        \"INV-001\",\n  \"entryId\":           1042,\n  \"documentId\":        \"INV-2024-001\",\n  \"linesCreated\":      2,\n  \"allowancesCreated\": 1,\n  \"paymentsCreated\":   1,\n  \"termsCreated\":      1\n}"
            },
            {
              "name": "Validation Error (ibr-167-ae)",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "X-API-KEY",
                    "value": "{{apiKey}}"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"companyId\": 20,\n  \"invoiceRef\": \"IIL-1001309\",\n\n  \"documentId\":                 \"IIL-1001309\",\n  \"issueDate\":                  \"2026-07-14\",\n  \"invoiceTypeCode\":            \"380\",\n  \"invoiceTransactionType\":     \"00000000\",\n  \"documentCurrencyCode\":       \"AED\",\n  \"noteEN\":                     \"INV\",\n  \"taxPointDate\":               null,\n  \"invoiceSupplyDate\":          null,\n  \"paymentDueDate\":             \"2026-09-12\",\n  \"orderReference\":             \"NA\",\n  \"contractDocumentReference\":  \"SIL-301358\",\n  \"originalInvoiceReference\":   \"SIL-301358\",\n  \"originalInvoiceReferenceDate\": \"2026-07-09\",\n  \"buyerReference\":             null,\n  \"invoicePeriodStartDate\":     null,\n  \"invoicePeriodEndDate\":       null,\n\n  \"sellerName\":                 \"TRONSTRIDE FZC\",\n  \"sellerVatTrn\":               \"104196887400003\",\n  \"sellerVatScheme\":            \"VAT\",\n  \"sellerRegisteredName\":       \"TRONSTRIDE FZC\",\n  \"sellerAddressLine1\":         \"BUSINESS CENTRE SHARJAH PUBLISHING CITY FREEZONE\",\n  \"sellerAddressLine2\":         \"NA\",\n  \"sellerCity\":                 \"Sharjah\",\n  \"sellerPostalZone\":           null,\n  \"sellerCountrySubdivision\":   \"SHJ\",\n  \"sellerCountryCode\":          \"AE\",\n  \"sellerTelephone\":            \"971529031765\",\n  \"sellerEmail\":                \"mohamed@tronstride.com\",\n  \"sellerPoBox\":                null,\n\n  \"buyerName\":                  \"HABIB MOHAMMAD SHARIF ABDULLA ALMULLA\",\n  \"buyerVatTrn\":                \"100711669800003\",\n  \"buyerVatScheme\":             \"VAT\",\n  \"buyerRegisteredName\":        \"HABIB MOHAMMAD SHARIF ABDULLA ALMULLA\",\n  \"buyerAddressLine1\":          \"Dubai, UAE\",\n  \"buyerAddressLine2\":          null,\n  \"buyerCity\":                  \"Dubai\",\n  \"buyerPostalZone\":            null,\n  \"buyerCountrySubdivision\":    \"DXB\",\n  \"buyerCountryCode\":           \"AE\",\n  \"buyerTelephone\":             null,\n  \"buyerEmail\":                 null,\n  \"buyerPoBox\":                 null,\n  \"buyerContact\":               null,\n\n  \"sellerLegalRegistrationId\":         \"714/2015\",\n  \"sellerLegalRegistrationType\":       \"TL\",\n  \"sellerLegalRegistrationAuthority\":  \"Dubai Economic Department\",\n  \"sellerOtherId\":                     null,\n  \"buyerLegalRegistrationId\":          null,\n  \"buyerLegalRegistrationType\":        null,\n  \"buyerLegalRegistrationAuthority\":   null,\n  \"buyerOtherId\":                      null,\n\n  \"lineExtensionTotal\":         37500.00,\n  \"docLevelDiscount\":           0.00,\n  \"docLevelCharges\":            0.00,\n  \"taxAmount\":                  1875.00,\n  \"totalIncludingTax\":          39375.00,\n  \"payableAmount\":              39375.00,\n  \"roundingAmount\":             0.00,\n\n  \"accountingCost\":             null,\n  \"specialTaxTreatment\":        null,\n  \"despatchDocRef\":             null,\n  \"receiptDocRef\":              null,\n  \"projectDocRef\":              null,\n  \"originatorDocRef\":           null,\n\n  \"prepaidAmount\":              null,\n  \"taxCurrencyCode\":            null,\n  \"vatInAccountingCurrency\":    null,\n  \"exchangeRate\":               null,\n  \"totalInLocalCurrency\":       null,\n\n  \"deliveryLocation\":           \"I & L\",\n  \"deliveryAddressLine1\":       \"P.O. BOX 3222\",\n  \"deliveryAddressLine2\":       \"SHARJAH, U.A.E.\",\n  \"deliveryAddressLine3\":       \"NA\",\n  \"deliveryCity\":               \"Sharjah\",\n  \"deliveryPostalZone\":         \"NA\",\n  \"deliveryCountrySubdivision\": \"NA\",\n  \"deliveryCountryCode\":        \"AE\",\n  \"deliverySchemeId\":           null,\n  \"deliveryPartyId\":            null,\n  \"deliveryPartyName\":          null,\n  \"deliveryIncoterms\":          null,\n\n  \"taxRepName\":                 null,\n  \"taxRepAddressLine1\":         null,\n  \"taxRepAddressLine2\":         null,\n  \"taxRepAddressLine3\":         null,\n  \"taxRepCity\":                 null,\n  \"taxRepPostalZone\":           null,\n  \"taxRepCountrySubdivision\":   null,\n  \"taxRepCountryCode\":          null,\n  \"taxRepTaxScheme\":            null,\n  \"taxRepTaxId\":                null,\n\n  \"supplierParticipantId\":      null,\n  \"customerParticipantId\":      null,\n\n  \"lines\": [\n    {\n      \"lineNumber\":            1,\n      \"itemName\":              \"Safe Oilgo\",\n      \"itemDescription\":       \"Safe Oilgo\",\n      \"sellerItemId\":          \"ILFGICS003\",\n      \"itemTypeGoodsServices\": null,\n      \"itemCountryOrigin\":     \"AE\",\n      \"quantity\":              15.0,\n      \"quantityUom\":           \"H87\",\n      \"unitPrice\":             2500.00,\n      \"priceBaseQty\":          1.0,\n      \"priceBaseQtyUom\":       \"H87\",\n      \"lineDiscountAmount\":    0,\n      \"lineDiscountPercent\":   0,\n      \"lineChargeAmount\":      0,\n      \"lineNetAmount\":         37500.00,\n      \"taxCategory\":           \"S\",\n      \"taxRatePercent\":        5.0,\n      \"taxScheme\":             \"VAT\",\n      \"lineTaxAmount\":         1875.00,\n      \"inclVatAmount\":         39375.00,\n      \"rcmCode\":               null,\n      \"accountingCost\":        null,\n      \"orderLineRef\":          null,\n      \"periodStart\":           null,\n      \"periodEnd\":             null,\n      \"vatExemptReasonCode\":   null,\n      \"vatExemptReasonText\":   null\n    }\n  ],\n\n  \"allowances\": [],\n\n  \"payments\": [\n    {\n      \"paymentMeansCode\":   \"30\",\n      \"paymentId\":          null,\n      \"remittanceInfo\":     null,\n      \"creditAccountIban\":  \"AE070260001012029678901\",\n      \"creditAccountScheme\": \"IBAN\",\n      \"creditAccountName\":  null,\n      \"cardNumberLast4\":    null,\n      \"cardHolderName\":     null,\n      \"bankBicSwift\":       null,\n      \"bankAddressLine1\":   null,\n      \"bankCity\":           null,\n      \"bankCountry\":        null,\n      \"mandateReferenceId\": null\n    }\n  ],\n\n  \"terms\": [\n    {\n      \"termId\":          null,\n      \"termNote\":        \"60 Days from Inv. Dt.\",\n      \"termAmount\":      39375.00,\n      \"termCurrency\":    \"AED\",\n      \"termInstallDate\": \"2026-09-12\"\n    }\n  ]\n}"
                },
                "url": {
                  "raw": "{{baseUrl}}/external/api/v1/eInvoiceEntry/createFull",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "external",
                    "api",
                    "v1",
                    "eInvoiceEntry",
                    "createFull"
                  ]
                },
                "description": "Creates a full e-invoice entry with lines, allowances, payments, and terms in a single JSON call.\nAll dates: yyyy-MM-dd. For taxCategory='E' the vatExemptReasonCode is mandatory ([ibr-167-ae]).\n\nPeppol routing:\n  supplierParticipantId — seller's Peppol participant ID (e.g. '0088:1234567890123')\n  customerParticipantId — buyer's Peppol participant ID (e.g. '0088:9876543210987')\n  Both fields are optional (nullable).\n\nLegal registration / other IDs (all optional):\n  sellerLegalRegistrationId / buyerLegalRegistrationId       — IBT-030 / IBT-047, e.g. trade license number\n  sellerLegalRegistrationType / buyerLegalRegistrationType   — BTAE-15 / BTAE-16, one of TL, EID, PAS, CD\n  sellerLegalRegistrationAuthority / buyerLegalRegistrationAuthority — BTAE-12/18 / BTAE-11/19: authority name when type is TL/EID/CD, or passport-issuing country when type is PAS\n  sellerOtherId / buyerOtherId — additional tax/other identifier"
              },
              "status": "Bad Request",
              "code": 400,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n  \"success\": false,\n  \"error\": \"[ibr-167-ae] Line 1: vatExemptReasonCode is mandatory when taxCategory is 'E'.\"\n}"
            },
            {
              "name": "Unauthorized",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "X-API-KEY",
                    "value": "{{apiKey}}"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"companyId\": 20,\n  \"invoiceRef\": \"IIL-1001309\",\n\n  \"documentId\":                 \"IIL-1001309\",\n  \"issueDate\":                  \"2026-07-14\",\n  \"invoiceTypeCode\":            \"380\",\n  \"invoiceTransactionType\":     \"00000000\",\n  \"documentCurrencyCode\":       \"AED\",\n  \"noteEN\":                     \"INV\",\n  \"taxPointDate\":               null,\n  \"invoiceSupplyDate\":          null,\n  \"paymentDueDate\":             \"2026-09-12\",\n  \"orderReference\":             \"NA\",\n  \"contractDocumentReference\":  \"SIL-301358\",\n  \"originalInvoiceReference\":   \"SIL-301358\",\n  \"originalInvoiceReferenceDate\": \"2026-07-09\",\n  \"buyerReference\":             null,\n  \"invoicePeriodStartDate\":     null,\n  \"invoicePeriodEndDate\":       null,\n\n  \"sellerName\":                 \"TRONSTRIDE FZC\",\n  \"sellerVatTrn\":               \"104196887400003\",\n  \"sellerVatScheme\":            \"VAT\",\n  \"sellerRegisteredName\":       \"TRONSTRIDE FZC\",\n  \"sellerAddressLine1\":         \"BUSINESS CENTRE SHARJAH PUBLISHING CITY FREEZONE\",\n  \"sellerAddressLine2\":         \"NA\",\n  \"sellerCity\":                 \"Sharjah\",\n  \"sellerPostalZone\":           null,\n  \"sellerCountrySubdivision\":   \"SHJ\",\n  \"sellerCountryCode\":          \"AE\",\n  \"sellerTelephone\":            \"971529031765\",\n  \"sellerEmail\":                \"mohamed@tronstride.com\",\n  \"sellerPoBox\":                null,\n\n  \"buyerName\":                  \"HABIB MOHAMMAD SHARIF ABDULLA ALMULLA\",\n  \"buyerVatTrn\":                \"100711669800003\",\n  \"buyerVatScheme\":             \"VAT\",\n  \"buyerRegisteredName\":        \"HABIB MOHAMMAD SHARIF ABDULLA ALMULLA\",\n  \"buyerAddressLine1\":          \"Dubai, UAE\",\n  \"buyerAddressLine2\":          null,\n  \"buyerCity\":                  \"Dubai\",\n  \"buyerPostalZone\":            null,\n  \"buyerCountrySubdivision\":    \"DXB\",\n  \"buyerCountryCode\":           \"AE\",\n  \"buyerTelephone\":             null,\n  \"buyerEmail\":                 null,\n  \"buyerPoBox\":                 null,\n  \"buyerContact\":               null,\n\n  \"sellerLegalRegistrationId\":         \"714/2015\",\n  \"sellerLegalRegistrationType\":       \"TL\",\n  \"sellerLegalRegistrationAuthority\":  \"Dubai Economic Department\",\n  \"sellerOtherId\":                     null,\n  \"buyerLegalRegistrationId\":          null,\n  \"buyerLegalRegistrationType\":        null,\n  \"buyerLegalRegistrationAuthority\":   null,\n  \"buyerOtherId\":                      null,\n\n  \"lineExtensionTotal\":         37500.00,\n  \"docLevelDiscount\":           0.00,\n  \"docLevelCharges\":            0.00,\n  \"taxAmount\":                  1875.00,\n  \"totalIncludingTax\":          39375.00,\n  \"payableAmount\":              39375.00,\n  \"roundingAmount\":             0.00,\n\n  \"accountingCost\":             null,\n  \"specialTaxTreatment\":        null,\n  \"despatchDocRef\":             null,\n  \"receiptDocRef\":              null,\n  \"projectDocRef\":              null,\n  \"originatorDocRef\":           null,\n\n  \"prepaidAmount\":              null,\n  \"taxCurrencyCode\":            null,\n  \"vatInAccountingCurrency\":    null,\n  \"exchangeRate\":               null,\n  \"totalInLocalCurrency\":       null,\n\n  \"deliveryLocation\":           \"I & L\",\n  \"deliveryAddressLine1\":       \"P.O. BOX 3222\",\n  \"deliveryAddressLine2\":       \"SHARJAH, U.A.E.\",\n  \"deliveryAddressLine3\":       \"NA\",\n  \"deliveryCity\":               \"Sharjah\",\n  \"deliveryPostalZone\":         \"NA\",\n  \"deliveryCountrySubdivision\": \"NA\",\n  \"deliveryCountryCode\":        \"AE\",\n  \"deliverySchemeId\":           null,\n  \"deliveryPartyId\":            null,\n  \"deliveryPartyName\":          null,\n  \"deliveryIncoterms\":          null,\n\n  \"taxRepName\":                 null,\n  \"taxRepAddressLine1\":         null,\n  \"taxRepAddressLine2\":         null,\n  \"taxRepAddressLine3\":         null,\n  \"taxRepCity\":                 null,\n  \"taxRepPostalZone\":           null,\n  \"taxRepCountrySubdivision\":   null,\n  \"taxRepCountryCode\":          null,\n  \"taxRepTaxScheme\":            null,\n  \"taxRepTaxId\":                null,\n\n  \"supplierParticipantId\":      null,\n  \"customerParticipantId\":      null,\n\n  \"lines\": [\n    {\n      \"lineNumber\":            1,\n      \"itemName\":              \"Safe Oilgo\",\n      \"itemDescription\":       \"Safe Oilgo\",\n      \"sellerItemId\":          \"ILFGICS003\",\n      \"itemTypeGoodsServices\": null,\n      \"itemCountryOrigin\":     \"AE\",\n      \"quantity\":              15.0,\n      \"quantityUom\":           \"H87\",\n      \"unitPrice\":             2500.00,\n      \"priceBaseQty\":          1.0,\n      \"priceBaseQtyUom\":       \"H87\",\n      \"lineDiscountAmount\":    0,\n      \"lineDiscountPercent\":   0,\n      \"lineChargeAmount\":      0,\n      \"lineNetAmount\":         37500.00,\n      \"taxCategory\":           \"S\",\n      \"taxRatePercent\":        5.0,\n      \"taxScheme\":             \"VAT\",\n      \"lineTaxAmount\":         1875.00,\n      \"inclVatAmount\":         39375.00,\n      \"rcmCode\":               null,\n      \"accountingCost\":        null,\n      \"orderLineRef\":          null,\n      \"periodStart\":           null,\n      \"periodEnd\":             null,\n      \"vatExemptReasonCode\":   null,\n      \"vatExemptReasonText\":   null\n    }\n  ],\n\n  \"allowances\": [],\n\n  \"payments\": [\n    {\n      \"paymentMeansCode\":   \"30\",\n      \"paymentId\":          null,\n      \"remittanceInfo\":     null,\n      \"creditAccountIban\":  \"AE070260001012029678901\",\n      \"creditAccountScheme\": \"IBAN\",\n      \"creditAccountName\":  null,\n      \"cardNumberLast4\":    null,\n      \"cardHolderName\":     null,\n      \"bankBicSwift\":       null,\n      \"bankAddressLine1\":   null,\n      \"bankCity\":           null,\n      \"bankCountry\":        null,\n      \"mandateReferenceId\": null\n    }\n  ],\n\n  \"terms\": [\n    {\n      \"termId\":          null,\n      \"termNote\":        \"60 Days from Inv. Dt.\",\n      \"termAmount\":      39375.00,\n      \"termCurrency\":    \"AED\",\n      \"termInstallDate\": \"2026-09-12\"\n    }\n  ]\n}"
                },
                "url": {
                  "raw": "{{baseUrl}}/external/api/v1/eInvoiceEntry/createFull",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "external",
                    "api",
                    "v1",
                    "eInvoiceEntry",
                    "createFull"
                  ]
                },
                "description": "Creates a full e-invoice entry with lines, allowances, payments, and terms in a single JSON call.\nAll dates: yyyy-MM-dd. For taxCategory='E' the vatExemptReasonCode is mandatory ([ibr-167-ae]).\n\nPeppol routing:\n  supplierParticipantId — seller's Peppol participant ID (e.g. '0088:1234567890123')\n  customerParticipantId — buyer's Peppol participant ID (e.g. '0088:9876543210987')\n  Both fields are optional (nullable).\n\nLegal registration / other IDs (all optional):\n  sellerLegalRegistrationId / buyerLegalRegistrationId       — IBT-030 / IBT-047, e.g. trade license number\n  sellerLegalRegistrationType / buyerLegalRegistrationType   — BTAE-15 / BTAE-16, one of TL, EID, PAS, CD\n  sellerLegalRegistrationAuthority / buyerLegalRegistrationAuthority — BTAE-12/18 / BTAE-11/19: authority name when type is TL/EID/CD, or passport-issuing country when type is PAS\n  sellerOtherId / buyerOtherId — additional tax/other identifier"
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n  \"errorKey\": \"API key missing\"\n}"
            }
          ],
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test(\"HTTP 200\", () => pm.response.to.have.status(200));",
                  "const j = pm.response.json();",
                  "pm.test(\"success = true (else see errorKey / error)\", () => pm.expect(j.success, JSON.stringify(j)).to.be.true);",
                  "pm.test(\"entry created or overwritten\", () => pm.expect([\"CREATED\", \"OVERWRITTEN\"]).to.include(j.status));",
                  "if (j.entryId) { pm.collectionVariables.set(\"entryId\", String(j.entryId)); console.log(\"entryId =\", j.entryId, \"documentId =\", j.documentId); }"
                ]
              }
            }
          ]
        },
        {
          "name": "3.9 Free trade zone (beneficiary id)",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "X-API-KEY",
                "value": "{{apiKey}}"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"companyId\": 20,\n  \"documentId\": \"EX-FREETRADEZ-0001\",\n  \"invoiceRef\": \"EX-FREETRADEZ-0001\",\n  \"issueDate\": \"2026-09-06\",\n  \"paymentDueDate\": \"2026-10-06\",\n  \"sellerName\": \"TRONSTRIDE FZC\",\n  \"sellerVatTrn\": \"104196887400003\",\n  \"sellerVatScheme\": \"VAT\",\n  \"sellerRegisteredName\": \"TRONSTRIDE FZC\",\n  \"sellerAddressLine1\": \"BUSINESS CENTRE SHARJAH PUBLISHING CITY FREEZONE\",\n  \"sellerAddressLine2\": \"NA\",\n  \"sellerCity\": \"Sharjah\",\n  \"sellerPostalZone\": null,\n  \"sellerCountrySubdivision\": \"SHJ\",\n  \"sellerCountryCode\": \"AE\",\n  \"sellerTelephone\": \"971529031765\",\n  \"sellerEmail\": \"mohamed@tronstride.com\",\n  \"sellerPoBox\": null,\n  \"sellerLegalRegistrationId\": \"714/2015\",\n  \"sellerLegalRegistrationType\": \"TL\",\n  \"sellerLegalRegistrationAuthority\": \"Dubai Economic Department\",\n  \"sellerOtherId\": null,\n  \"invoiceTypeCode\": \"380\",\n  \"invoiceTransactionType\": \"10000000\",\n  \"documentCurrencyCode\": \"AED\",\n  \"buyerName\": \"TRONSTRIDE FZC\",\n  \"buyerRegisteredName\": \"TRONSTRIDE FZC\",\n  \"buyerVatTrn\": \"104196887400003\",\n  \"buyerVatScheme\": \"VAT\",\n  \"buyerOtherId\": \"1041968874\",\n  \"buyerAddressLine1\": \"BUSINESS CENTRE SHARJAH PUBLISHING CITY FREEZONE\",\n  \"buyerAddressLine2\": \"1\",\n  \"buyerCity\": \"SHJ\",\n  \"buyerCountrySubdivision\": \"SHJ\",\n  \"buyerCountryCode\": \"AE\",\n  \"buyerPostalZone\": \"000000\",\n  \"buyerTelephone\": \"971529031765\",\n  \"buyerEmail\": \"kabashik786@gmail.com\",\n  \"buyerLegalRegistrationId\": \"1009077240\",\n  \"buyerLegalRegistrationType\": \"TL\",\n  \"buyerLegalRegistrationAuthority\": \"SPC FREEZONE\",\n  \"customerParticipantId\": \"0235:1041968874\",\n  \"noteEN\": \"Free trade zone supply\",\n  \"payments\": [\n    {\n      \"paymentMeansCode\": \"10\"\n    }\n  ],\n  \"beneficiaryId\": \"JAFZA-BEN-00918\",\n  \"lines\": [\n    {\n      \"lineNumber\": 1,\n      \"itemName\": \"Warehouse handling - free zone\",\n      \"itemDescription\": \"Warehouse handling - free zone\",\n      \"quantity\": 1,\n      \"quantityUom\": \"EA\",\n      \"unitPrice\": 800.0,\n      \"lineNetAmount\": 800.0,\n      \"taxCategory\": \"S\",\n      \"taxRatePercent\": 5,\n      \"lineTaxAmount\": 40.0,\n      \"inclVatAmount\": 840.0\n    }\n  ],\n  \"lineExtensionTotal\": 800.0,\n  \"docLevelDiscount\": 0,\n  \"docLevelCharges\": 0,\n  \"taxAmount\": 40.0,\n  \"totalIncludingTax\": 840.0,\n  \"roundingAmount\": 0,\n  \"payableAmount\": 840.0\n}"
            },
            "url": {
              "raw": "{{baseUrl}}/external/api/v1/eInvoiceEntry/createFull",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "external",
                "api",
                "v1",
                "eInvoiceEntry",
                "createFull"
              ]
            },
            "description": "Transaction type 10000000 (free trade zone) plus the Beneficiary ID of the party receiving the goods in the zone.\n\n- 10000000 = free trade zone (position 1).\n- Identifier of the beneficiary in the zone; mandatory for this transaction type (ibr-007-ae).\n\nPasses the v1.04 rules (ibr-007-ae) in the release test; needs the September backend and orchestrator builds."
          },
          "response": [
            {
              "name": "Success",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "X-API-KEY",
                    "value": "{{apiKey}}"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"companyId\": 20,\n  \"invoiceRef\": \"IIL-1001309\",\n\n  \"documentId\":                 \"IIL-1001309\",\n  \"issueDate\":                  \"2026-07-14\",\n  \"invoiceTypeCode\":            \"380\",\n  \"invoiceTransactionType\":     \"00000000\",\n  \"documentCurrencyCode\":       \"AED\",\n  \"noteEN\":                     \"INV\",\n  \"taxPointDate\":               null,\n  \"invoiceSupplyDate\":          null,\n  \"paymentDueDate\":             \"2026-09-12\",\n  \"orderReference\":             \"NA\",\n  \"contractDocumentReference\":  \"SIL-301358\",\n  \"originalInvoiceReference\":   \"SIL-301358\",\n  \"originalInvoiceReferenceDate\": \"2026-07-09\",\n  \"buyerReference\":             null,\n  \"invoicePeriodStartDate\":     null,\n  \"invoicePeriodEndDate\":       null,\n\n  \"sellerName\":                 \"TRONSTRIDE FZC\",\n  \"sellerVatTrn\":               \"104196887400003\",\n  \"sellerVatScheme\":            \"VAT\",\n  \"sellerRegisteredName\":       \"TRONSTRIDE FZC\",\n  \"sellerAddressLine1\":         \"BUSINESS CENTRE SHARJAH PUBLISHING CITY FREEZONE\",\n  \"sellerAddressLine2\":         \"NA\",\n  \"sellerCity\":                 \"Sharjah\",\n  \"sellerPostalZone\":           null,\n  \"sellerCountrySubdivision\":   \"SHJ\",\n  \"sellerCountryCode\":          \"AE\",\n  \"sellerTelephone\":            \"971529031765\",\n  \"sellerEmail\":                \"mohamed@tronstride.com\",\n  \"sellerPoBox\":                null,\n\n  \"buyerName\":                  \"HABIB MOHAMMAD SHARIF ABDULLA ALMULLA\",\n  \"buyerVatTrn\":                \"100711669800003\",\n  \"buyerVatScheme\":             \"VAT\",\n  \"buyerRegisteredName\":        \"HABIB MOHAMMAD SHARIF ABDULLA ALMULLA\",\n  \"buyerAddressLine1\":          \"Dubai, UAE\",\n  \"buyerAddressLine2\":          null,\n  \"buyerCity\":                  \"Dubai\",\n  \"buyerPostalZone\":            null,\n  \"buyerCountrySubdivision\":    \"DXB\",\n  \"buyerCountryCode\":           \"AE\",\n  \"buyerTelephone\":             null,\n  \"buyerEmail\":                 null,\n  \"buyerPoBox\":                 null,\n  \"buyerContact\":               null,\n\n  \"sellerLegalRegistrationId\":         \"714/2015\",\n  \"sellerLegalRegistrationType\":       \"TL\",\n  \"sellerLegalRegistrationAuthority\":  \"Dubai Economic Department\",\n  \"sellerOtherId\":                     null,\n  \"buyerLegalRegistrationId\":          null,\n  \"buyerLegalRegistrationType\":        null,\n  \"buyerLegalRegistrationAuthority\":   null,\n  \"buyerOtherId\":                      null,\n\n  \"lineExtensionTotal\":         37500.00,\n  \"docLevelDiscount\":           0.00,\n  \"docLevelCharges\":            0.00,\n  \"taxAmount\":                  1875.00,\n  \"totalIncludingTax\":          39375.00,\n  \"payableAmount\":              39375.00,\n  \"roundingAmount\":             0.00,\n\n  \"accountingCost\":             null,\n  \"specialTaxTreatment\":        null,\n  \"despatchDocRef\":             null,\n  \"receiptDocRef\":              null,\n  \"projectDocRef\":              null,\n  \"originatorDocRef\":           null,\n\n  \"prepaidAmount\":              null,\n  \"taxCurrencyCode\":            null,\n  \"vatInAccountingCurrency\":    null,\n  \"exchangeRate\":               null,\n  \"totalInLocalCurrency\":       null,\n\n  \"deliveryLocation\":           \"I & L\",\n  \"deliveryAddressLine1\":       \"P.O. BOX 3222\",\n  \"deliveryAddressLine2\":       \"SHARJAH, U.A.E.\",\n  \"deliveryAddressLine3\":       \"NA\",\n  \"deliveryCity\":               \"Sharjah\",\n  \"deliveryPostalZone\":         \"NA\",\n  \"deliveryCountrySubdivision\": \"NA\",\n  \"deliveryCountryCode\":        \"AE\",\n  \"deliverySchemeId\":           null,\n  \"deliveryPartyId\":            null,\n  \"deliveryPartyName\":          null,\n  \"deliveryIncoterms\":          null,\n\n  \"taxRepName\":                 null,\n  \"taxRepAddressLine1\":         null,\n  \"taxRepAddressLine2\":         null,\n  \"taxRepAddressLine3\":         null,\n  \"taxRepCity\":                 null,\n  \"taxRepPostalZone\":           null,\n  \"taxRepCountrySubdivision\":   null,\n  \"taxRepCountryCode\":          null,\n  \"taxRepTaxScheme\":            null,\n  \"taxRepTaxId\":                null,\n\n  \"supplierParticipantId\":      null,\n  \"customerParticipantId\":      null,\n\n  \"lines\": [\n    {\n      \"lineNumber\":            1,\n      \"itemName\":              \"Safe Oilgo\",\n      \"itemDescription\":       \"Safe Oilgo\",\n      \"sellerItemId\":          \"ILFGICS003\",\n      \"itemTypeGoodsServices\": null,\n      \"itemCountryOrigin\":     \"AE\",\n      \"quantity\":              15.0,\n      \"quantityUom\":           \"H87\",\n      \"unitPrice\":             2500.00,\n      \"priceBaseQty\":          1.0,\n      \"priceBaseQtyUom\":       \"H87\",\n      \"lineDiscountAmount\":    0,\n      \"lineDiscountPercent\":   0,\n      \"lineChargeAmount\":      0,\n      \"lineNetAmount\":         37500.00,\n      \"taxCategory\":           \"S\",\n      \"taxRatePercent\":        5.0,\n      \"taxScheme\":             \"VAT\",\n      \"lineTaxAmount\":         1875.00,\n      \"inclVatAmount\":         39375.00,\n      \"rcmCode\":               null,\n      \"accountingCost\":        null,\n      \"orderLineRef\":          null,\n      \"periodStart\":           null,\n      \"periodEnd\":             null,\n      \"vatExemptReasonCode\":   null,\n      \"vatExemptReasonText\":   null\n    }\n  ],\n\n  \"allowances\": [],\n\n  \"payments\": [\n    {\n      \"paymentMeansCode\":   \"30\",\n      \"paymentId\":          null,\n      \"remittanceInfo\":     null,\n      \"creditAccountIban\":  \"AE070260001012029678901\",\n      \"creditAccountScheme\": \"IBAN\",\n      \"creditAccountName\":  null,\n      \"cardNumberLast4\":    null,\n      \"cardHolderName\":     null,\n      \"bankBicSwift\":       null,\n      \"bankAddressLine1\":   null,\n      \"bankCity\":           null,\n      \"bankCountry\":        null,\n      \"mandateReferenceId\": null\n    }\n  ],\n\n  \"terms\": [\n    {\n      \"termId\":          null,\n      \"termNote\":        \"60 Days from Inv. Dt.\",\n      \"termAmount\":      39375.00,\n      \"termCurrency\":    \"AED\",\n      \"termInstallDate\": \"2026-09-12\"\n    }\n  ]\n}"
                },
                "url": {
                  "raw": "{{baseUrl}}/external/api/v1/eInvoiceEntry/createFull",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "external",
                    "api",
                    "v1",
                    "eInvoiceEntry",
                    "createFull"
                  ]
                },
                "description": "Creates a full e-invoice entry with lines, allowances, payments, and terms in a single JSON call.\nAll dates: yyyy-MM-dd. For taxCategory='E' the vatExemptReasonCode is mandatory ([ibr-167-ae]).\n\nPeppol routing:\n  supplierParticipantId — seller's Peppol participant ID (e.g. '0088:1234567890123')\n  customerParticipantId — buyer's Peppol participant ID (e.g. '0088:9876543210987')\n  Both fields are optional (nullable).\n\nLegal registration / other IDs (all optional):\n  sellerLegalRegistrationId / buyerLegalRegistrationId       — IBT-030 / IBT-047, e.g. trade license number\n  sellerLegalRegistrationType / buyerLegalRegistrationType   — BTAE-15 / BTAE-16, one of TL, EID, PAS, CD\n  sellerLegalRegistrationAuthority / buyerLegalRegistrationAuthority — BTAE-12/18 / BTAE-11/19: authority name when type is TL/EID/CD, or passport-issuing country when type is PAS\n  sellerOtherId / buyerOtherId — additional tax/other identifier"
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n  \"success\":           true,\n  \"invoiceRef\":        \"INV-001\",\n  \"entryId\":           1042,\n  \"documentId\":        \"INV-2024-001\",\n  \"linesCreated\":      2,\n  \"allowancesCreated\": 1,\n  \"paymentsCreated\":   1,\n  \"termsCreated\":      1\n}"
            },
            {
              "name": "Validation Error (ibr-167-ae)",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "X-API-KEY",
                    "value": "{{apiKey}}"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"companyId\": 20,\n  \"invoiceRef\": \"IIL-1001309\",\n\n  \"documentId\":                 \"IIL-1001309\",\n  \"issueDate\":                  \"2026-07-14\",\n  \"invoiceTypeCode\":            \"380\",\n  \"invoiceTransactionType\":     \"00000000\",\n  \"documentCurrencyCode\":       \"AED\",\n  \"noteEN\":                     \"INV\",\n  \"taxPointDate\":               null,\n  \"invoiceSupplyDate\":          null,\n  \"paymentDueDate\":             \"2026-09-12\",\n  \"orderReference\":             \"NA\",\n  \"contractDocumentReference\":  \"SIL-301358\",\n  \"originalInvoiceReference\":   \"SIL-301358\",\n  \"originalInvoiceReferenceDate\": \"2026-07-09\",\n  \"buyerReference\":             null,\n  \"invoicePeriodStartDate\":     null,\n  \"invoicePeriodEndDate\":       null,\n\n  \"sellerName\":                 \"TRONSTRIDE FZC\",\n  \"sellerVatTrn\":               \"104196887400003\",\n  \"sellerVatScheme\":            \"VAT\",\n  \"sellerRegisteredName\":       \"TRONSTRIDE FZC\",\n  \"sellerAddressLine1\":         \"BUSINESS CENTRE SHARJAH PUBLISHING CITY FREEZONE\",\n  \"sellerAddressLine2\":         \"NA\",\n  \"sellerCity\":                 \"Sharjah\",\n  \"sellerPostalZone\":           null,\n  \"sellerCountrySubdivision\":   \"SHJ\",\n  \"sellerCountryCode\":          \"AE\",\n  \"sellerTelephone\":            \"971529031765\",\n  \"sellerEmail\":                \"mohamed@tronstride.com\",\n  \"sellerPoBox\":                null,\n\n  \"buyerName\":                  \"HABIB MOHAMMAD SHARIF ABDULLA ALMULLA\",\n  \"buyerVatTrn\":                \"100711669800003\",\n  \"buyerVatScheme\":             \"VAT\",\n  \"buyerRegisteredName\":        \"HABIB MOHAMMAD SHARIF ABDULLA ALMULLA\",\n  \"buyerAddressLine1\":          \"Dubai, UAE\",\n  \"buyerAddressLine2\":          null,\n  \"buyerCity\":                  \"Dubai\",\n  \"buyerPostalZone\":            null,\n  \"buyerCountrySubdivision\":    \"DXB\",\n  \"buyerCountryCode\":           \"AE\",\n  \"buyerTelephone\":             null,\n  \"buyerEmail\":                 null,\n  \"buyerPoBox\":                 null,\n  \"buyerContact\":               null,\n\n  \"sellerLegalRegistrationId\":         \"714/2015\",\n  \"sellerLegalRegistrationType\":       \"TL\",\n  \"sellerLegalRegistrationAuthority\":  \"Dubai Economic Department\",\n  \"sellerOtherId\":                     null,\n  \"buyerLegalRegistrationId\":          null,\n  \"buyerLegalRegistrationType\":        null,\n  \"buyerLegalRegistrationAuthority\":   null,\n  \"buyerOtherId\":                      null,\n\n  \"lineExtensionTotal\":         37500.00,\n  \"docLevelDiscount\":           0.00,\n  \"docLevelCharges\":            0.00,\n  \"taxAmount\":                  1875.00,\n  \"totalIncludingTax\":          39375.00,\n  \"payableAmount\":              39375.00,\n  \"roundingAmount\":             0.00,\n\n  \"accountingCost\":             null,\n  \"specialTaxTreatment\":        null,\n  \"despatchDocRef\":             null,\n  \"receiptDocRef\":              null,\n  \"projectDocRef\":              null,\n  \"originatorDocRef\":           null,\n\n  \"prepaidAmount\":              null,\n  \"taxCurrencyCode\":            null,\n  \"vatInAccountingCurrency\":    null,\n  \"exchangeRate\":               null,\n  \"totalInLocalCurrency\":       null,\n\n  \"deliveryLocation\":           \"I & L\",\n  \"deliveryAddressLine1\":       \"P.O. BOX 3222\",\n  \"deliveryAddressLine2\":       \"SHARJAH, U.A.E.\",\n  \"deliveryAddressLine3\":       \"NA\",\n  \"deliveryCity\":               \"Sharjah\",\n  \"deliveryPostalZone\":         \"NA\",\n  \"deliveryCountrySubdivision\": \"NA\",\n  \"deliveryCountryCode\":        \"AE\",\n  \"deliverySchemeId\":           null,\n  \"deliveryPartyId\":            null,\n  \"deliveryPartyName\":          null,\n  \"deliveryIncoterms\":          null,\n\n  \"taxRepName\":                 null,\n  \"taxRepAddressLine1\":         null,\n  \"taxRepAddressLine2\":         null,\n  \"taxRepAddressLine3\":         null,\n  \"taxRepCity\":                 null,\n  \"taxRepPostalZone\":           null,\n  \"taxRepCountrySubdivision\":   null,\n  \"taxRepCountryCode\":          null,\n  \"taxRepTaxScheme\":            null,\n  \"taxRepTaxId\":                null,\n\n  \"supplierParticipantId\":      null,\n  \"customerParticipantId\":      null,\n\n  \"lines\": [\n    {\n      \"lineNumber\":            1,\n      \"itemName\":              \"Safe Oilgo\",\n      \"itemDescription\":       \"Safe Oilgo\",\n      \"sellerItemId\":          \"ILFGICS003\",\n      \"itemTypeGoodsServices\": null,\n      \"itemCountryOrigin\":     \"AE\",\n      \"quantity\":              15.0,\n      \"quantityUom\":           \"H87\",\n      \"unitPrice\":             2500.00,\n      \"priceBaseQty\":          1.0,\n      \"priceBaseQtyUom\":       \"H87\",\n      \"lineDiscountAmount\":    0,\n      \"lineDiscountPercent\":   0,\n      \"lineChargeAmount\":      0,\n      \"lineNetAmount\":         37500.00,\n      \"taxCategory\":           \"S\",\n      \"taxRatePercent\":        5.0,\n      \"taxScheme\":             \"VAT\",\n      \"lineTaxAmount\":         1875.00,\n      \"inclVatAmount\":         39375.00,\n      \"rcmCode\":               null,\n      \"accountingCost\":        null,\n      \"orderLineRef\":          null,\n      \"periodStart\":           null,\n      \"periodEnd\":             null,\n      \"vatExemptReasonCode\":   null,\n      \"vatExemptReasonText\":   null\n    }\n  ],\n\n  \"allowances\": [],\n\n  \"payments\": [\n    {\n      \"paymentMeansCode\":   \"30\",\n      \"paymentId\":          null,\n      \"remittanceInfo\":     null,\n      \"creditAccountIban\":  \"AE070260001012029678901\",\n      \"creditAccountScheme\": \"IBAN\",\n      \"creditAccountName\":  null,\n      \"cardNumberLast4\":    null,\n      \"cardHolderName\":     null,\n      \"bankBicSwift\":       null,\n      \"bankAddressLine1\":   null,\n      \"bankCity\":           null,\n      \"bankCountry\":        null,\n      \"mandateReferenceId\": null\n    }\n  ],\n\n  \"terms\": [\n    {\n      \"termId\":          null,\n      \"termNote\":        \"60 Days from Inv. Dt.\",\n      \"termAmount\":      39375.00,\n      \"termCurrency\":    \"AED\",\n      \"termInstallDate\": \"2026-09-12\"\n    }\n  ]\n}"
                },
                "url": {
                  "raw": "{{baseUrl}}/external/api/v1/eInvoiceEntry/createFull",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "external",
                    "api",
                    "v1",
                    "eInvoiceEntry",
                    "createFull"
                  ]
                },
                "description": "Creates a full e-invoice entry with lines, allowances, payments, and terms in a single JSON call.\nAll dates: yyyy-MM-dd. For taxCategory='E' the vatExemptReasonCode is mandatory ([ibr-167-ae]).\n\nPeppol routing:\n  supplierParticipantId — seller's Peppol participant ID (e.g. '0088:1234567890123')\n  customerParticipantId — buyer's Peppol participant ID (e.g. '0088:9876543210987')\n  Both fields are optional (nullable).\n\nLegal registration / other IDs (all optional):\n  sellerLegalRegistrationId / buyerLegalRegistrationId       — IBT-030 / IBT-047, e.g. trade license number\n  sellerLegalRegistrationType / buyerLegalRegistrationType   — BTAE-15 / BTAE-16, one of TL, EID, PAS, CD\n  sellerLegalRegistrationAuthority / buyerLegalRegistrationAuthority — BTAE-12/18 / BTAE-11/19: authority name when type is TL/EID/CD, or passport-issuing country when type is PAS\n  sellerOtherId / buyerOtherId — additional tax/other identifier"
              },
              "status": "Bad Request",
              "code": 400,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n  \"success\": false,\n  \"error\": \"[ibr-167-ae] Line 1: vatExemptReasonCode is mandatory when taxCategory is 'E'.\"\n}"
            },
            {
              "name": "Unauthorized",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "X-API-KEY",
                    "value": "{{apiKey}}"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"companyId\": 20,\n  \"invoiceRef\": \"IIL-1001309\",\n\n  \"documentId\":                 \"IIL-1001309\",\n  \"issueDate\":                  \"2026-07-14\",\n  \"invoiceTypeCode\":            \"380\",\n  \"invoiceTransactionType\":     \"00000000\",\n  \"documentCurrencyCode\":       \"AED\",\n  \"noteEN\":                     \"INV\",\n  \"taxPointDate\":               null,\n  \"invoiceSupplyDate\":          null,\n  \"paymentDueDate\":             \"2026-09-12\",\n  \"orderReference\":             \"NA\",\n  \"contractDocumentReference\":  \"SIL-301358\",\n  \"originalInvoiceReference\":   \"SIL-301358\",\n  \"originalInvoiceReferenceDate\": \"2026-07-09\",\n  \"buyerReference\":             null,\n  \"invoicePeriodStartDate\":     null,\n  \"invoicePeriodEndDate\":       null,\n\n  \"sellerName\":                 \"TRONSTRIDE FZC\",\n  \"sellerVatTrn\":               \"104196887400003\",\n  \"sellerVatScheme\":            \"VAT\",\n  \"sellerRegisteredName\":       \"TRONSTRIDE FZC\",\n  \"sellerAddressLine1\":         \"BUSINESS CENTRE SHARJAH PUBLISHING CITY FREEZONE\",\n  \"sellerAddressLine2\":         \"NA\",\n  \"sellerCity\":                 \"Sharjah\",\n  \"sellerPostalZone\":           null,\n  \"sellerCountrySubdivision\":   \"SHJ\",\n  \"sellerCountryCode\":          \"AE\",\n  \"sellerTelephone\":            \"971529031765\",\n  \"sellerEmail\":                \"mohamed@tronstride.com\",\n  \"sellerPoBox\":                null,\n\n  \"buyerName\":                  \"HABIB MOHAMMAD SHARIF ABDULLA ALMULLA\",\n  \"buyerVatTrn\":                \"100711669800003\",\n  \"buyerVatScheme\":             \"VAT\",\n  \"buyerRegisteredName\":        \"HABIB MOHAMMAD SHARIF ABDULLA ALMULLA\",\n  \"buyerAddressLine1\":          \"Dubai, UAE\",\n  \"buyerAddressLine2\":          null,\n  \"buyerCity\":                  \"Dubai\",\n  \"buyerPostalZone\":            null,\n  \"buyerCountrySubdivision\":    \"DXB\",\n  \"buyerCountryCode\":           \"AE\",\n  \"buyerTelephone\":             null,\n  \"buyerEmail\":                 null,\n  \"buyerPoBox\":                 null,\n  \"buyerContact\":               null,\n\n  \"sellerLegalRegistrationId\":         \"714/2015\",\n  \"sellerLegalRegistrationType\":       \"TL\",\n  \"sellerLegalRegistrationAuthority\":  \"Dubai Economic Department\",\n  \"sellerOtherId\":                     null,\n  \"buyerLegalRegistrationId\":          null,\n  \"buyerLegalRegistrationType\":        null,\n  \"buyerLegalRegistrationAuthority\":   null,\n  \"buyerOtherId\":                      null,\n\n  \"lineExtensionTotal\":         37500.00,\n  \"docLevelDiscount\":           0.00,\n  \"docLevelCharges\":            0.00,\n  \"taxAmount\":                  1875.00,\n  \"totalIncludingTax\":          39375.00,\n  \"payableAmount\":              39375.00,\n  \"roundingAmount\":             0.00,\n\n  \"accountingCost\":             null,\n  \"specialTaxTreatment\":        null,\n  \"despatchDocRef\":             null,\n  \"receiptDocRef\":              null,\n  \"projectDocRef\":              null,\n  \"originatorDocRef\":           null,\n\n  \"prepaidAmount\":              null,\n  \"taxCurrencyCode\":            null,\n  \"vatInAccountingCurrency\":    null,\n  \"exchangeRate\":               null,\n  \"totalInLocalCurrency\":       null,\n\n  \"deliveryLocation\":           \"I & L\",\n  \"deliveryAddressLine1\":       \"P.O. BOX 3222\",\n  \"deliveryAddressLine2\":       \"SHARJAH, U.A.E.\",\n  \"deliveryAddressLine3\":       \"NA\",\n  \"deliveryCity\":               \"Sharjah\",\n  \"deliveryPostalZone\":         \"NA\",\n  \"deliveryCountrySubdivision\": \"NA\",\n  \"deliveryCountryCode\":        \"AE\",\n  \"deliverySchemeId\":           null,\n  \"deliveryPartyId\":            null,\n  \"deliveryPartyName\":          null,\n  \"deliveryIncoterms\":          null,\n\n  \"taxRepName\":                 null,\n  \"taxRepAddressLine1\":         null,\n  \"taxRepAddressLine2\":         null,\n  \"taxRepAddressLine3\":         null,\n  \"taxRepCity\":                 null,\n  \"taxRepPostalZone\":           null,\n  \"taxRepCountrySubdivision\":   null,\n  \"taxRepCountryCode\":          null,\n  \"taxRepTaxScheme\":            null,\n  \"taxRepTaxId\":                null,\n\n  \"supplierParticipantId\":      null,\n  \"customerParticipantId\":      null,\n\n  \"lines\": [\n    {\n      \"lineNumber\":            1,\n      \"itemName\":              \"Safe Oilgo\",\n      \"itemDescription\":       \"Safe Oilgo\",\n      \"sellerItemId\":          \"ILFGICS003\",\n      \"itemTypeGoodsServices\": null,\n      \"itemCountryOrigin\":     \"AE\",\n      \"quantity\":              15.0,\n      \"quantityUom\":           \"H87\",\n      \"unitPrice\":             2500.00,\n      \"priceBaseQty\":          1.0,\n      \"priceBaseQtyUom\":       \"H87\",\n      \"lineDiscountAmount\":    0,\n      \"lineDiscountPercent\":   0,\n      \"lineChargeAmount\":      0,\n      \"lineNetAmount\":         37500.00,\n      \"taxCategory\":           \"S\",\n      \"taxRatePercent\":        5.0,\n      \"taxScheme\":             \"VAT\",\n      \"lineTaxAmount\":         1875.00,\n      \"inclVatAmount\":         39375.00,\n      \"rcmCode\":               null,\n      \"accountingCost\":        null,\n      \"orderLineRef\":          null,\n      \"periodStart\":           null,\n      \"periodEnd\":             null,\n      \"vatExemptReasonCode\":   null,\n      \"vatExemptReasonText\":   null\n    }\n  ],\n\n  \"allowances\": [],\n\n  \"payments\": [\n    {\n      \"paymentMeansCode\":   \"30\",\n      \"paymentId\":          null,\n      \"remittanceInfo\":     null,\n      \"creditAccountIban\":  \"AE070260001012029678901\",\n      \"creditAccountScheme\": \"IBAN\",\n      \"creditAccountName\":  null,\n      \"cardNumberLast4\":    null,\n      \"cardHolderName\":     null,\n      \"bankBicSwift\":       null,\n      \"bankAddressLine1\":   null,\n      \"bankCity\":           null,\n      \"bankCountry\":        null,\n      \"mandateReferenceId\": null\n    }\n  ],\n\n  \"terms\": [\n    {\n      \"termId\":          null,\n      \"termNote\":        \"60 Days from Inv. Dt.\",\n      \"termAmount\":      39375.00,\n      \"termCurrency\":    \"AED\",\n      \"termInstallDate\": \"2026-09-12\"\n    }\n  ]\n}"
                },
                "url": {
                  "raw": "{{baseUrl}}/external/api/v1/eInvoiceEntry/createFull",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "external",
                    "api",
                    "v1",
                    "eInvoiceEntry",
                    "createFull"
                  ]
                },
                "description": "Creates a full e-invoice entry with lines, allowances, payments, and terms in a single JSON call.\nAll dates: yyyy-MM-dd. For taxCategory='E' the vatExemptReasonCode is mandatory ([ibr-167-ae]).\n\nPeppol routing:\n  supplierParticipantId — seller's Peppol participant ID (e.g. '0088:1234567890123')\n  customerParticipantId — buyer's Peppol participant ID (e.g. '0088:9876543210987')\n  Both fields are optional (nullable).\n\nLegal registration / other IDs (all optional):\n  sellerLegalRegistrationId / buyerLegalRegistrationId       — IBT-030 / IBT-047, e.g. trade license number\n  sellerLegalRegistrationType / buyerLegalRegistrationType   — BTAE-15 / BTAE-16, one of TL, EID, PAS, CD\n  sellerLegalRegistrationAuthority / buyerLegalRegistrationAuthority — BTAE-12/18 / BTAE-11/19: authority name when type is TL/EID/CD, or passport-issuing country when type is PAS\n  sellerOtherId / buyerOtherId — additional tax/other identifier"
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n  \"errorKey\": \"API key missing\"\n}"
            }
          ],
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test(\"HTTP 200\", () => pm.response.to.have.status(200));",
                  "const j = pm.response.json();",
                  "pm.test(\"success = true (else see errorKey / error)\", () => pm.expect(j.success, JSON.stringify(j)).to.be.true);",
                  "pm.test(\"entry created or overwritten\", () => pm.expect([\"CREATED\", \"OVERWRITTEN\"]).to.include(j.status));",
                  "if (j.entryId) { pm.collectionVariables.set(\"entryId\", String(j.entryId)); console.log(\"entryId =\", j.entryId, \"documentId =\", j.documentId); }"
                ]
              }
            }
          ]
        }
      ],
      "description": "Same cases as GET /eInvoiceEntry/examples and the Easy Invoice Examples panel. Each request stores entryId for 2.3 / 4.x."
    },
    {
      "name": "4. Manage entries",
      "item": [
        {
          "name": "4.1 Get E-Invoice Entry by ID",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "X-API-KEY",
                "value": "{{apiKey}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/external/api/v1/eInvoiceEntry/{{entryId}}",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "external",
                "api",
                "v1",
                "eInvoiceEntry",
                "{{entryId}}"
              ]
            },
            "description": "Retrieves the full EInvoiceEntry response DTO for the given entry ID."
          },
          "response": [
            {
              "name": "Success",
              "originalRequest": {
                "method": "GET",
                "header": [
                  {
                    "key": "X-API-KEY",
                    "value": "{{apiKey}}"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/external/api/v1/eInvoiceEntry/{{entryId}}",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "external",
                    "api",
                    "v1",
                    "eInvoiceEntry",
                    "{{entryId}}"
                  ]
                },
                "description": "Retrieves the full EInvoiceEntry response DTO for the given entry ID."
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n  \"id\":                       1042,\n  \"documentIdEN\":             \"INV-2024-001\",\n  \"invoiceTypeCode\":          \"380\",\n  \"documentCurrencyCode\":     \"AED\",\n  \"issueDateEN\":              \"2024-01-15T00:00:00\",\n  \"paymentDueDate\":           \"2024-02-15T00:00:00\",\n  \"status\":                   \"DRAFT\",\n  \"taxStatus\":                \"NOT_INITIATED\",\n  \"supplyPartyNameEN\":        \"ABC Trading LLC\",\n  \"supplyVatIdEN\":            \"100123456700003\",\n  \"customerPartyNameEN\":      \"XYZ Corp\",\n  \"customerVatIdEN\":          \"100987654300003\",\n  \"legalTaxInclusiveAmountEN\": 997.50,\n  \"legalFinalPayableEN\":       997.50,\n  \"taxTotalTaxAmount\":         47.50,\n  \"createdAt\":                \"2024-01-15T10:30:00\"\n}"
            }
          ]
        },
        {
          "name": "4.2 List E-Invoice Entries",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "X-API-KEY",
                "value": "{{apiKey}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/external/api/v1/eInvoiceEntry?companyId={{companyId}}&startDate=2024-01-01&endDate=2024-12-31&page=0&perPage=10&sortBy=createdAt&orderBy=desc",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "external",
                "api",
                "v1",
                "eInvoiceEntry"
              ],
              "query": [
                {
                  "key": "companyId",
                  "value": "{{companyId}}"
                },
                {
                  "key": "startDate",
                  "value": "2024-01-01"
                },
                {
                  "key": "endDate",
                  "value": "2024-12-31"
                },
                {
                  "key": "page",
                  "value": "0"
                },
                {
                  "key": "perPage",
                  "value": "10"
                },
                {
                  "key": "sortBy",
                  "value": "createdAt"
                },
                {
                  "key": "orderBy",
                  "value": "desc"
                },
                {
                  "key": "status",
                  "value": "DRAFT",
                  "disabled": true
                },
                {
                  "key": "type",
                  "value": "OUTBOUND",
                  "disabled": true
                },
                {
                  "key": "searchString",
                  "value": "",
                  "disabled": true
                }
              ]
            },
            "description": "Paginated list of entries. Enable optional query params as needed."
          },
          "response": [
            {
              "name": "Success",
              "originalRequest": {
                "method": "GET",
                "header": [
                  {
                    "key": "X-API-KEY",
                    "value": "{{apiKey}}"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/external/api/v1/eInvoiceEntry?companyId={{companyId}}&startDate=2024-01-01&endDate=2024-12-31&page=0&perPage=10&sortBy=createdAt&orderBy=desc",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "external",
                    "api",
                    "v1",
                    "eInvoiceEntry"
                  ],
                  "query": [
                    {
                      "key": "companyId",
                      "value": "{{companyId}}"
                    },
                    {
                      "key": "startDate",
                      "value": "2024-01-01"
                    },
                    {
                      "key": "endDate",
                      "value": "2024-12-31"
                    },
                    {
                      "key": "page",
                      "value": "0"
                    },
                    {
                      "key": "perPage",
                      "value": "10"
                    },
                    {
                      "key": "sortBy",
                      "value": "createdAt"
                    },
                    {
                      "key": "orderBy",
                      "value": "desc"
                    },
                    {
                      "key": "status",
                      "value": "DRAFT",
                      "disabled": true
                    },
                    {
                      "key": "type",
                      "value": "OUTBOUND",
                      "disabled": true
                    },
                    {
                      "key": "searchString",
                      "value": "",
                      "disabled": true
                    }
                  ]
                },
                "description": "Paginated list of entries. Enable optional query params as needed."
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n  \"content\": [\n    {\n      \"id\":                  1042,\n      \"documentIdEN\":        \"INV-2024-001\",\n      \"status\":              \"DRAFT\",\n      \"issueDateEN\":         \"2024-01-15T00:00:00\",\n      \"supplyPartyNameEN\":   \"ABC Trading LLC\",\n      \"customerPartyNameEN\": \"XYZ Corp\",\n      \"legalFinalPayableEN\": 997.50\n    }\n  ],\n  \"totalElements\": 1,\n  \"totalPages\":    1,\n  \"pageNumber\":    0,\n  \"pageSize\":      10\n}"
            }
          ]
        },
        {
          "name": "4.3 Status Timeline",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "X-API-KEY",
                "value": "{{apiKey}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/external/api/v1/eInvoiceEntry/{{entryId}}/statusTimeline?type=OUTBOUND",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "external",
                "api",
                "v1",
                "eInvoiceEntry",
                "{{entryId}}",
                "statusTimeline"
              ],
              "query": [
                {
                  "key": "type",
                  "value": "OUTBOUND",
                  "description": "OUTBOUND or INBOUND"
                }
              ]
            },
            "description": "Returns the full status transition history. type must be OUTBOUND or INBOUND."
          },
          "response": [
            {
              "name": "Success",
              "originalRequest": {
                "method": "GET",
                "header": [
                  {
                    "key": "X-API-KEY",
                    "value": "{{apiKey}}"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/external/api/v1/eInvoiceEntry/{{entryId}}/statusTimeline?type=OUTBOUND",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "external",
                    "api",
                    "v1",
                    "eInvoiceEntry",
                    "{{entryId}}",
                    "statusTimeline"
                  ],
                  "query": [
                    {
                      "key": "type",
                      "value": "OUTBOUND",
                      "description": "OUTBOUND or INBOUND"
                    }
                  ]
                },
                "description": "Returns the full status transition history. type must be OUTBOUND or INBOUND."
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n  \"statusTimeline\": {\n    \"entryId\":    1042,\n    \"documentId\": \"INV-2024-001\",\n    \"type\":       \"OUTBOUND\",\n    \"timeline\": [\n      { \"status\": \"DRAFT\",     \"timestamp\": \"2024-01-15T10:30:00\", \"updatedBy\": \"user@example.com\" },\n      { \"status\": \"VALID\",     \"timestamp\": \"2024-01-15T10:35:00\", \"updatedBy\": \"system\" },\n      { \"status\": \"SUBMITTED\", \"timestamp\": \"2024-01-15T10:36:00\", \"updatedBy\": \"system\" }\n    ]\n  }\n}"
            }
          ]
        },
        {
          "name": "4.4 Update E-Invoice Entry",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "X-API-KEY",
                "value": "{{apiKey}}"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"status\": \"SUBMITTED\" \n}"
            },
            "url": {
              "raw": "{{baseUrl}}/external/api/v1/eInvoiceEntry/{{entryId}}",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "external",
                "api",
                "v1",
                "eInvoiceEntry",
                "{{entryId}}"
              ]
            },
            "description": "Updates header fields of an existing DRAFT or VALIDATION_FAILED entry."
          },
          "response": [
            {
              "name": "Success",
              "originalRequest": {
                "method": "PUT",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "X-API-KEY",
                    "value": "{{apiKey}}"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"status\": \"SUBMITTED\" \n}"
                },
                "url": {
                  "raw": "{{baseUrl}}/external/api/v1/eInvoiceEntry/{{entryId}}",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "external",
                    "api",
                    "v1",
                    "eInvoiceEntry",
                    "{{entryId}}"
                  ]
                },
                "description": "Updates header fields of an existing DRAFT or VALIDATION_FAILED entry."
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n  \"id\":           1042,\n  \"documentIdEN\": \"INV-2024-001-REV\",\n  \"status\":       \"DRAFT\"\n}"
            }
          ]
        },
        {
          "name": "4.5 Delete E-Invoice Entries",
          "request": {
            "method": "DELETE",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "X-API-KEY",
                "value": "{{apiKey}}"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "[{{entryId}}]"
            },
            "url": {
              "raw": "{{baseUrl}}/external/api/v1/eInvoiceEntry",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "external",
                "api",
                "v1",
                "eInvoiceEntry"
              ]
            },
            "description": "Deletes one or more entries by ID."
          },
          "response": [
            {
              "name": "Success",
              "originalRequest": {
                "method": "DELETE",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "X-API-KEY",
                    "value": "{{apiKey}}"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "[{{entryId}}]"
                },
                "url": {
                  "raw": "{{baseUrl}}/external/api/v1/eInvoiceEntry",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "external",
                    "api",
                    "v1",
                    "eInvoiceEntry"
                  ]
                },
                "description": "Deletes one or more entries by ID."
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n  \"deleted\": 1,\n  \"success\": true\n}"
            }
          ]
        },
        {
          "name": "4.6 Get Validation Errors for Entry",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "X-API-KEY",
                "value": "{{apiKey}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/external/api/v1/eInvoiceEntry/{{entryId}}/validationErrors",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "external",
                "api",
                "v1",
                "eInvoiceEntry",
                "{{entryId}}",
                "validationErrors"
              ]
            },
            "description": "Returns the stored Peppol schematron validation errors for a specific entry (typically entries in VALIDATION_FAILED status).\n\nNo request body or extra query params required."
          },
          "response": [
            {
              "name": "Success – Errors Present",
              "originalRequest": {
                "method": "GET",
                "header": [
                  {
                    "key": "X-API-KEY",
                    "value": "{{apiKey}}"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/external/api/v1/eInvoiceEntry/{{entryId}}/validationErrors",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "external",
                    "api",
                    "v1",
                    "eInvoiceEntry",
                    "{{entryId}}",
                    "validationErrors"
                  ]
                },
                "description": "Returns the stored Peppol schematron validation errors for a specific entry (typically entries in VALIDATION_FAILED status).\n\nNo request body or extra query params required."
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n  \"entryId\":    1042,\n  \"documentId\": \"INV-2024-001\",\n  \"status\":     \"VALIDATION_FAILED\",\n  \"errors\": [\n    \"[ibr-167-ae] Line 1: vatExemptReasonCode is mandatory when taxCategory is 'E'.\",\n    \"[BR-CO-15] Amount due for payment (BT-115) = Invoice total amount with VAT (BT-112) - Paid amount (BT-113) + Rounding amount (BT-114).\"\n  ],\n  \"warnings\": []\n}"
            },
            {
              "name": "Success – No Errors",
              "originalRequest": {
                "method": "GET",
                "header": [
                  {
                    "key": "X-API-KEY",
                    "value": "{{apiKey}}"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/external/api/v1/eInvoiceEntry/{{entryId}}/validationErrors",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "external",
                    "api",
                    "v1",
                    "eInvoiceEntry",
                    "{{entryId}}",
                    "validationErrors"
                  ]
                },
                "description": "Returns the stored Peppol schematron validation errors for a specific entry (typically entries in VALIDATION_FAILED status).\n\nNo request body or extra query params required."
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n  \"entryId\":    1042,\n  \"documentId\": \"INV-2024-001\",\n  \"status\":     \"VALID\",\n  \"errors\":     [],\n  \"warnings\":   []\n}"
            },
            {
              "name": "Not Found",
              "originalRequest": {
                "method": "GET",
                "header": [
                  {
                    "key": "X-API-KEY",
                    "value": "{{apiKey}}"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/external/api/v1/eInvoiceEntry/{{entryId}}/validationErrors",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "external",
                    "api",
                    "v1",
                    "eInvoiceEntry",
                    "{{entryId}}",
                    "validationErrors"
                  ]
                },
                "description": "Returns the stored Peppol schematron validation errors for a specific entry (typically entries in VALIDATION_FAILED status).\n\nNo request body or extra query params required."
              },
              "status": "Not Found",
              "code": 404,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n  \"errorKey\": \"Entry not found: 1042\"\n}"
            }
          ]
        }
      ]
    },
    {
      "name": "5. Documents",
      "item": [
        {
          "name": "5.1 PDF Download (Peppol)",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "X-API-KEY",
                "value": "{{apiKey}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/external/api/v1/print/xml/{{entryId}}?fileName=outbound_sent",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "external",
                "api",
                "v1",
                "print",
                "xml",
                "{{entryId}}"
              ],
              "query": [
                {
                  "key": "fileName",
                  "value": "outbound_sent",
                  "description": "Document type: outbound_sent | outbound_ack | outbound_report_fta | outbound_confirm_fta | inbound_receive | inbound_ack | inbound_report_fta | inbound_confirm_fta"
                }
              ]
            },
            "description": "Generates and streams the Peppol e-invoice as a PDF (via Jasper Reports). Save the response body as a .pdf file.\n\nSupported fileName values:\n  outbound_sent, outbound_ack, outbound_report_fta, outbound_confirm_fta,\n  inbound_receive, inbound_ack, inbound_report_fta, inbound_confirm_fta"
          },
          "response": [
            {
              "name": "Success (binary PDF)",
              "originalRequest": {
                "method": "GET",
                "header": [
                  {
                    "key": "X-API-KEY",
                    "value": "{{apiKey}}"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/external/api/v1/print/xml/{{entryId}}?fileName=outbound_sent",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "external",
                    "api",
                    "v1",
                    "print",
                    "xml",
                    "{{entryId}}"
                  ],
                  "query": [
                    {
                      "key": "fileName",
                      "value": "outbound_sent",
                      "description": "Document type: outbound_sent | outbound_ack | outbound_report_fta | outbound_confirm_fta | inbound_receive | inbound_ack | inbound_report_fta | inbound_confirm_fta"
                    }
                  ]
                },
                "description": "Generates and streams the Peppol e-invoice as a PDF (via Jasper Reports). Save the response body as a .pdf file.\n\nSupported fileName values:\n  outbound_sent, outbound_ack, outbound_report_fta, outbound_confirm_fta,\n  inbound_receive, inbound_ack, inbound_report_fta, inbound_confirm_fta"
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "text",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/pdf"
                },
                {
                  "key": "Content-Disposition",
                  "value": "attachment; filename=\"outbound_sent_1042.pdf\""
                }
              ],
              "cookie": [],
              "body": ""
            },
            {
              "name": "Not Found",
              "originalRequest": {
                "method": "GET",
                "header": [
                  {
                    "key": "X-API-KEY",
                    "value": "{{apiKey}}"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/external/api/v1/print/xml/{{entryId}}?fileName=outbound_sent",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "external",
                    "api",
                    "v1",
                    "print",
                    "xml",
                    "{{entryId}}"
                  ],
                  "query": [
                    {
                      "key": "fileName",
                      "value": "outbound_sent",
                      "description": "Document type: outbound_sent | outbound_ack | outbound_report_fta | outbound_confirm_fta | inbound_receive | inbound_ack | inbound_report_fta | inbound_confirm_fta"
                    }
                  ]
                },
                "description": "Generates and streams the Peppol e-invoice as a PDF (via Jasper Reports). Save the response body as a .pdf file.\n\nSupported fileName values:\n  outbound_sent, outbound_ack, outbound_report_fta, outbound_confirm_fta,\n  inbound_receive, inbound_ack, inbound_report_fta, inbound_confirm_fta"
              },
              "status": "Not Found",
              "code": 404,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n  \"errorKey\": \"Document not found for entryId: 1042 with fileName: outbound_sent\"\n}"
            }
          ]
        },
        {
          "name": "5.2 Download Raw XML",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "X-API-KEY",
                "value": "{{apiKey}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/external/api/v1/print/orgxml/{{entryId}}?fileName=outbound_sent",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "external",
                "api",
                "v1",
                "print",
                "orgxml",
                "{{entryId}}"
              ],
              "query": [
                {
                  "key": "fileName",
                  "value": "outbound_sent",
                  "description": "Document type: outbound_sent | outbound_ack | outbound_report_fta | outbound_confirm_fta | inbound_receive | inbound_ack | inbound_report_fta | inbound_confirm_fta"
                }
              ]
            },
            "description": "Downloads the raw (pretty-printed) Peppol XML file stored in OCI for the given entry. Save the response body as a .xml file.\n\nSupported fileName values:\n  outbound_sent, outbound_ack, outbound_report_fta, outbound_confirm_fta,\n  inbound_receive, inbound_ack, inbound_report_fta, inbound_confirm_fta"
          },
          "response": [
            {
              "name": "Success (XML)",
              "originalRequest": {
                "method": "GET",
                "header": [
                  {
                    "key": "X-API-KEY",
                    "value": "{{apiKey}}"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/external/api/v1/print/orgxml/{{entryId}}?fileName=outbound_sent",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "external",
                    "api",
                    "v1",
                    "print",
                    "orgxml",
                    "{{entryId}}"
                  ],
                  "query": [
                    {
                      "key": "fileName",
                      "value": "outbound_sent",
                      "description": "Document type: outbound_sent | outbound_ack | outbound_report_fta | outbound_confirm_fta | inbound_receive | inbound_ack | inbound_report_fta | inbound_confirm_fta"
                    }
                  ]
                },
                "description": "Downloads the raw (pretty-printed) Peppol XML file stored in OCI for the given entry. Save the response body as a .xml file.\n\nSupported fileName values:\n  outbound_sent, outbound_ack, outbound_report_fta, outbound_confirm_fta,\n  inbound_receive, inbound_ack, inbound_report_fta, inbound_confirm_fta"
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "xml",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/xml; charset=UTF-8"
                },
                {
                  "key": "Content-Disposition",
                  "value": "attachment; filename=\"outbound_sent_1042.xml\""
                }
              ],
              "cookie": [],
              "body": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Invoice xmlns=\"urn:oasis:names:specification:ubl:schema:xsd:Invoice-2\"\n         xmlns:cac=\"urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2\"\n         xmlns:cbc=\"urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2\">\n  <cbc:UBLVersionID>2.1</cbc:UBLVersionID>\n  <cbc:CustomizationID>urn:cen.eu:en16931:2017#conformant#urn:fdc:peppol.eu:2017:poacc:billing:international:ubl:3.0</cbc:CustomizationID>\n  <cbc:ID>INV-2024-001</cbc:ID>\n  <cbc:IssueDate>2024-01-15</cbc:IssueDate>\n  ...\n</Invoice>"
            },
            {
              "name": "Not Found",
              "originalRequest": {
                "method": "GET",
                "header": [
                  {
                    "key": "X-API-KEY",
                    "value": "{{apiKey}}"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/external/api/v1/print/orgxml/{{entryId}}?fileName=outbound_sent",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "external",
                    "api",
                    "v1",
                    "print",
                    "orgxml",
                    "{{entryId}}"
                  ],
                  "query": [
                    {
                      "key": "fileName",
                      "value": "outbound_sent",
                      "description": "Document type: outbound_sent | outbound_ack | outbound_report_fta | outbound_confirm_fta | inbound_receive | inbound_ack | inbound_report_fta | inbound_confirm_fta"
                    }
                  ]
                },
                "description": "Downloads the raw (pretty-printed) Peppol XML file stored in OCI for the given entry. Save the response body as a .xml file.\n\nSupported fileName values:\n  outbound_sent, outbound_ack, outbound_report_fta, outbound_confirm_fta,\n  inbound_receive, inbound_ack, inbound_report_fta, inbound_confirm_fta"
              },
              "status": "Not Found",
              "code": 404,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n  \"errorKey\": \"Document not found for entryId: 1042 with fileName: outbound_sent\"\n}"
            }
          ]
        }
      ]
    },
    {
      "name": "6. Validate without saving",
      "item": [
        {
          "name": "6.1 Validate Invoices – JSON (no DB write)",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "X-API-KEY",
                "value": "{{apiKey}}"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "[\n  {\n    \"companyId\": {{companyId}},\n    \"invoiceRef\": \"INV-001\",\n\n    \"documentId\":                 \"INV-2024-001\",\n    \"issueDate\":                  \"2024-01-15\",\n    \"invoiceTypeCode\":            \"380\",\n    \"invoiceTransactionType\":     \"B2B\",\n    \"documentCurrencyCode\":       \"AED\",\n    \"noteEN\":                     \"Standard invoice\",\n    \"taxPointDate\":               \"2024-01-15\",\n    \"invoiceSupplyDate\":          \"2024-01-14\",\n    \"paymentDueDate\":             \"2024-02-15\",\n    \"orderReference\":             \"PO-2024-001\",\n    \"contractDocumentReference\":  \"CTR-001\",\n    \"buyerReference\":             \"BR-001\",\n    \"invoicePeriodStartDate\":     \"2024-01-01\",\n    \"invoicePeriodEndDate\":       \"2024-01-31\",\n\n    \"sellerName\":                 \"ABC Trading LLC\",\n    \"sellerVatTrn\":               \"100123456700003\",\n    \"sellerVatScheme\":            \"VAT\",\n    \"sellerRegisteredName\":       \"ABC Trading LLC\",\n    \"sellerAddressLine1\":         \"Office 101, Business Bay\",\n    \"sellerCity\":                 \"Dubai\",\n    \"sellerPostalZone\":           \"00000\",\n    \"sellerCountrySubdivision\":   \"DU\",\n    \"sellerCountryCode\":          \"AE\",\n    \"sellerTelephone\":            \"+971501234567\",\n    \"sellerEmail\":                \"info@abctrading.ae\",\n\n    \"buyerName\":                  \"XYZ Corp\",\n    \"buyerVatTrn\":                \"100987654300003\",\n    \"buyerVatScheme\":             \"VAT\",\n    \"buyerRegisteredName\":        \"XYZ Corporation\",\n    \"buyerAddressLine1\":          \"Floor 5, DIFC Gate Building\",\n    \"buyerCity\":                  \"Dubai\",\n    \"buyerPostalZone\":            \"00000\",\n    \"buyerCountrySubdivision\":    \"DU\",\n    \"buyerCountryCode\":           \"AE\",\n    \"buyerTelephone\":             \"+971507654321\",\n    \"buyerEmail\":                 \"ap@xyzcorp.ae\",\n\n    \"sellerLegalRegistrationId\":         \"714/2015\",\n    \"sellerLegalRegistrationType\":       \"TL\",\n    \"sellerLegalRegistrationAuthority\":  \"Dubai Economic Department\",\n\n    \"lineExtensionTotal\":         1000.00,\n    \"docLevelDiscount\":           50.00,\n    \"docLevelCharges\":            0.00,\n    \"taxAmount\":                  47.50,\n    \"totalIncludingTax\":          997.50,\n    \"payableAmount\":              997.50,\n    \"roundingAmount\":             0.00,\n\n    \"deliveryLocation\":           \"Warehouse A\",\n    \"deliveryAddressLine1\":       \"Jebel Ali Free Zone\",\n    \"deliveryCity\":               \"Dubai\",\n    \"deliveryPostalZone\":         \"15000\",\n    \"deliveryCountrySubdivision\": \"DU\",\n    \"deliveryCountryCode\":        \"AE\",\n    \"deliveryPartyName\":          \"XYZ Corp Warehouse\",\n    \"deliveryIncoterms\":          \"DDP\",\n\n    \"lines\": [\n      {\n        \"lineNumber\":            1,\n        \"itemName\":              \"Consulting Services\",\n        \"itemDescription\":       \"Monthly IT consulting - Jan 2024\",\n        \"sellerItemId\":          \"SVC-001\",\n        \"itemTypeGoodsServices\": \"S\",\n        \"itemCountryOrigin\":     \"AE\",\n        \"quantity\":              10,\n        \"quantityUom\":           \"HUR\",\n        \"unitPrice\":             95.00,\n        \"priceBaseQty\":          1,\n        \"priceBaseQtyUom\":       \"HUR\",\n        \"lineDiscountAmount\":    50.00,\n        \"lineDiscountPercent\":   5.26,\n        \"lineNetAmount\":         900.00,\n        \"taxCategory\":           \"S\",\n        \"taxRatePercent\":        5,\n        \"taxScheme\":             \"VAT\",\n        \"lineTaxAmount\":         45.00,\n        \"inclVatAmount\":         945.00\n      },\n      {\n        \"lineNumber\":            2,\n        \"itemName\":              \"Software License\",\n        \"itemDescription\":       \"Annual software license fee\",\n        \"sellerItemId\":          \"SW-LIC-001\",\n        \"itemTypeGoodsServices\": \"S\",\n        \"itemCountryOrigin\":     \"AE\",\n        \"quantity\":              1,\n        \"quantityUom\":           \"ANN\",\n        \"unitPrice\":             100.00,\n        \"priceBaseQty\":          1,\n        \"priceBaseQtyUom\":       \"ANN\",\n        \"lineDiscountAmount\":    0,\n        \"lineNetAmount\":         100.00,\n        \"taxCategory\":           \"S\",\n        \"taxRatePercent\":        5,\n        \"taxScheme\":             \"VAT\",\n        \"lineTaxAmount\":         5.00,\n        \"inclVatAmount\":         105.00\n      }\n    ],\n\n    \"allowances\": [\n      {\n        \"level\":               \"Header\",\n        \"isCharge\":            false,\n        \"reasonCode\":          \"95\",\n        \"reason\":              \"Promotional discount\",\n        \"amount\":              50.00,\n        \"baseAmount\":          1000.00,\n        \"percent\":             5,\n        \"taxCategory\":         \"S\",\n        \"taxPercent\":          5,\n        \"taxScheme\":           \"VAT\"\n      }\n    ],\n\n    \"payments\": [\n      {\n        \"paymentMeansCode\":    \"30\",\n        \"paymentId\":           \"PAY-001\",\n        \"creditAccountIban\":   \"AE070331234567890123456\",\n        \"creditAccountScheme\": \"IBAN\",\n        \"creditAccountName\":   \"ABC Trading LLC\",\n        \"bankBicSwift\":        \"CBAUAEADXXX\",\n        \"bankAddressLine1\":    \"Commercial Bank of Dubai, Main Branch\",\n        \"bankCity\":            \"Dubai\",\n        \"bankCountry\":         \"AE\"\n      }\n    ],\n\n    \"terms\": [\n      {\n        \"termId\":          \"TERM-001\",\n        \"termNote\":        \"Net 30 days\",\n        \"termAmount\":      997.50,\n        \"termCurrency\":    \"AED\",\n        \"termInstallDate\": \"2024-02-15\"\n      }\n    ]\n  }\n]"
            },
            "url": {
              "raw": "{{baseUrl}}/external/api/v1/eInvoiceEntry/validate",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "external",
                "api",
                "v1",
                "eInvoiceEntry",
                "validate"
              ],
              "query": [
                {
                  "key": "includeXml",
                  "value": "true",
                  "description": "Set to true to receive the generated UBL XML per result",
                  "disabled": true
                }
              ]
            },
            "description": "Validates one or more invoices against Peppol schematron rules WITHOUT creating any database records.\n\nRequest body: JSON array of invoice objects (same shape as /createFull, wrapped in [ ]).\n\nOptional query parameter:\n  includeXml=true — returns the generated UBL XML per result.\n\nResponse:\n{\n  \"validatedAt\":   \"2024-01-15T10:30:00\",\n  \"totalInvoices\": 1,\n  \"passedCount\":   1,\n  \"failedCount\":   0,\n  \"results\":       [...]\n}"
          },
          "response": [
            {
              "name": "All Passed",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "X-API-KEY",
                    "value": "{{apiKey}}"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "[\n  {\n    \"companyId\": {{companyId}},\n    \"invoiceRef\": \"INV-001\",\n\n    \"documentId\":                 \"INV-2024-001\",\n    \"issueDate\":                  \"2024-01-15\",\n    \"invoiceTypeCode\":            \"380\",\n    \"invoiceTransactionType\":     \"B2B\",\n    \"documentCurrencyCode\":       \"AED\",\n    \"noteEN\":                     \"Standard invoice\",\n    \"taxPointDate\":               \"2024-01-15\",\n    \"invoiceSupplyDate\":          \"2024-01-14\",\n    \"paymentDueDate\":             \"2024-02-15\",\n    \"orderReference\":             \"PO-2024-001\",\n    \"contractDocumentReference\":  \"CTR-001\",\n    \"buyerReference\":             \"BR-001\",\n    \"invoicePeriodStartDate\":     \"2024-01-01\",\n    \"invoicePeriodEndDate\":       \"2024-01-31\",\n\n    \"sellerName\":                 \"ABC Trading LLC\",\n    \"sellerVatTrn\":               \"100123456700003\",\n    \"sellerVatScheme\":            \"VAT\",\n    \"sellerRegisteredName\":       \"ABC Trading LLC\",\n    \"sellerAddressLine1\":         \"Office 101, Business Bay\",\n    \"sellerCity\":                 \"Dubai\",\n    \"sellerPostalZone\":           \"00000\",\n    \"sellerCountrySubdivision\":   \"DU\",\n    \"sellerCountryCode\":          \"AE\",\n    \"sellerTelephone\":            \"+971501234567\",\n    \"sellerEmail\":                \"info@abctrading.ae\",\n\n    \"buyerName\":                  \"XYZ Corp\",\n    \"buyerVatTrn\":                \"100987654300003\",\n    \"buyerVatScheme\":             \"VAT\",\n    \"buyerRegisteredName\":        \"XYZ Corporation\",\n    \"buyerAddressLine1\":          \"Floor 5, DIFC Gate Building\",\n    \"buyerCity\":                  \"Dubai\",\n    \"buyerPostalZone\":            \"00000\",\n    \"buyerCountrySubdivision\":    \"DU\",\n    \"buyerCountryCode\":           \"AE\",\n    \"buyerTelephone\":             \"+971507654321\",\n    \"buyerEmail\":                 \"ap@xyzcorp.ae\",\n\n    \"sellerLegalRegistrationId\":         \"714/2015\",\n    \"sellerLegalRegistrationType\":       \"TL\",\n    \"sellerLegalRegistrationAuthority\":  \"Dubai Economic Department\",\n\n    \"lineExtensionTotal\":         1000.00,\n    \"docLevelDiscount\":           50.00,\n    \"docLevelCharges\":            0.00,\n    \"taxAmount\":                  47.50,\n    \"totalIncludingTax\":          997.50,\n    \"payableAmount\":              997.50,\n    \"roundingAmount\":             0.00,\n\n    \"deliveryLocation\":           \"Warehouse A\",\n    \"deliveryAddressLine1\":       \"Jebel Ali Free Zone\",\n    \"deliveryCity\":               \"Dubai\",\n    \"deliveryPostalZone\":         \"15000\",\n    \"deliveryCountrySubdivision\": \"DU\",\n    \"deliveryCountryCode\":        \"AE\",\n    \"deliveryPartyName\":          \"XYZ Corp Warehouse\",\n    \"deliveryIncoterms\":          \"DDP\",\n\n    \"lines\": [\n      {\n        \"lineNumber\":            1,\n        \"itemName\":              \"Consulting Services\",\n        \"itemDescription\":       \"Monthly IT consulting - Jan 2024\",\n        \"sellerItemId\":          \"SVC-001\",\n        \"itemTypeGoodsServices\": \"S\",\n        \"itemCountryOrigin\":     \"AE\",\n        \"quantity\":              10,\n        \"quantityUom\":           \"HUR\",\n        \"unitPrice\":             95.00,\n        \"priceBaseQty\":          1,\n        \"priceBaseQtyUom\":       \"HUR\",\n        \"lineDiscountAmount\":    50.00,\n        \"lineDiscountPercent\":   5.26,\n        \"lineNetAmount\":         900.00,\n        \"taxCategory\":           \"S\",\n        \"taxRatePercent\":        5,\n        \"taxScheme\":             \"VAT\",\n        \"lineTaxAmount\":         45.00,\n        \"inclVatAmount\":         945.00\n      },\n      {\n        \"lineNumber\":            2,\n        \"itemName\":              \"Software License\",\n        \"itemDescription\":       \"Annual software license fee\",\n        \"sellerItemId\":          \"SW-LIC-001\",\n        \"itemTypeGoodsServices\": \"S\",\n        \"itemCountryOrigin\":     \"AE\",\n        \"quantity\":              1,\n        \"quantityUom\":           \"ANN\",\n        \"unitPrice\":             100.00,\n        \"priceBaseQty\":          1,\n        \"priceBaseQtyUom\":       \"ANN\",\n        \"lineDiscountAmount\":    0,\n        \"lineNetAmount\":         100.00,\n        \"taxCategory\":           \"S\",\n        \"taxRatePercent\":        5,\n        \"taxScheme\":             \"VAT\",\n        \"lineTaxAmount\":         5.00,\n        \"inclVatAmount\":         105.00\n      }\n    ],\n\n    \"allowances\": [\n      {\n        \"level\":               \"Header\",\n        \"isCharge\":            false,\n        \"reasonCode\":          \"95\",\n        \"reason\":              \"Promotional discount\",\n        \"amount\":              50.00,\n        \"baseAmount\":          1000.00,\n        \"percent\":             5,\n        \"taxCategory\":         \"S\",\n        \"taxPercent\":          5,\n        \"taxScheme\":           \"VAT\"\n      }\n    ],\n\n    \"payments\": [\n      {\n        \"paymentMeansCode\":    \"30\",\n        \"paymentId\":           \"PAY-001\",\n        \"creditAccountIban\":   \"AE070331234567890123456\",\n        \"creditAccountScheme\": \"IBAN\",\n        \"creditAccountName\":   \"ABC Trading LLC\",\n        \"bankBicSwift\":        \"CBAUAEADXXX\",\n        \"bankAddressLine1\":    \"Commercial Bank of Dubai, Main Branch\",\n        \"bankCity\":            \"Dubai\",\n        \"bankCountry\":         \"AE\"\n      }\n    ],\n\n    \"terms\": [\n      {\n        \"termId\":          \"TERM-001\",\n        \"termNote\":        \"Net 30 days\",\n        \"termAmount\":      997.50,\n        \"termCurrency\":    \"AED\",\n        \"termInstallDate\": \"2024-02-15\"\n      }\n    ]\n  }\n]"
                },
                "url": {
                  "raw": "{{baseUrl}}/external/api/v1/eInvoiceEntry/validate",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "external",
                    "api",
                    "v1",
                    "eInvoiceEntry",
                    "validate"
                  ],
                  "query": [
                    {
                      "key": "includeXml",
                      "value": "true",
                      "description": "Set to true to receive the generated UBL XML per result",
                      "disabled": true
                    }
                  ]
                },
                "description": "Validates one or more invoices against Peppol schematron rules WITHOUT creating any database records.\n\nRequest body: JSON array of invoice objects (same shape as /createFull, wrapped in [ ]).\n\nOptional query parameter:\n  includeXml=true — returns the generated UBL XML per result.\n\nResponse:\n{\n  \"validatedAt\":   \"2024-01-15T10:30:00\",\n  \"totalInvoices\": 1,\n  \"passedCount\":   1,\n  \"failedCount\":   0,\n  \"results\":       [...]\n}"
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n  \"validatedAt\":   \"2024-01-15T10:30:00\",\n  \"totalInvoices\": 1,\n  \"passedCount\":   1,\n  \"failedCount\":   0,\n  \"results\": [\n    {\n      \"invoiceRef\":  \"INV-001\",\n      \"documentId\": \"INV-2024-001\",\n      \"passed\":      true,\n      \"errors\":      [],\n      \"warnings\":    []\n    }\n  ]\n}"
            },
            {
              "name": "Validation Failed",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "X-API-KEY",
                    "value": "{{apiKey}}"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "[\n  {\n    \"companyId\": {{companyId}},\n    \"invoiceRef\": \"INV-001\",\n\n    \"documentId\":                 \"INV-2024-001\",\n    \"issueDate\":                  \"2024-01-15\",\n    \"invoiceTypeCode\":            \"380\",\n    \"invoiceTransactionType\":     \"B2B\",\n    \"documentCurrencyCode\":       \"AED\",\n    \"noteEN\":                     \"Standard invoice\",\n    \"taxPointDate\":               \"2024-01-15\",\n    \"invoiceSupplyDate\":          \"2024-01-14\",\n    \"paymentDueDate\":             \"2024-02-15\",\n    \"orderReference\":             \"PO-2024-001\",\n    \"contractDocumentReference\":  \"CTR-001\",\n    \"buyerReference\":             \"BR-001\",\n    \"invoicePeriodStartDate\":     \"2024-01-01\",\n    \"invoicePeriodEndDate\":       \"2024-01-31\",\n\n    \"sellerName\":                 \"ABC Trading LLC\",\n    \"sellerVatTrn\":               \"100123456700003\",\n    \"sellerVatScheme\":            \"VAT\",\n    \"sellerRegisteredName\":       \"ABC Trading LLC\",\n    \"sellerAddressLine1\":         \"Office 101, Business Bay\",\n    \"sellerCity\":                 \"Dubai\",\n    \"sellerPostalZone\":           \"00000\",\n    \"sellerCountrySubdivision\":   \"DU\",\n    \"sellerCountryCode\":          \"AE\",\n    \"sellerTelephone\":            \"+971501234567\",\n    \"sellerEmail\":                \"info@abctrading.ae\",\n\n    \"buyerName\":                  \"XYZ Corp\",\n    \"buyerVatTrn\":                \"100987654300003\",\n    \"buyerVatScheme\":             \"VAT\",\n    \"buyerRegisteredName\":        \"XYZ Corporation\",\n    \"buyerAddressLine1\":          \"Floor 5, DIFC Gate Building\",\n    \"buyerCity\":                  \"Dubai\",\n    \"buyerPostalZone\":            \"00000\",\n    \"buyerCountrySubdivision\":    \"DU\",\n    \"buyerCountryCode\":           \"AE\",\n    \"buyerTelephone\":             \"+971507654321\",\n    \"buyerEmail\":                 \"ap@xyzcorp.ae\",\n\n    \"sellerLegalRegistrationId\":         \"714/2015\",\n    \"sellerLegalRegistrationType\":       \"TL\",\n    \"sellerLegalRegistrationAuthority\":  \"Dubai Economic Department\",\n\n    \"lineExtensionTotal\":         1000.00,\n    \"docLevelDiscount\":           50.00,\n    \"docLevelCharges\":            0.00,\n    \"taxAmount\":                  47.50,\n    \"totalIncludingTax\":          997.50,\n    \"payableAmount\":              997.50,\n    \"roundingAmount\":             0.00,\n\n    \"deliveryLocation\":           \"Warehouse A\",\n    \"deliveryAddressLine1\":       \"Jebel Ali Free Zone\",\n    \"deliveryCity\":               \"Dubai\",\n    \"deliveryPostalZone\":         \"15000\",\n    \"deliveryCountrySubdivision\": \"DU\",\n    \"deliveryCountryCode\":        \"AE\",\n    \"deliveryPartyName\":          \"XYZ Corp Warehouse\",\n    \"deliveryIncoterms\":          \"DDP\",\n\n    \"lines\": [\n      {\n        \"lineNumber\":            1,\n        \"itemName\":              \"Consulting Services\",\n        \"itemDescription\":       \"Monthly IT consulting - Jan 2024\",\n        \"sellerItemId\":          \"SVC-001\",\n        \"itemTypeGoodsServices\": \"S\",\n        \"itemCountryOrigin\":     \"AE\",\n        \"quantity\":              10,\n        \"quantityUom\":           \"HUR\",\n        \"unitPrice\":             95.00,\n        \"priceBaseQty\":          1,\n        \"priceBaseQtyUom\":       \"HUR\",\n        \"lineDiscountAmount\":    50.00,\n        \"lineDiscountPercent\":   5.26,\n        \"lineNetAmount\":         900.00,\n        \"taxCategory\":           \"S\",\n        \"taxRatePercent\":        5,\n        \"taxScheme\":             \"VAT\",\n        \"lineTaxAmount\":         45.00,\n        \"inclVatAmount\":         945.00\n      },\n      {\n        \"lineNumber\":            2,\n        \"itemName\":              \"Software License\",\n        \"itemDescription\":       \"Annual software license fee\",\n        \"sellerItemId\":          \"SW-LIC-001\",\n        \"itemTypeGoodsServices\": \"S\",\n        \"itemCountryOrigin\":     \"AE\",\n        \"quantity\":              1,\n        \"quantityUom\":           \"ANN\",\n        \"unitPrice\":             100.00,\n        \"priceBaseQty\":          1,\n        \"priceBaseQtyUom\":       \"ANN\",\n        \"lineDiscountAmount\":    0,\n        \"lineNetAmount\":         100.00,\n        \"taxCategory\":           \"S\",\n        \"taxRatePercent\":        5,\n        \"taxScheme\":             \"VAT\",\n        \"lineTaxAmount\":         5.00,\n        \"inclVatAmount\":         105.00\n      }\n    ],\n\n    \"allowances\": [\n      {\n        \"level\":               \"Header\",\n        \"isCharge\":            false,\n        \"reasonCode\":          \"95\",\n        \"reason\":              \"Promotional discount\",\n        \"amount\":              50.00,\n        \"baseAmount\":          1000.00,\n        \"percent\":             5,\n        \"taxCategory\":         \"S\",\n        \"taxPercent\":          5,\n        \"taxScheme\":           \"VAT\"\n      }\n    ],\n\n    \"payments\": [\n      {\n        \"paymentMeansCode\":    \"30\",\n        \"paymentId\":           \"PAY-001\",\n        \"creditAccountIban\":   \"AE070331234567890123456\",\n        \"creditAccountScheme\": \"IBAN\",\n        \"creditAccountName\":   \"ABC Trading LLC\",\n        \"bankBicSwift\":        \"CBAUAEADXXX\",\n        \"bankAddressLine1\":    \"Commercial Bank of Dubai, Main Branch\",\n        \"bankCity\":            \"Dubai\",\n        \"bankCountry\":         \"AE\"\n      }\n    ],\n\n    \"terms\": [\n      {\n        \"termId\":          \"TERM-001\",\n        \"termNote\":        \"Net 30 days\",\n        \"termAmount\":      997.50,\n        \"termCurrency\":    \"AED\",\n        \"termInstallDate\": \"2024-02-15\"\n      }\n    ]\n  }\n]"
                },
                "url": {
                  "raw": "{{baseUrl}}/external/api/v1/eInvoiceEntry/validate",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "external",
                    "api",
                    "v1",
                    "eInvoiceEntry",
                    "validate"
                  ],
                  "query": [
                    {
                      "key": "includeXml",
                      "value": "true",
                      "description": "Set to true to receive the generated UBL XML per result",
                      "disabled": true
                    }
                  ]
                },
                "description": "Validates one or more invoices against Peppol schematron rules WITHOUT creating any database records.\n\nRequest body: JSON array of invoice objects (same shape as /createFull, wrapped in [ ]).\n\nOptional query parameter:\n  includeXml=true — returns the generated UBL XML per result.\n\nResponse:\n{\n  \"validatedAt\":   \"2024-01-15T10:30:00\",\n  \"totalInvoices\": 1,\n  \"passedCount\":   1,\n  \"failedCount\":   0,\n  \"results\":       [...]\n}"
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n  \"validatedAt\":   \"2024-01-15T10:30:00\",\n  \"totalInvoices\": 1,\n  \"passedCount\":   0,\n  \"failedCount\":   1,\n  \"results\": [\n    {\n      \"invoiceRef\":  \"INV-001\",\n      \"documentId\": \"INV-2024-001\",\n      \"passed\":      false,\n      \"errors\": [\n        \"[ibr-167-ae] Line 1: vatExemptReasonCode is mandatory when taxCategory is 'E'.\"\n      ],\n      \"warnings\": []\n    }\n  ]\n}"
            },
            {
              "name": "Unauthorized",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "X-API-KEY",
                    "value": "{{apiKey}}"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "[\n  {\n    \"companyId\": {{companyId}},\n    \"invoiceRef\": \"INV-001\",\n\n    \"documentId\":                 \"INV-2024-001\",\n    \"issueDate\":                  \"2024-01-15\",\n    \"invoiceTypeCode\":            \"380\",\n    \"invoiceTransactionType\":     \"B2B\",\n    \"documentCurrencyCode\":       \"AED\",\n    \"noteEN\":                     \"Standard invoice\",\n    \"taxPointDate\":               \"2024-01-15\",\n    \"invoiceSupplyDate\":          \"2024-01-14\",\n    \"paymentDueDate\":             \"2024-02-15\",\n    \"orderReference\":             \"PO-2024-001\",\n    \"contractDocumentReference\":  \"CTR-001\",\n    \"buyerReference\":             \"BR-001\",\n    \"invoicePeriodStartDate\":     \"2024-01-01\",\n    \"invoicePeriodEndDate\":       \"2024-01-31\",\n\n    \"sellerName\":                 \"ABC Trading LLC\",\n    \"sellerVatTrn\":               \"100123456700003\",\n    \"sellerVatScheme\":            \"VAT\",\n    \"sellerRegisteredName\":       \"ABC Trading LLC\",\n    \"sellerAddressLine1\":         \"Office 101, Business Bay\",\n    \"sellerCity\":                 \"Dubai\",\n    \"sellerPostalZone\":           \"00000\",\n    \"sellerCountrySubdivision\":   \"DU\",\n    \"sellerCountryCode\":          \"AE\",\n    \"sellerTelephone\":            \"+971501234567\",\n    \"sellerEmail\":                \"info@abctrading.ae\",\n\n    \"buyerName\":                  \"XYZ Corp\",\n    \"buyerVatTrn\":                \"100987654300003\",\n    \"buyerVatScheme\":             \"VAT\",\n    \"buyerRegisteredName\":        \"XYZ Corporation\",\n    \"buyerAddressLine1\":          \"Floor 5, DIFC Gate Building\",\n    \"buyerCity\":                  \"Dubai\",\n    \"buyerPostalZone\":            \"00000\",\n    \"buyerCountrySubdivision\":    \"DU\",\n    \"buyerCountryCode\":           \"AE\",\n    \"buyerTelephone\":             \"+971507654321\",\n    \"buyerEmail\":                 \"ap@xyzcorp.ae\",\n\n    \"sellerLegalRegistrationId\":         \"714/2015\",\n    \"sellerLegalRegistrationType\":       \"TL\",\n    \"sellerLegalRegistrationAuthority\":  \"Dubai Economic Department\",\n\n    \"lineExtensionTotal\":         1000.00,\n    \"docLevelDiscount\":           50.00,\n    \"docLevelCharges\":            0.00,\n    \"taxAmount\":                  47.50,\n    \"totalIncludingTax\":          997.50,\n    \"payableAmount\":              997.50,\n    \"roundingAmount\":             0.00,\n\n    \"deliveryLocation\":           \"Warehouse A\",\n    \"deliveryAddressLine1\":       \"Jebel Ali Free Zone\",\n    \"deliveryCity\":               \"Dubai\",\n    \"deliveryPostalZone\":         \"15000\",\n    \"deliveryCountrySubdivision\": \"DU\",\n    \"deliveryCountryCode\":        \"AE\",\n    \"deliveryPartyName\":          \"XYZ Corp Warehouse\",\n    \"deliveryIncoterms\":          \"DDP\",\n\n    \"lines\": [\n      {\n        \"lineNumber\":            1,\n        \"itemName\":              \"Consulting Services\",\n        \"itemDescription\":       \"Monthly IT consulting - Jan 2024\",\n        \"sellerItemId\":          \"SVC-001\",\n        \"itemTypeGoodsServices\": \"S\",\n        \"itemCountryOrigin\":     \"AE\",\n        \"quantity\":              10,\n        \"quantityUom\":           \"HUR\",\n        \"unitPrice\":             95.00,\n        \"priceBaseQty\":          1,\n        \"priceBaseQtyUom\":       \"HUR\",\n        \"lineDiscountAmount\":    50.00,\n        \"lineDiscountPercent\":   5.26,\n        \"lineNetAmount\":         900.00,\n        \"taxCategory\":           \"S\",\n        \"taxRatePercent\":        5,\n        \"taxScheme\":             \"VAT\",\n        \"lineTaxAmount\":         45.00,\n        \"inclVatAmount\":         945.00\n      },\n      {\n        \"lineNumber\":            2,\n        \"itemName\":              \"Software License\",\n        \"itemDescription\":       \"Annual software license fee\",\n        \"sellerItemId\":          \"SW-LIC-001\",\n        \"itemTypeGoodsServices\": \"S\",\n        \"itemCountryOrigin\":     \"AE\",\n        \"quantity\":              1,\n        \"quantityUom\":           \"ANN\",\n        \"unitPrice\":             100.00,\n        \"priceBaseQty\":          1,\n        \"priceBaseQtyUom\":       \"ANN\",\n        \"lineDiscountAmount\":    0,\n        \"lineNetAmount\":         100.00,\n        \"taxCategory\":           \"S\",\n        \"taxRatePercent\":        5,\n        \"taxScheme\":             \"VAT\",\n        \"lineTaxAmount\":         5.00,\n        \"inclVatAmount\":         105.00\n      }\n    ],\n\n    \"allowances\": [\n      {\n        \"level\":               \"Header\",\n        \"isCharge\":            false,\n        \"reasonCode\":          \"95\",\n        \"reason\":              \"Promotional discount\",\n        \"amount\":              50.00,\n        \"baseAmount\":          1000.00,\n        \"percent\":             5,\n        \"taxCategory\":         \"S\",\n        \"taxPercent\":          5,\n        \"taxScheme\":           \"VAT\"\n      }\n    ],\n\n    \"payments\": [\n      {\n        \"paymentMeansCode\":    \"30\",\n        \"paymentId\":           \"PAY-001\",\n        \"creditAccountIban\":   \"AE070331234567890123456\",\n        \"creditAccountScheme\": \"IBAN\",\n        \"creditAccountName\":   \"ABC Trading LLC\",\n        \"bankBicSwift\":        \"CBAUAEADXXX\",\n        \"bankAddressLine1\":    \"Commercial Bank of Dubai, Main Branch\",\n        \"bankCity\":            \"Dubai\",\n        \"bankCountry\":         \"AE\"\n      }\n    ],\n\n    \"terms\": [\n      {\n        \"termId\":          \"TERM-001\",\n        \"termNote\":        \"Net 30 days\",\n        \"termAmount\":      997.50,\n        \"termCurrency\":    \"AED\",\n        \"termInstallDate\": \"2024-02-15\"\n      }\n    ]\n  }\n]"
                },
                "url": {
                  "raw": "{{baseUrl}}/external/api/v1/eInvoiceEntry/validate",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "external",
                    "api",
                    "v1",
                    "eInvoiceEntry",
                    "validate"
                  ],
                  "query": [
                    {
                      "key": "includeXml",
                      "value": "true",
                      "description": "Set to true to receive the generated UBL XML per result",
                      "disabled": true
                    }
                  ]
                },
                "description": "Validates one or more invoices against Peppol schematron rules WITHOUT creating any database records.\n\nRequest body: JSON array of invoice objects (same shape as /createFull, wrapped in [ ]).\n\nOptional query parameter:\n  includeXml=true — returns the generated UBL XML per result.\n\nResponse:\n{\n  \"validatedAt\":   \"2024-01-15T10:30:00\",\n  \"totalInvoices\": 1,\n  \"passedCount\":   1,\n  \"failedCount\":   0,\n  \"results\":       [...]\n}"
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n  \"errorKey\": \"API key missing\"\n}"
            }
          ]
        },
        {
          "name": "6.2 Validate Upload – Excel 4-sheet (no DB write)",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "X-API-KEY",
                "value": "{{apiKey}}"
              }
            ],
            "body": {
              "mode": "formdata",
              "formdata": [
                {
                  "key": "file",
                  "type": "file",
                  "description": "Select sample_einvoice_entry.xlsx (4-sheet bulk upload template)",
                  "value": ""
                }
              ]
            },
            "url": {
              "raw": "{{baseUrl}}/external/api/v1/eInvoiceEntry/upload/validate",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "external",
                "api",
                "v1",
                "eInvoiceEntry",
                "upload",
                "validate"
              ],
              "query": [
                {
                  "key": "includeXml",
                  "value": "true",
                  "description": "Set to true to receive the generated UBL XML per result",
                  "disabled": true
                }
              ]
            },
            "description": "Parses a 4-sheet bulk-upload Excel workbook and validates all invoices against Peppol schematron rules WITHOUT saving anything to the database.\n\nUse the same Excel template as item 9 (Bulk Upload). Only the 'file' form field is required — no companyId needed.\n\nOptional query parameter: includeXml=true\n\nResponse: AP validation response."
          },
          "response": [
            {
              "name": "All Passed",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "X-API-KEY",
                    "value": "{{apiKey}}"
                  }
                ],
                "body": {
                  "mode": "formdata",
                  "formdata": [
                    {
                      "key": "file",
                      "type": "file",
                      "description": "Select sample_einvoice_entry.xlsx (4-sheet bulk upload template)",
                      "value": ""
                    }
                  ]
                },
                "url": {
                  "raw": "{{baseUrl}}/external/api/v1/eInvoiceEntry/upload/validate",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "external",
                    "api",
                    "v1",
                    "eInvoiceEntry",
                    "upload",
                    "validate"
                  ],
                  "query": [
                    {
                      "key": "includeXml",
                      "value": "true",
                      "description": "Set to true to receive the generated UBL XML per result",
                      "disabled": true
                    }
                  ]
                },
                "description": "Parses a 4-sheet bulk-upload Excel workbook and validates all invoices against Peppol schematron rules WITHOUT saving anything to the database.\n\nUse the same Excel template as item 9 (Bulk Upload). Only the 'file' form field is required — no companyId needed.\n\nOptional query parameter: includeXml=true\n\nResponse: AP validation response."
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n  \"validatedAt\":   \"2024-01-15T10:30:00\",\n  \"totalInvoices\": 2,\n  \"passedCount\":   2,\n  \"failedCount\":   0,\n  \"results\": [\n    { \"invoiceRef\": \"INV-001\", \"documentId\": \"INV-2024-001\", \"passed\": true, \"errors\": [], \"warnings\": [] },\n    { \"invoiceRef\": \"INV-002\", \"documentId\": \"INV-2024-002\", \"passed\": true, \"errors\": [], \"warnings\": [] }\n  ]\n}"
            },
            {
              "name": "Partial Failure",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "X-API-KEY",
                    "value": "{{apiKey}}"
                  }
                ],
                "body": {
                  "mode": "formdata",
                  "formdata": [
                    {
                      "key": "file",
                      "type": "file",
                      "description": "Select sample_einvoice_entry.xlsx (4-sheet bulk upload template)",
                      "value": ""
                    }
                  ]
                },
                "url": {
                  "raw": "{{baseUrl}}/external/api/v1/eInvoiceEntry/upload/validate",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "external",
                    "api",
                    "v1",
                    "eInvoiceEntry",
                    "upload",
                    "validate"
                  ],
                  "query": [
                    {
                      "key": "includeXml",
                      "value": "true",
                      "description": "Set to true to receive the generated UBL XML per result",
                      "disabled": true
                    }
                  ]
                },
                "description": "Parses a 4-sheet bulk-upload Excel workbook and validates all invoices against Peppol schematron rules WITHOUT saving anything to the database.\n\nUse the same Excel template as item 9 (Bulk Upload). Only the 'file' form field is required — no companyId needed.\n\nOptional query parameter: includeXml=true\n\nResponse: AP validation response."
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n  \"validatedAt\":   \"2024-01-15T10:30:00\",\n  \"totalInvoices\": 2,\n  \"passedCount\":   1,\n  \"failedCount\":   1,\n  \"results\": [\n    { \"invoiceRef\": \"INV-001\", \"documentId\": \"INV-2024-001\", \"passed\": true,  \"errors\": [], \"warnings\": [] },\n    { \"invoiceRef\": \"INV-002\", \"documentId\": \"INV-2024-002\", \"passed\": false, \"errors\": [\"[ibr-167-ae] Line 1: vatExemptReasonCode is mandatory when taxCategory is 'E'.\"], \"warnings\": [] }\n  ]\n}"
            }
          ]
        },
        {
          "name": "6.3 Validate Simple Upload – Excel 1-sheet (no DB write)",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "X-API-KEY",
                "value": "{{apiKey}}"
              }
            ],
            "body": {
              "mode": "formdata",
              "formdata": [
                {
                  "key": "file",
                  "type": "file",
                  "description": "Select sample_einvoice_simple.xlsx (single-sheet simplified template)",
                  "value": ""
                }
              ]
            },
            "url": {
              "raw": "{{baseUrl}}/external/api/v1/eInvoiceEntry/upload/simple/validate",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "external",
                "api",
                "v1",
                "eInvoiceEntry",
                "upload",
                "simple",
                "validate"
              ],
              "query": [
                {
                  "key": "includeXml",
                  "value": "true",
                  "description": "Set to true to receive the generated UBL XML per result",
                  "disabled": true
                }
              ]
            },
            "description": "Parses a simplified single-sheet Excel workbook and validates all invoices against Peppol schematron rules WITHOUT saving anything to the database.\n\nUse the same Excel template as the Simple Upload (Download via item 10 with template=simple). Only the 'file' form field is required.\n\nOptional query parameter: includeXml=true\n\nResponse: AP validation response."
          },
          "response": [
            {
              "name": "All Passed",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "X-API-KEY",
                    "value": "{{apiKey}}"
                  }
                ],
                "body": {
                  "mode": "formdata",
                  "formdata": [
                    {
                      "key": "file",
                      "type": "file",
                      "description": "Select sample_einvoice_simple.xlsx (single-sheet simplified template)",
                      "value": ""
                    }
                  ]
                },
                "url": {
                  "raw": "{{baseUrl}}/external/api/v1/eInvoiceEntry/upload/simple/validate",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "external",
                    "api",
                    "v1",
                    "eInvoiceEntry",
                    "upload",
                    "simple",
                    "validate"
                  ],
                  "query": [
                    {
                      "key": "includeXml",
                      "value": "true",
                      "description": "Set to true to receive the generated UBL XML per result",
                      "disabled": true
                    }
                  ]
                },
                "description": "Parses a simplified single-sheet Excel workbook and validates all invoices against Peppol schematron rules WITHOUT saving anything to the database.\n\nUse the same Excel template as the Simple Upload (Download via item 10 with template=simple). Only the 'file' form field is required.\n\nOptional query parameter: includeXml=true\n\nResponse: AP validation response."
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n  \"validatedAt\":   \"2024-01-15T10:30:00\",\n  \"totalInvoices\": 1,\n  \"passedCount\":   1,\n  \"failedCount\":   0,\n  \"results\": [\n    { \"invoiceRef\": \"INV-001\", \"documentId\": \"INV-2024-001\", \"passed\": true, \"errors\": [], \"warnings\": [] }\n  ]\n}"
            }
          ]
        }
      ]
    },
    {
      "name": "7. Excel upload",
      "item": [
        {
          "name": "7.1 Bulk Upload (Excel)",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "X-API-KEY",
                "value": "{{apiKey}}"
              }
            ],
            "body": {
              "mode": "formdata",
              "formdata": [
                {
                  "key": "companyId",
                  "value": "{{companyId}}",
                  "type": "text"
                },
                {
                  "key": "file",
                  "type": "file",
                  "description": "Select sample_einvoice_entry.xlsx",
                  "value": ""
                }
              ]
            },
            "url": {
              "raw": "{{baseUrl}}/external/api/v1/eInvoiceEntry/upload",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "external",
                "api",
                "v1",
                "eInvoiceEntry",
                "upload"
              ]
            },
            "description": "Bulk-creates invoices from the Excel template. Existing DRAFT/VALIDATION_FAILED/REJECTED entries with matching companyId+documentId are overwritten."
          },
          "response": [
            {
              "name": "Success",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "X-API-KEY",
                    "value": "{{apiKey}}"
                  }
                ],
                "body": {
                  "mode": "formdata",
                  "formdata": [
                    {
                      "key": "companyId",
                      "value": "{{companyId}}",
                      "type": "text"
                    },
                    {
                      "key": "file",
                      "type": "file",
                      "description": "Select sample_einvoice_entry.xlsx",
                      "value": ""
                    }
                  ]
                },
                "url": {
                  "raw": "{{baseUrl}}/external/api/v1/eInvoiceEntry/upload",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "external",
                    "api",
                    "v1",
                    "eInvoiceEntry",
                    "upload"
                  ]
                },
                "description": "Bulk-creates invoices from the Excel template. Existing DRAFT/VALIDATION_FAILED/REJECTED entries with matching companyId+documentId are overwritten."
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n  \"success\":        true,\n  \"totalProcessed\": 3,\n  \"totalSuccess\":   2,\n  \"totalFailed\":    1,\n  \"results\": [\n    { \"invoiceRef\": \"INV-001\", \"status\": \"SUCCESS\",     \"entryId\": 1042, \"linesCreated\": 2, \"allowancesCreated\": 1, \"paymentsCreated\": 1 },\n    { \"invoiceRef\": \"INV-002\", \"status\": \"OVERWRITTEN\", \"entryId\": 1001, \"linesCreated\": 3, \"allowancesCreated\": 0, \"paymentsCreated\": 1 },\n    { \"invoiceRef\": \"INV-003\", \"status\": \"SKIPPED\",     \"error\": \"Entry already exists with status SUBMITTED\" }\n  ]\n}"
            }
          ]
        },
        {
          "name": "7.2 Download Upload Template",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "X-API-KEY",
                "value": "{{apiKey}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/external/api/v1/eInvoiceEntry/upload/template",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "external",
                "api",
                "v1",
                "eInvoiceEntry",
                "upload",
                "template"
              ]
            },
            "description": "Downloads sample_einvoice_entry.xlsx. Save the response body as a .xlsx file."
          },
          "response": []
        },
        {
          "name": "7.3 Download Error Log (CSV)",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "X-API-KEY",
                "value": "{{apiKey}}"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "[\n  { \"invoiceRef\": \"INV-001\", \"status\": \"SUCCESS\",  \"entryId\": 1042, \"linesCreated\": 2, \"allowancesCreated\": 1, \"paymentsCreated\": 1 },\n  { \"invoiceRef\": \"INV-003\", \"status\": \"SKIPPED\",  \"error\": \"Entry already exists with status SUBMITTED\" },\n  { \"invoiceRef\": \"INV-004\", \"status\": \"FAILED\",   \"error\": \"[ibr-167-ae] Line 1: vatExemptReasonCode is mandatory when taxCategory is 'E'.\" }\n]"
            },
            "url": {
              "raw": "{{baseUrl}}/external/api/v1/eInvoiceEntry/upload/errorLog",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "external",
                "api",
                "v1",
                "eInvoiceEntry",
                "upload",
                "errorLog"
              ]
            },
            "description": "Pass the results array from a /upload response to receive a CSV error log download."
          },
          "response": [
            {
              "name": "CSV Download",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "X-API-KEY",
                    "value": "{{apiKey}}"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "[\n  { \"invoiceRef\": \"INV-001\", \"status\": \"SUCCESS\",  \"entryId\": 1042, \"linesCreated\": 2, \"allowancesCreated\": 1, \"paymentsCreated\": 1 },\n  { \"invoiceRef\": \"INV-003\", \"status\": \"SKIPPED\",  \"error\": \"Entry already exists with status SUBMITTED\" },\n  { \"invoiceRef\": \"INV-004\", \"status\": \"FAILED\",   \"error\": \"[ibr-167-ae] Line 1: vatExemptReasonCode is mandatory when taxCategory is 'E'.\" }\n]"
                },
                "url": {
                  "raw": "{{baseUrl}}/external/api/v1/eInvoiceEntry/upload/errorLog",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "external",
                    "api",
                    "v1",
                    "eInvoiceEntry",
                    "upload",
                    "errorLog"
                  ]
                },
                "description": "Pass the results array from a /upload response to receive a CSV error log download."
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "text",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "text/csv"
                },
                {
                  "key": "Content-Disposition",
                  "value": "attachment; filename=\"einvoice_upload_errors.csv\""
                }
              ],
              "cookie": [],
              "body": "invoiceRef,status,entryId,linesCreated,allowancesCreated,paymentsCreated,error\nINV-001,SUCCESS,1042,2,1,1,\nINV-003,SKIPPED,,,,,Entry already exists with status SUBMITTED\nINV-004,FAILED,,,,,\"[ibr-167-ae] Line 1: vatExemptReasonCode is mandatory when taxCategory is 'E'.\""
            }
          ]
        }
      ]
    },
    {
      "name": "8. Peppol: own XML and participant lookup",
      "item": [
        {
          "name": "8.1 Peppol – Create from Raw XML",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/xml"
              },
              {
                "key": "X-API-KEY",
                "value": "{{apiKey}}"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "<?xml version=\"1.0\" encoding=\"UTF-8\"?><sh:StandardBusinessDocument xmlns:sh=\"http://www.unece.org/cefact/namespaces/StandardBusinessDocumentHeader\">\n  <sh:StandardBusinessDocumentHeader>\n    <sh:HeaderVersion>1.0</sh:HeaderVersion>\n    <sh:Sender>\n      <sh:Identifier Authority=\"iso6523-actorid-upis\">0235:1041968874</sh:Identifier>\n    </sh:Sender>\n    <sh:Receiver>\n      <sh:Identifier Authority=\"iso6523-actorid-upis\">0235:1007116698</sh:Identifier>\n    </sh:Receiver>\n    <sh:DocumentIdentification>\n      <sh:Standard>urn:oasis:names:specification:ubl:schema:xsd:Invoice-2</sh:Standard>\n      <sh:TypeVersion>2.1</sh:TypeVersion>\n      <sh:InstanceIdentifier>edea9a79-f045-471a-82a7-751336f1025a</sh:InstanceIdentifier>\n      <sh:Type>Invoice</sh:Type>\n      <sh:CreationDateAndTime>2026-07-14T15:32:59.886Z</sh:CreationDateAndTime>\n    </sh:DocumentIdentification>\n    <sh:BusinessScope>\n      <sh:Scope>\n        <sh:Type>DOCUMENTID</sh:Type>\n        <sh:InstanceIdentifier>urn:oasis:names:specification:ubl:schema:xsd:Invoice-2::Invoice##urn:peppol:pint:billing-1@ae-1::2.1</sh:InstanceIdentifier>\n        <sh:Identifier>peppol-doctype-wildcard</sh:Identifier>\n      </sh:Scope>\n      <sh:Scope>\n        <sh:Type>PROCESSID</sh:Type>\n        <sh:InstanceIdentifier>urn:peppol:bis:billing</sh:InstanceIdentifier>\n        <sh:Identifier>cenbii-procid-ubl</sh:Identifier>\n      </sh:Scope>\n      <sh:Scope>\n        <sh:Type>COUNTRY_C1</sh:Type>\n        <sh:InstanceIdentifier>AE</sh:InstanceIdentifier>\n      </sh:Scope>\n      <sh:Scope>\n        <sh:Type>MLS_TO</sh:Type>\n        <sh:InstanceIdentifier>0242:000821</sh:InstanceIdentifier>\n        <sh:Identifier>iso6523-actorid-upis</sh:Identifier>\n      </sh:Scope>\n      <sh:Scope>\n        <sh:Type>MLS_TYPE</sh:Type>\n        <sh:InstanceIdentifier>ALWAYS_SEND</sh:InstanceIdentifier>\n      </sh:Scope>\n    </sh:BusinessScope>\n  </sh:StandardBusinessDocumentHeader>\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:peppol:pint:billing-1@ae-1</cbc:CustomizationID>\n      <cbc:ProfileID>urn:peppol:bis:billing</cbc:ProfileID>\n      <cbc:ProfileExecutionID>00000000</cbc:ProfileExecutionID>\n      <cbc:ID>IIL-1001308</cbc:ID>\n      <cbc:UUID>a3170979-d192-44ba-be3a-ac60b78b1b0e</cbc:UUID>\n      <cbc:IssueDate>2026-07-14</cbc:IssueDate>\n      <cbc:IssueTime>00:00:00</cbc:IssueTime>\n      <cbc:DueDate>2026-09-12</cbc:DueDate>\n      <cbc:InvoiceTypeCode>380</cbc:InvoiceTypeCode>\n      <cbc:Note>INV</cbc:Note>\n      <cbc:DocumentCurrencyCode>AED</cbc:DocumentCurrencyCode>\n      <cac:OrderReference>\n         <cbc:ID>NA</cbc:ID>\n         <cbc:SalesOrderID>NA</cbc:SalesOrderID>\n      </cac:OrderReference>\n      <cac:BillingReference>\n         <cac:InvoiceDocumentReference>\n            <cbc:ID>SIL-301358</cbc:ID>\n            <cbc:IssueDate>2026-07-09</cbc:IssueDate>\n         </cac:InvoiceDocumentReference>\n      </cac:BillingReference>\n      <cac:ContractDocumentReference>\n         <cbc:ID>SIL-301358</cbc:ID>\n      </cac:ContractDocumentReference>\n      <cac:AccountingSupplierParty>\n         <cac:Party>\n            <cbc:EndpointID schemeID=\"0235\">104196887400003</cbc:EndpointID>\n            <cac:PartyName>\n               <cbc:Name>TRONSTRIDE FZC</cbc:Name>\n            </cac:PartyName>\n            <cac:PostalAddress>\n               <cbc:StreetName>BUSINESS CENTRE SHARJAH PUBLISHING CITY FREEZONE</cbc:StreetName>\n               <cbc:AdditionalStreetName>NA</cbc:AdditionalStreetName>\n               <cbc:CityName>Sharjah</cbc:CityName>\n               <cbc:CountrySubentity>SHJ</cbc:CountrySubentity>\n               <cac:Country>\n                  <cbc:IdentificationCode>AE</cbc:IdentificationCode>\n               </cac:Country>\n            </cac:PostalAddress>\n            <cac:PartyTaxScheme>\n               <cbc:CompanyID>104196887400003</cbc:CompanyID>\n               <cac:TaxScheme>\n                  <cbc:ID>VAT</cbc:ID>\n               </cac:TaxScheme>\n            </cac:PartyTaxScheme>\n            <cac:PartyLegalEntity>\n               <cbc:RegistrationName>TRONSTRIDE FZC</cbc:RegistrationName>\n            </cac:PartyLegalEntity>\n            <cac:Contact>\n               <cbc:Telephone>971529031765</cbc:Telephone>\n               <cbc:ElectronicMail>mohamed@tronstride.com</cbc:ElectronicMail>\n            </cac:Contact>\n         </cac:Party>\n      </cac:AccountingSupplierParty>\n      <cac:AccountingCustomerParty>\n      <cac:Party>\n        <cbc:EndpointID schemeID=\"0235\">100711669800003</cbc:EndpointID>\n        <cac:PartyName>\n          <cbc:Name>HABIB MOHAMMAD SHARIF ABDULLA ALMULLA</cbc:Name>\n            </cac:PartyName>\n        <cac:PostalAddress>\n          <cbc:StreetName>Dubai, UAE</cbc:StreetName>\n          <cbc:CityName>Dubai</cbc:CityName>\n          <cbc:CountrySubentity>DXB</cbc:CountrySubentity>\n          <cac:Country>\n            <cbc:IdentificationCode>AE</cbc:IdentificationCode>\n               </cac:Country>\n            </cac:PostalAddress>\n        <cac:PartyTaxScheme>\n          <cbc:CompanyID>100711669800003</cbc:CompanyID>\n          <cac:TaxScheme>\n            <cbc:ID>VAT</cbc:ID>\n               </cac:TaxScheme>\n            </cac:PartyTaxScheme>\n        <cac:PartyLegalEntity>\n          <cbc:RegistrationName>HABIB MOHAMMAD SHARIF ABDULLA ALMULLA</cbc:RegistrationName>\n            </cac:PartyLegalEntity>\n         </cac:Party>\n      </cac:AccountingCustomerParty>\n      <cac:Delivery>\n         <cac:DeliveryLocation>\n            <cbc:ID>I &amp; L</cbc:ID>\n            <cac:Address>\n               <cbc:StreetName>P.O. BOX 3222</cbc:StreetName>\n               <cbc:AdditionalStreetName>SHARJAH, U.A.E.</cbc:AdditionalStreetName>\n               <cbc:CityName>Sharjah</cbc:CityName>\n               <cbc:PostalZone>NA</cbc:PostalZone>\n               <cbc:CountrySubentity>NA</cbc:CountrySubentity>\n               <cac:AddressLine>\n                  <cbc:Line>NA</cbc:Line>\n               </cac:AddressLine>\n               <cac:Country>\n                  <cbc:IdentificationCode>AE</cbc:IdentificationCode>\n               </cac:Country>\n            </cac:Address>\n         </cac:DeliveryLocation>\n      </cac:Delivery>\n      <cac:PaymentMeans>\n      <cbc:PaymentMeansCode>30</cbc:PaymentMeansCode>\n      <cac:PayeeFinancialAccount>\n        <cbc:ID>AE070260001012029678901</cbc:ID>\n         </cac:PayeeFinancialAccount>\n      </cac:PaymentMeans>\n      <cac:PaymentTerms>\n         <cbc:Note>60 Days from Inv. Dt.</cbc:Note>\n         <cbc:Amount currencyID=\"AED\">39375</cbc:Amount>\n         <cbc:InstallmentDueDate>2026-09-12</cbc:InstallmentDueDate>\n      </cac:PaymentTerms>\n      <cac:TaxTotal>\n         <cbc:TaxAmount currencyID=\"AED\">1875.00</cbc:TaxAmount>\n         <cac:TaxSubtotal>\n            <cbc:TaxableAmount currencyID=\"AED\">37500</cbc:TaxableAmount>\n            <cbc:TaxAmount currencyID=\"AED\">1875.00</cbc:TaxAmount>\n            <cac:TaxCategory>\n               <cbc:ID>S</cbc:ID>\n               <cbc:Percent>5</cbc:Percent>\n               <cac:TaxScheme>\n                  <cbc:ID>VAT</cbc:ID>\n               </cac:TaxScheme>\n            </cac:TaxCategory>\n         </cac:TaxSubtotal>\n      </cac:TaxTotal>\n      <cac:LegalMonetaryTotal>\n         <cbc:LineExtensionAmount currencyID=\"AED\">37500</cbc:LineExtensionAmount>\n         <cbc:TaxExclusiveAmount currencyID=\"AED\">37500</cbc:TaxExclusiveAmount>\n         <cbc:TaxInclusiveAmount currencyID=\"AED\">39375</cbc:TaxInclusiveAmount>\n         <cbc:PayableAmount currencyID=\"AED\">39375</cbc:PayableAmount>\n      </cac:LegalMonetaryTotal>\n      <cac:InvoiceLine>\n         <cbc:ID>1</cbc:ID>\n         <cbc:InvoicedQuantity unitCode=\"H87\">15</cbc:InvoicedQuantity>\n         <cbc:LineExtensionAmount currencyID=\"AED\">37500</cbc:LineExtensionAmount>\n         <cac:Item>\n            <cbc:Description>Safe Oilgo</cbc:Description>\n            <cbc:Name>Safe Oilgo</cbc:Name>\n            <cac:SellersItemIdentification>\n               <cbc:ID>ILFGICS003</cbc:ID>\n            </cac:SellersItemIdentification>\n            <cac:OriginCountry>\n               <cbc:IdentificationCode>AE</cbc:IdentificationCode>\n            </cac:OriginCountry>\n            <cac:ClassifiedTaxCategory>\n               <cbc:ID>S</cbc:ID>\n               <cbc:Percent>5</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=\"AED\">2500</cbc:PriceAmount>\n            <cbc:BaseQuantity unitCode=\"H87\">1</cbc:BaseQuantity>\n            <cac:AllowanceCharge>\n               <cbc:ChargeIndicator>false</cbc:ChargeIndicator>\n               <cbc:Amount currencyID=\"AED\">0</cbc:Amount>\n               <cbc:BaseAmount currencyID=\"AED\">2500</cbc:BaseAmount>\n            </cac:AllowanceCharge>\n         </cac:Price>\n         <cac:ItemPriceExtension>\n            <cbc:Amount currencyID=\"AED\">37500</cbc:Amount>\n            <cac:TaxTotal>\n               <cbc:TaxAmount currencyID=\"AED\">1875</cbc:TaxAmount>\n            </cac:TaxTotal>\n         </cac:ItemPriceExtension>\n      </cac:InvoiceLine>\n   </Invoice>\n</sh:StandardBusinessDocument>",
              "options": {
                "raw": {
                  "language": "xml"
                }
              }
            },
            "url": {
              "raw": "{{baseUrl}}/external/api/v1/eInvoiceEntry/peppol/create-from-xml?saveOnValidationFailure=false&environment=SANDBOX&companyId={{companyId}}",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "external",
                "api",
                "v1",
                "eInvoiceEntry",
                "peppol",
                "create-from-xml"
              ],
              "query": [
                {
                  "key": "saveOnValidationFailure",
                  "value": "false",
                  "description": "Set to true to save the invoice even if schematron validation fails"
                },
                {
                  "key": "environment",
                  "value": "SANDBOX",
                  "description": "SANDBOX or LIVE"
                },
                {
                  "key": "companyId",
                  "value": "{{companyId}}",
                  "description": "(Optional) Your company ID. userId is derived automatically from the X-API-KEY; organisationId is derived automatically from the company."
                }
              ]
            },
            "description": "Forwards a raw UBL XML Invoice (or CreditNote with SBDH) directly to the Peppol AP\nPOST /api/peppol/outbound/create-from-xml endpoint.\n\nQuery params (caller-supplied):\n  saveOnValidationFailure — if true the AP persists the document even when schematron validation reports errors. Defaults to false.\n  environment             — SANDBOX (default) or LIVE.\n  companyId               — (Optional) Your company ID.\n\nAuto-injected by the gateway (no action required from caller):\n  userId         — resolved from the X-API-KEY bearer.\n  organisationId — resolved from the company record linked to companyId.\n\nThe request body is forwarded as-is with Content-Type: application/xml and the configured X-AP-Token header added server-side.\n\nSince 2026-09-04 the submitted XML is stored VERBATIM as a file attachment (type E_INVOICE_SOURCE_XML) and sent exactly as received; GET 2 then returns originalXml + submittedAsXml. saveOnValidationFailure=false means a rejected document is not saved at all."
          },
          "response": [
            {
              "name": "Success",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/xml"
                  },
                  {
                    "key": "X-API-KEY",
                    "value": "{{apiKey}}"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "<?xml version=\"1.0\" encoding=\"UTF-8\"?><sh:StandardBusinessDocument xmlns:sh=\"http://www.unece.org/cefact/namespaces/StandardBusinessDocumentHeader\">\n  <sh:StandardBusinessDocumentHeader>\n    <sh:HeaderVersion>1.0</sh:HeaderVersion>\n    <sh:Sender>\n      <sh:Identifier Authority=\"iso6523-actorid-upis\">0235:1041968874</sh:Identifier>\n    </sh:Sender>\n    <sh:Receiver>\n      <sh:Identifier Authority=\"iso6523-actorid-upis\">0235:1007116698</sh:Identifier>\n    </sh:Receiver>\n    <sh:DocumentIdentification>\n      <sh:Standard>urn:oasis:names:specification:ubl:schema:xsd:Invoice-2</sh:Standard>\n      <sh:TypeVersion>2.1</sh:TypeVersion>\n      <sh:InstanceIdentifier>edea9a79-f045-471a-82a7-751336f1025a</sh:InstanceIdentifier>\n      <sh:Type>Invoice</sh:Type>\n      <sh:CreationDateAndTime>2026-07-14T15:32:59.886Z</sh:CreationDateAndTime>\n    </sh:DocumentIdentification>\n    <sh:BusinessScope>\n      <sh:Scope>\n        <sh:Type>DOCUMENTID</sh:Type>\n        <sh:InstanceIdentifier>urn:oasis:names:specification:ubl:schema:xsd:Invoice-2::Invoice##urn:peppol:pint:billing-1@ae-1::2.1</sh:InstanceIdentifier>\n        <sh:Identifier>peppol-doctype-wildcard</sh:Identifier>\n      </sh:Scope>\n      <sh:Scope>\n        <sh:Type>PROCESSID</sh:Type>\n        <sh:InstanceIdentifier>urn:peppol:bis:billing</sh:InstanceIdentifier>\n        <sh:Identifier>cenbii-procid-ubl</sh:Identifier>\n      </sh:Scope>\n      <sh:Scope>\n        <sh:Type>COUNTRY_C1</sh:Type>\n        <sh:InstanceIdentifier>AE</sh:InstanceIdentifier>\n      </sh:Scope>\n      <sh:Scope>\n        <sh:Type>MLS_TO</sh:Type>\n        <sh:InstanceIdentifier>0242:000821</sh:InstanceIdentifier>\n        <sh:Identifier>iso6523-actorid-upis</sh:Identifier>\n      </sh:Scope>\n      <sh:Scope>\n        <sh:Type>MLS_TYPE</sh:Type>\n        <sh:InstanceIdentifier>ALWAYS_SEND</sh:InstanceIdentifier>\n      </sh:Scope>\n    </sh:BusinessScope>\n  </sh:StandardBusinessDocumentHeader>\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:peppol:pint:billing-1@ae-1</cbc:CustomizationID>\n      <cbc:ProfileID>urn:peppol:bis:billing</cbc:ProfileID>\n      <cbc:ProfileExecutionID>00000000</cbc:ProfileExecutionID>\n      <cbc:ID>IIL-1001308</cbc:ID>\n      <cbc:UUID>a3170979-d192-44ba-be3a-ac60b78b1b0e</cbc:UUID>\n      <cbc:IssueDate>2026-07-14</cbc:IssueDate>\n      <cbc:IssueTime>00:00:00</cbc:IssueTime>\n      <cbc:DueDate>2026-09-12</cbc:DueDate>\n      <cbc:InvoiceTypeCode>380</cbc:InvoiceTypeCode>\n      <cbc:Note>INV</cbc:Note>\n      <cbc:DocumentCurrencyCode>AED</cbc:DocumentCurrencyCode>\n      <cac:OrderReference>\n         <cbc:ID>NA</cbc:ID>\n         <cbc:SalesOrderID>NA</cbc:SalesOrderID>\n      </cac:OrderReference>\n      <cac:BillingReference>\n         <cac:InvoiceDocumentReference>\n            <cbc:ID>SIL-301358</cbc:ID>\n            <cbc:IssueDate>2026-07-09</cbc:IssueDate>\n         </cac:InvoiceDocumentReference>\n      </cac:BillingReference>\n      <cac:ContractDocumentReference>\n         <cbc:ID>SIL-301358</cbc:ID>\n      </cac:ContractDocumentReference>\n      <cac:AccountingSupplierParty>\n         <cac:Party>\n            <cbc:EndpointID schemeID=\"0235\">104196887400003</cbc:EndpointID>\n            <cac:PartyName>\n               <cbc:Name>TRONSTRIDE FZC</cbc:Name>\n            </cac:PartyName>\n            <cac:PostalAddress>\n               <cbc:StreetName>BUSINESS CENTRE SHARJAH PUBLISHING CITY FREEZONE</cbc:StreetName>\n               <cbc:AdditionalStreetName>NA</cbc:AdditionalStreetName>\n               <cbc:CityName>Sharjah</cbc:CityName>\n               <cbc:CountrySubentity>SHJ</cbc:CountrySubentity>\n               <cac:Country>\n                  <cbc:IdentificationCode>AE</cbc:IdentificationCode>\n               </cac:Country>\n            </cac:PostalAddress>\n            <cac:PartyTaxScheme>\n               <cbc:CompanyID>104196887400003</cbc:CompanyID>\n               <cac:TaxScheme>\n                  <cbc:ID>VAT</cbc:ID>\n               </cac:TaxScheme>\n            </cac:PartyTaxScheme>\n            <cac:PartyLegalEntity>\n               <cbc:RegistrationName>TRONSTRIDE FZC</cbc:RegistrationName>\n            </cac:PartyLegalEntity>\n            <cac:Contact>\n               <cbc:Telephone>971529031765</cbc:Telephone>\n               <cbc:ElectronicMail>mohamed@tronstride.com</cbc:ElectronicMail>\n            </cac:Contact>\n         </cac:Party>\n      </cac:AccountingSupplierParty>\n      <cac:AccountingCustomerParty>\n      <cac:Party>\n        <cbc:EndpointID schemeID=\"0235\">100711669800003</cbc:EndpointID>\n        <cac:PartyName>\n          <cbc:Name>HABIB MOHAMMAD SHARIF ABDULLA ALMULLA</cbc:Name>\n            </cac:PartyName>\n        <cac:PostalAddress>\n          <cbc:StreetName>Dubai, UAE</cbc:StreetName>\n          <cbc:CityName>Dubai</cbc:CityName>\n          <cbc:CountrySubentity>DXB</cbc:CountrySubentity>\n          <cac:Country>\n            <cbc:IdentificationCode>AE</cbc:IdentificationCode>\n               </cac:Country>\n            </cac:PostalAddress>\n        <cac:PartyTaxScheme>\n          <cbc:CompanyID>100711669800003</cbc:CompanyID>\n          <cac:TaxScheme>\n            <cbc:ID>VAT</cbc:ID>\n               </cac:TaxScheme>\n            </cac:PartyTaxScheme>\n        <cac:PartyLegalEntity>\n          <cbc:RegistrationName>HABIB MOHAMMAD SHARIF ABDULLA ALMULLA</cbc:RegistrationName>\n            </cac:PartyLegalEntity>\n         </cac:Party>\n      </cac:AccountingCustomerParty>\n      <cac:Delivery>\n         <cac:DeliveryLocation>\n            <cbc:ID>I &amp; L</cbc:ID>\n            <cac:Address>\n               <cbc:StreetName>P.O. BOX 3222</cbc:StreetName>\n               <cbc:AdditionalStreetName>SHARJAH, U.A.E.</cbc:AdditionalStreetName>\n               <cbc:CityName>Sharjah</cbc:CityName>\n               <cbc:PostalZone>NA</cbc:PostalZone>\n               <cbc:CountrySubentity>NA</cbc:CountrySubentity>\n               <cac:AddressLine>\n                  <cbc:Line>NA</cbc:Line>\n               </cac:AddressLine>\n               <cac:Country>\n                  <cbc:IdentificationCode>AE</cbc:IdentificationCode>\n               </cac:Country>\n            </cac:Address>\n         </cac:DeliveryLocation>\n      </cac:Delivery>\n      <cac:PaymentMeans>\n      <cbc:PaymentMeansCode>30</cbc:PaymentMeansCode>\n      <cac:PayeeFinancialAccount>\n        <cbc:ID>AE070260001012029678901</cbc:ID>\n         </cac:PayeeFinancialAccount>\n      </cac:PaymentMeans>\n      <cac:PaymentTerms>\n         <cbc:Note>60 Days from Inv. Dt.</cbc:Note>\n         <cbc:Amount currencyID=\"AED\">39375</cbc:Amount>\n         <cbc:InstallmentDueDate>2026-09-12</cbc:InstallmentDueDate>\n      </cac:PaymentTerms>\n      <cac:TaxTotal>\n         <cbc:TaxAmount currencyID=\"AED\">1875.00</cbc:TaxAmount>\n         <cac:TaxSubtotal>\n            <cbc:TaxableAmount currencyID=\"AED\">37500</cbc:TaxableAmount>\n            <cbc:TaxAmount currencyID=\"AED\">1875.00</cbc:TaxAmount>\n            <cac:TaxCategory>\n               <cbc:ID>S</cbc:ID>\n               <cbc:Percent>5</cbc:Percent>\n               <cac:TaxScheme>\n                  <cbc:ID>VAT</cbc:ID>\n               </cac:TaxScheme>\n            </cac:TaxCategory>\n         </cac:TaxSubtotal>\n      </cac:TaxTotal>\n      <cac:LegalMonetaryTotal>\n         <cbc:LineExtensionAmount currencyID=\"AED\">37500</cbc:LineExtensionAmount>\n         <cbc:TaxExclusiveAmount currencyID=\"AED\">37500</cbc:TaxExclusiveAmount>\n         <cbc:TaxInclusiveAmount currencyID=\"AED\">39375</cbc:TaxInclusiveAmount>\n         <cbc:PayableAmount currencyID=\"AED\">39375</cbc:PayableAmount>\n      </cac:LegalMonetaryTotal>\n      <cac:InvoiceLine>\n         <cbc:ID>1</cbc:ID>\n         <cbc:InvoicedQuantity unitCode=\"H87\">15</cbc:InvoicedQuantity>\n         <cbc:LineExtensionAmount currencyID=\"AED\">37500</cbc:LineExtensionAmount>\n         <cac:Item>\n            <cbc:Description>Safe Oilgo</cbc:Description>\n            <cbc:Name>Safe Oilgo</cbc:Name>\n            <cac:SellersItemIdentification>\n               <cbc:ID>ILFGICS003</cbc:ID>\n            </cac:SellersItemIdentification>\n            <cac:OriginCountry>\n               <cbc:IdentificationCode>AE</cbc:IdentificationCode>\n            </cac:OriginCountry>\n            <cac:ClassifiedTaxCategory>\n               <cbc:ID>S</cbc:ID>\n               <cbc:Percent>5</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=\"AED\">2500</cbc:PriceAmount>\n            <cbc:BaseQuantity unitCode=\"H87\">1</cbc:BaseQuantity>\n            <cac:AllowanceCharge>\n               <cbc:ChargeIndicator>false</cbc:ChargeIndicator>\n               <cbc:Amount currencyID=\"AED\">0</cbc:Amount>\n               <cbc:BaseAmount currencyID=\"AED\">2500</cbc:BaseAmount>\n            </cac:AllowanceCharge>\n         </cac:Price>\n         <cac:ItemPriceExtension>\n            <cbc:Amount currencyID=\"AED\">37500</cbc:Amount>\n            <cac:TaxTotal>\n               <cbc:TaxAmount currencyID=\"AED\">1875</cbc:TaxAmount>\n            </cac:TaxTotal>\n         </cac:ItemPriceExtension>\n      </cac:InvoiceLine>\n   </Invoice>\n</sh:StandardBusinessDocument>",
                  "options": {
                    "raw": {
                      "language": "xml"
                    }
                  }
                },
                "url": {
                  "raw": "{{baseUrl}}/external/api/v1/eInvoiceEntry/peppol/create-from-xml?saveOnValidationFailure=false&environment=SANDBOX&companyId={{companyId}}",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "external",
                    "api",
                    "v1",
                    "eInvoiceEntry",
                    "peppol",
                    "create-from-xml"
                  ],
                  "query": [
                    {
                      "key": "saveOnValidationFailure",
                      "value": "false",
                      "description": "Set to true to save the invoice even if schematron validation fails"
                    },
                    {
                      "key": "environment",
                      "value": "SANDBOX",
                      "description": "SANDBOX or LIVE"
                    },
                    {
                      "key": "companyId",
                      "value": "{{companyId}}",
                      "description": "(Optional) Your company ID. userId is derived automatically from the X-API-KEY; organisationId is derived automatically from the company."
                    }
                  ]
                },
                "description": "Forwards a raw UBL XML Invoice (or CreditNote with SBDH) directly to the Peppol AP\nPOST /api/peppol/outbound/create-from-xml endpoint.\n\nQuery params (caller-supplied):\n  saveOnValidationFailure — if true the AP persists the document even when schematron validation reports errors. Defaults to false.\n  environment             — SANDBOX (default) or LIVE.\n  companyId               — (Optional) Your company ID.\n\nAuto-injected by the gateway (no action required from caller):\n  userId         — resolved from the X-API-KEY bearer.\n  organisationId — resolved from the company record linked to companyId.\n\nThe request body is forwarded as-is with Content-Type: application/xml and the configured X-AP-Token header added server-side."
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n  \"success\": true,\n  \"documentId\": \"INV-2024-001\",\n  \"transmissionId\": \"tx-abc123\",\n  \"userId\": 5,\n  \"companyId\": 12,\n  \"organisationId\": 3\n}"
            },
            {
              "name": "Validation Failure",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/xml"
                  },
                  {
                    "key": "X-API-KEY",
                    "value": "{{apiKey}}"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "<?xml version=\"1.0\" encoding=\"UTF-8\"?><sh:StandardBusinessDocument xmlns:sh=\"http://www.unece.org/cefact/namespaces/StandardBusinessDocumentHeader\">\n  <sh:StandardBusinessDocumentHeader>\n    <sh:HeaderVersion>1.0</sh:HeaderVersion>\n    <sh:Sender>\n      <sh:Identifier Authority=\"iso6523-actorid-upis\">0235:1041968874</sh:Identifier>\n    </sh:Sender>\n    <sh:Receiver>\n      <sh:Identifier Authority=\"iso6523-actorid-upis\">0235:1007116698</sh:Identifier>\n    </sh:Receiver>\n    <sh:DocumentIdentification>\n      <sh:Standard>urn:oasis:names:specification:ubl:schema:xsd:Invoice-2</sh:Standard>\n      <sh:TypeVersion>2.1</sh:TypeVersion>\n      <sh:InstanceIdentifier>edea9a79-f045-471a-82a7-751336f1025a</sh:InstanceIdentifier>\n      <sh:Type>Invoice</sh:Type>\n      <sh:CreationDateAndTime>2026-07-14T15:32:59.886Z</sh:CreationDateAndTime>\n    </sh:DocumentIdentification>\n    <sh:BusinessScope>\n      <sh:Scope>\n        <sh:Type>DOCUMENTID</sh:Type>\n        <sh:InstanceIdentifier>urn:oasis:names:specification:ubl:schema:xsd:Invoice-2::Invoice##urn:peppol:pint:billing-1@ae-1::2.1</sh:InstanceIdentifier>\n        <sh:Identifier>peppol-doctype-wildcard</sh:Identifier>\n      </sh:Scope>\n      <sh:Scope>\n        <sh:Type>PROCESSID</sh:Type>\n        <sh:InstanceIdentifier>urn:peppol:bis:billing</sh:InstanceIdentifier>\n        <sh:Identifier>cenbii-procid-ubl</sh:Identifier>\n      </sh:Scope>\n      <sh:Scope>\n        <sh:Type>COUNTRY_C1</sh:Type>\n        <sh:InstanceIdentifier>AE</sh:InstanceIdentifier>\n      </sh:Scope>\n      <sh:Scope>\n        <sh:Type>MLS_TO</sh:Type>\n        <sh:InstanceIdentifier>0242:000821</sh:InstanceIdentifier>\n        <sh:Identifier>iso6523-actorid-upis</sh:Identifier>\n      </sh:Scope>\n      <sh:Scope>\n        <sh:Type>MLS_TYPE</sh:Type>\n        <sh:InstanceIdentifier>ALWAYS_SEND</sh:InstanceIdentifier>\n      </sh:Scope>\n    </sh:BusinessScope>\n  </sh:StandardBusinessDocumentHeader>\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:peppol:pint:billing-1@ae-1</cbc:CustomizationID>\n      <cbc:ProfileID>urn:peppol:bis:billing</cbc:ProfileID>\n      <cbc:ProfileExecutionID>00000000</cbc:ProfileExecutionID>\n      <cbc:ID>IIL-1001308</cbc:ID>\n      <cbc:UUID>a3170979-d192-44ba-be3a-ac60b78b1b0e</cbc:UUID>\n      <cbc:IssueDate>2026-07-14</cbc:IssueDate>\n      <cbc:IssueTime>00:00:00</cbc:IssueTime>\n      <cbc:DueDate>2026-09-12</cbc:DueDate>\n      <cbc:InvoiceTypeCode>380</cbc:InvoiceTypeCode>\n      <cbc:Note>INV</cbc:Note>\n      <cbc:DocumentCurrencyCode>AED</cbc:DocumentCurrencyCode>\n      <cac:OrderReference>\n         <cbc:ID>NA</cbc:ID>\n         <cbc:SalesOrderID>NA</cbc:SalesOrderID>\n      </cac:OrderReference>\n      <cac:BillingReference>\n         <cac:InvoiceDocumentReference>\n            <cbc:ID>SIL-301358</cbc:ID>\n            <cbc:IssueDate>2026-07-09</cbc:IssueDate>\n         </cac:InvoiceDocumentReference>\n      </cac:BillingReference>\n      <cac:ContractDocumentReference>\n         <cbc:ID>SIL-301358</cbc:ID>\n      </cac:ContractDocumentReference>\n      <cac:AccountingSupplierParty>\n         <cac:Party>\n            <cbc:EndpointID schemeID=\"0235\">104196887400003</cbc:EndpointID>\n            <cac:PartyName>\n               <cbc:Name>TRONSTRIDE FZC</cbc:Name>\n            </cac:PartyName>\n            <cac:PostalAddress>\n               <cbc:StreetName>BUSINESS CENTRE SHARJAH PUBLISHING CITY FREEZONE</cbc:StreetName>\n               <cbc:AdditionalStreetName>NA</cbc:AdditionalStreetName>\n               <cbc:CityName>Sharjah</cbc:CityName>\n               <cbc:CountrySubentity>SHJ</cbc:CountrySubentity>\n               <cac:Country>\n                  <cbc:IdentificationCode>AE</cbc:IdentificationCode>\n               </cac:Country>\n            </cac:PostalAddress>\n            <cac:PartyTaxScheme>\n               <cbc:CompanyID>104196887400003</cbc:CompanyID>\n               <cac:TaxScheme>\n                  <cbc:ID>VAT</cbc:ID>\n               </cac:TaxScheme>\n            </cac:PartyTaxScheme>\n            <cac:PartyLegalEntity>\n               <cbc:RegistrationName>TRONSTRIDE FZC</cbc:RegistrationName>\n            </cac:PartyLegalEntity>\n            <cac:Contact>\n               <cbc:Telephone>971529031765</cbc:Telephone>\n               <cbc:ElectronicMail>mohamed@tronstride.com</cbc:ElectronicMail>\n            </cac:Contact>\n         </cac:Party>\n      </cac:AccountingSupplierParty>\n      <cac:AccountingCustomerParty>\n      <cac:Party>\n        <cbc:EndpointID schemeID=\"0235\">100711669800003</cbc:EndpointID>\n        <cac:PartyName>\n          <cbc:Name>HABIB MOHAMMAD SHARIF ABDULLA ALMULLA</cbc:Name>\n            </cac:PartyName>\n        <cac:PostalAddress>\n          <cbc:StreetName>Dubai, UAE</cbc:StreetName>\n          <cbc:CityName>Dubai</cbc:CityName>\n          <cbc:CountrySubentity>DXB</cbc:CountrySubentity>\n          <cac:Country>\n            <cbc:IdentificationCode>AE</cbc:IdentificationCode>\n               </cac:Country>\n            </cac:PostalAddress>\n        <cac:PartyTaxScheme>\n          <cbc:CompanyID>100711669800003</cbc:CompanyID>\n          <cac:TaxScheme>\n            <cbc:ID>VAT</cbc:ID>\n               </cac:TaxScheme>\n            </cac:PartyTaxScheme>\n        <cac:PartyLegalEntity>\n          <cbc:RegistrationName>HABIB MOHAMMAD SHARIF ABDULLA ALMULLA</cbc:RegistrationName>\n            </cac:PartyLegalEntity>\n         </cac:Party>\n      </cac:AccountingCustomerParty>\n      <cac:Delivery>\n         <cac:DeliveryLocation>\n            <cbc:ID>I &amp; L</cbc:ID>\n            <cac:Address>\n               <cbc:StreetName>P.O. BOX 3222</cbc:StreetName>\n               <cbc:AdditionalStreetName>SHARJAH, U.A.E.</cbc:AdditionalStreetName>\n               <cbc:CityName>Sharjah</cbc:CityName>\n               <cbc:PostalZone>NA</cbc:PostalZone>\n               <cbc:CountrySubentity>NA</cbc:CountrySubentity>\n               <cac:AddressLine>\n                  <cbc:Line>NA</cbc:Line>\n               </cac:AddressLine>\n               <cac:Country>\n                  <cbc:IdentificationCode>AE</cbc:IdentificationCode>\n               </cac:Country>\n            </cac:Address>\n         </cac:DeliveryLocation>\n      </cac:Delivery>\n      <cac:PaymentMeans>\n      <cbc:PaymentMeansCode>30</cbc:PaymentMeansCode>\n      <cac:PayeeFinancialAccount>\n        <cbc:ID>AE070260001012029678901</cbc:ID>\n         </cac:PayeeFinancialAccount>\n      </cac:PaymentMeans>\n      <cac:PaymentTerms>\n         <cbc:Note>60 Days from Inv. Dt.</cbc:Note>\n         <cbc:Amount currencyID=\"AED\">39375</cbc:Amount>\n         <cbc:InstallmentDueDate>2026-09-12</cbc:InstallmentDueDate>\n      </cac:PaymentTerms>\n      <cac:TaxTotal>\n         <cbc:TaxAmount currencyID=\"AED\">1875.00</cbc:TaxAmount>\n         <cac:TaxSubtotal>\n            <cbc:TaxableAmount currencyID=\"AED\">37500</cbc:TaxableAmount>\n            <cbc:TaxAmount currencyID=\"AED\">1875.00</cbc:TaxAmount>\n            <cac:TaxCategory>\n               <cbc:ID>S</cbc:ID>\n               <cbc:Percent>5</cbc:Percent>\n               <cac:TaxScheme>\n                  <cbc:ID>VAT</cbc:ID>\n               </cac:TaxScheme>\n            </cac:TaxCategory>\n         </cac:TaxSubtotal>\n      </cac:TaxTotal>\n      <cac:LegalMonetaryTotal>\n         <cbc:LineExtensionAmount currencyID=\"AED\">37500</cbc:LineExtensionAmount>\n         <cbc:TaxExclusiveAmount currencyID=\"AED\">37500</cbc:TaxExclusiveAmount>\n         <cbc:TaxInclusiveAmount currencyID=\"AED\">39375</cbc:TaxInclusiveAmount>\n         <cbc:PayableAmount currencyID=\"AED\">39375</cbc:PayableAmount>\n      </cac:LegalMonetaryTotal>\n      <cac:InvoiceLine>\n         <cbc:ID>1</cbc:ID>\n         <cbc:InvoicedQuantity unitCode=\"H87\">15</cbc:InvoicedQuantity>\n         <cbc:LineExtensionAmount currencyID=\"AED\">37500</cbc:LineExtensionAmount>\n         <cac:Item>\n            <cbc:Description>Safe Oilgo</cbc:Description>\n            <cbc:Name>Safe Oilgo</cbc:Name>\n            <cac:SellersItemIdentification>\n               <cbc:ID>ILFGICS003</cbc:ID>\n            </cac:SellersItemIdentification>\n            <cac:OriginCountry>\n               <cbc:IdentificationCode>AE</cbc:IdentificationCode>\n            </cac:OriginCountry>\n            <cac:ClassifiedTaxCategory>\n               <cbc:ID>S</cbc:ID>\n               <cbc:Percent>5</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=\"AED\">2500</cbc:PriceAmount>\n            <cbc:BaseQuantity unitCode=\"H87\">1</cbc:BaseQuantity>\n            <cac:AllowanceCharge>\n               <cbc:ChargeIndicator>false</cbc:ChargeIndicator>\n               <cbc:Amount currencyID=\"AED\">0</cbc:Amount>\n               <cbc:BaseAmount currencyID=\"AED\">2500</cbc:BaseAmount>\n            </cac:AllowanceCharge>\n         </cac:Price>\n         <cac:ItemPriceExtension>\n            <cbc:Amount currencyID=\"AED\">37500</cbc:Amount>\n            <cac:TaxTotal>\n               <cbc:TaxAmount currencyID=\"AED\">1875</cbc:TaxAmount>\n            </cac:TaxTotal>\n         </cac:ItemPriceExtension>\n      </cac:InvoiceLine>\n   </Invoice>\n</sh:StandardBusinessDocument>",
                  "options": {
                    "raw": {
                      "language": "xml"
                    }
                  }
                },
                "url": {
                  "raw": "{{baseUrl}}/external/api/v1/eInvoiceEntry/peppol/create-from-xml?saveOnValidationFailure=false&environment=SANDBOX&companyId={{companyId}}",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "external",
                    "api",
                    "v1",
                    "eInvoiceEntry",
                    "peppol",
                    "create-from-xml"
                  ],
                  "query": [
                    {
                      "key": "saveOnValidationFailure",
                      "value": "false",
                      "description": "Set to true to save the invoice even if schematron validation fails"
                    },
                    {
                      "key": "environment",
                      "value": "SANDBOX",
                      "description": "SANDBOX or LIVE"
                    },
                    {
                      "key": "companyId",
                      "value": "{{companyId}}",
                      "description": "(Optional) Your company ID. userId is derived automatically from the X-API-KEY; organisationId is derived automatically from the company."
                    }
                  ]
                },
                "description": "Forwards a raw UBL XML Invoice (or CreditNote with SBDH) directly to the Peppol AP\nPOST /api/peppol/outbound/create-from-xml endpoint.\n\nQuery params (caller-supplied):\n  saveOnValidationFailure — if true the AP persists the document even when schematron validation reports errors. Defaults to false.\n  environment             — SANDBOX (default) or LIVE.\n  companyId               — (Optional) Your company ID.\n\nAuto-injected by the gateway (no action required from caller):\n  userId         — resolved from the X-API-KEY bearer.\n  organisationId — resolved from the company record linked to companyId.\n\nThe request body is forwarded as-is with Content-Type: application/xml and the configured X-AP-Token header added server-side."
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n  \"success\": false,\n  \"errors\": [\n    { \"rule\": \"ibr-167-ae\", \"message\": \"vatExemptReasonCode is mandatory when taxCategory is E\" }\n  ]\n}"
            },
            {
              "name": "AP Unreachable",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/xml"
                  },
                  {
                    "key": "X-API-KEY",
                    "value": "{{apiKey}}"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "<?xml version=\"1.0\" encoding=\"UTF-8\"?><sh:StandardBusinessDocument xmlns:sh=\"http://www.unece.org/cefact/namespaces/StandardBusinessDocumentHeader\">\n  <sh:StandardBusinessDocumentHeader>\n    <sh:HeaderVersion>1.0</sh:HeaderVersion>\n    <sh:Sender>\n      <sh:Identifier Authority=\"iso6523-actorid-upis\">0235:1041968874</sh:Identifier>\n    </sh:Sender>\n    <sh:Receiver>\n      <sh:Identifier Authority=\"iso6523-actorid-upis\">0235:1007116698</sh:Identifier>\n    </sh:Receiver>\n    <sh:DocumentIdentification>\n      <sh:Standard>urn:oasis:names:specification:ubl:schema:xsd:Invoice-2</sh:Standard>\n      <sh:TypeVersion>2.1</sh:TypeVersion>\n      <sh:InstanceIdentifier>edea9a79-f045-471a-82a7-751336f1025a</sh:InstanceIdentifier>\n      <sh:Type>Invoice</sh:Type>\n      <sh:CreationDateAndTime>2026-07-14T15:32:59.886Z</sh:CreationDateAndTime>\n    </sh:DocumentIdentification>\n    <sh:BusinessScope>\n      <sh:Scope>\n        <sh:Type>DOCUMENTID</sh:Type>\n        <sh:InstanceIdentifier>urn:oasis:names:specification:ubl:schema:xsd:Invoice-2::Invoice##urn:peppol:pint:billing-1@ae-1::2.1</sh:InstanceIdentifier>\n        <sh:Identifier>peppol-doctype-wildcard</sh:Identifier>\n      </sh:Scope>\n      <sh:Scope>\n        <sh:Type>PROCESSID</sh:Type>\n        <sh:InstanceIdentifier>urn:peppol:bis:billing</sh:InstanceIdentifier>\n        <sh:Identifier>cenbii-procid-ubl</sh:Identifier>\n      </sh:Scope>\n      <sh:Scope>\n        <sh:Type>COUNTRY_C1</sh:Type>\n        <sh:InstanceIdentifier>AE</sh:InstanceIdentifier>\n      </sh:Scope>\n      <sh:Scope>\n        <sh:Type>MLS_TO</sh:Type>\n        <sh:InstanceIdentifier>0242:000821</sh:InstanceIdentifier>\n        <sh:Identifier>iso6523-actorid-upis</sh:Identifier>\n      </sh:Scope>\n      <sh:Scope>\n        <sh:Type>MLS_TYPE</sh:Type>\n        <sh:InstanceIdentifier>ALWAYS_SEND</sh:InstanceIdentifier>\n      </sh:Scope>\n    </sh:BusinessScope>\n  </sh:StandardBusinessDocumentHeader>\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:peppol:pint:billing-1@ae-1</cbc:CustomizationID>\n      <cbc:ProfileID>urn:peppol:bis:billing</cbc:ProfileID>\n      <cbc:ProfileExecutionID>00000000</cbc:ProfileExecutionID>\n      <cbc:ID>IIL-1001308</cbc:ID>\n      <cbc:UUID>a3170979-d192-44ba-be3a-ac60b78b1b0e</cbc:UUID>\n      <cbc:IssueDate>2026-07-14</cbc:IssueDate>\n      <cbc:IssueTime>00:00:00</cbc:IssueTime>\n      <cbc:DueDate>2026-09-12</cbc:DueDate>\n      <cbc:InvoiceTypeCode>380</cbc:InvoiceTypeCode>\n      <cbc:Note>INV</cbc:Note>\n      <cbc:DocumentCurrencyCode>AED</cbc:DocumentCurrencyCode>\n      <cac:OrderReference>\n         <cbc:ID>NA</cbc:ID>\n         <cbc:SalesOrderID>NA</cbc:SalesOrderID>\n      </cac:OrderReference>\n      <cac:BillingReference>\n         <cac:InvoiceDocumentReference>\n            <cbc:ID>SIL-301358</cbc:ID>\n            <cbc:IssueDate>2026-07-09</cbc:IssueDate>\n         </cac:InvoiceDocumentReference>\n      </cac:BillingReference>\n      <cac:ContractDocumentReference>\n         <cbc:ID>SIL-301358</cbc:ID>\n      </cac:ContractDocumentReference>\n      <cac:AccountingSupplierParty>\n         <cac:Party>\n            <cbc:EndpointID schemeID=\"0235\">104196887400003</cbc:EndpointID>\n            <cac:PartyName>\n               <cbc:Name>TRONSTRIDE FZC</cbc:Name>\n            </cac:PartyName>\n            <cac:PostalAddress>\n               <cbc:StreetName>BUSINESS CENTRE SHARJAH PUBLISHING CITY FREEZONE</cbc:StreetName>\n               <cbc:AdditionalStreetName>NA</cbc:AdditionalStreetName>\n               <cbc:CityName>Sharjah</cbc:CityName>\n               <cbc:CountrySubentity>SHJ</cbc:CountrySubentity>\n               <cac:Country>\n                  <cbc:IdentificationCode>AE</cbc:IdentificationCode>\n               </cac:Country>\n            </cac:PostalAddress>\n            <cac:PartyTaxScheme>\n               <cbc:CompanyID>104196887400003</cbc:CompanyID>\n               <cac:TaxScheme>\n                  <cbc:ID>VAT</cbc:ID>\n               </cac:TaxScheme>\n            </cac:PartyTaxScheme>\n            <cac:PartyLegalEntity>\n               <cbc:RegistrationName>TRONSTRIDE FZC</cbc:RegistrationName>\n            </cac:PartyLegalEntity>\n            <cac:Contact>\n               <cbc:Telephone>971529031765</cbc:Telephone>\n               <cbc:ElectronicMail>mohamed@tronstride.com</cbc:ElectronicMail>\n            </cac:Contact>\n         </cac:Party>\n      </cac:AccountingSupplierParty>\n      <cac:AccountingCustomerParty>\n      <cac:Party>\n        <cbc:EndpointID schemeID=\"0235\">100711669800003</cbc:EndpointID>\n        <cac:PartyName>\n          <cbc:Name>HABIB MOHAMMAD SHARIF ABDULLA ALMULLA</cbc:Name>\n            </cac:PartyName>\n        <cac:PostalAddress>\n          <cbc:StreetName>Dubai, UAE</cbc:StreetName>\n          <cbc:CityName>Dubai</cbc:CityName>\n          <cbc:CountrySubentity>DXB</cbc:CountrySubentity>\n          <cac:Country>\n            <cbc:IdentificationCode>AE</cbc:IdentificationCode>\n               </cac:Country>\n            </cac:PostalAddress>\n        <cac:PartyTaxScheme>\n          <cbc:CompanyID>100711669800003</cbc:CompanyID>\n          <cac:TaxScheme>\n            <cbc:ID>VAT</cbc:ID>\n               </cac:TaxScheme>\n            </cac:PartyTaxScheme>\n        <cac:PartyLegalEntity>\n          <cbc:RegistrationName>HABIB MOHAMMAD SHARIF ABDULLA ALMULLA</cbc:RegistrationName>\n            </cac:PartyLegalEntity>\n         </cac:Party>\n      </cac:AccountingCustomerParty>\n      <cac:Delivery>\n         <cac:DeliveryLocation>\n            <cbc:ID>I &amp; L</cbc:ID>\n            <cac:Address>\n               <cbc:StreetName>P.O. BOX 3222</cbc:StreetName>\n               <cbc:AdditionalStreetName>SHARJAH, U.A.E.</cbc:AdditionalStreetName>\n               <cbc:CityName>Sharjah</cbc:CityName>\n               <cbc:PostalZone>NA</cbc:PostalZone>\n               <cbc:CountrySubentity>NA</cbc:CountrySubentity>\n               <cac:AddressLine>\n                  <cbc:Line>NA</cbc:Line>\n               </cac:AddressLine>\n               <cac:Country>\n                  <cbc:IdentificationCode>AE</cbc:IdentificationCode>\n               </cac:Country>\n            </cac:Address>\n         </cac:DeliveryLocation>\n      </cac:Delivery>\n      <cac:PaymentMeans>\n      <cbc:PaymentMeansCode>30</cbc:PaymentMeansCode>\n      <cac:PayeeFinancialAccount>\n        <cbc:ID>AE070260001012029678901</cbc:ID>\n         </cac:PayeeFinancialAccount>\n      </cac:PaymentMeans>\n      <cac:PaymentTerms>\n         <cbc:Note>60 Days from Inv. Dt.</cbc:Note>\n         <cbc:Amount currencyID=\"AED\">39375</cbc:Amount>\n         <cbc:InstallmentDueDate>2026-09-12</cbc:InstallmentDueDate>\n      </cac:PaymentTerms>\n      <cac:TaxTotal>\n         <cbc:TaxAmount currencyID=\"AED\">1875.00</cbc:TaxAmount>\n         <cac:TaxSubtotal>\n            <cbc:TaxableAmount currencyID=\"AED\">37500</cbc:TaxableAmount>\n            <cbc:TaxAmount currencyID=\"AED\">1875.00</cbc:TaxAmount>\n            <cac:TaxCategory>\n               <cbc:ID>S</cbc:ID>\n               <cbc:Percent>5</cbc:Percent>\n               <cac:TaxScheme>\n                  <cbc:ID>VAT</cbc:ID>\n               </cac:TaxScheme>\n            </cac:TaxCategory>\n         </cac:TaxSubtotal>\n      </cac:TaxTotal>\n      <cac:LegalMonetaryTotal>\n         <cbc:LineExtensionAmount currencyID=\"AED\">37500</cbc:LineExtensionAmount>\n         <cbc:TaxExclusiveAmount currencyID=\"AED\">37500</cbc:TaxExclusiveAmount>\n         <cbc:TaxInclusiveAmount currencyID=\"AED\">39375</cbc:TaxInclusiveAmount>\n         <cbc:PayableAmount currencyID=\"AED\">39375</cbc:PayableAmount>\n      </cac:LegalMonetaryTotal>\n      <cac:InvoiceLine>\n         <cbc:ID>1</cbc:ID>\n         <cbc:InvoicedQuantity unitCode=\"H87\">15</cbc:InvoicedQuantity>\n         <cbc:LineExtensionAmount currencyID=\"AED\">37500</cbc:LineExtensionAmount>\n         <cac:Item>\n            <cbc:Description>Safe Oilgo</cbc:Description>\n            <cbc:Name>Safe Oilgo</cbc:Name>\n            <cac:SellersItemIdentification>\n               <cbc:ID>ILFGICS003</cbc:ID>\n            </cac:SellersItemIdentification>\n            <cac:OriginCountry>\n               <cbc:IdentificationCode>AE</cbc:IdentificationCode>\n            </cac:OriginCountry>\n            <cac:ClassifiedTaxCategory>\n               <cbc:ID>S</cbc:ID>\n               <cbc:Percent>5</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=\"AED\">2500</cbc:PriceAmount>\n            <cbc:BaseQuantity unitCode=\"H87\">1</cbc:BaseQuantity>\n            <cac:AllowanceCharge>\n               <cbc:ChargeIndicator>false</cbc:ChargeIndicator>\n               <cbc:Amount currencyID=\"AED\">0</cbc:Amount>\n               <cbc:BaseAmount currencyID=\"AED\">2500</cbc:BaseAmount>\n            </cac:AllowanceCharge>\n         </cac:Price>\n         <cac:ItemPriceExtension>\n            <cbc:Amount currencyID=\"AED\">37500</cbc:Amount>\n            <cac:TaxTotal>\n               <cbc:TaxAmount currencyID=\"AED\">1875</cbc:TaxAmount>\n            </cac:TaxTotal>\n         </cac:ItemPriceExtension>\n      </cac:InvoiceLine>\n   </Invoice>\n</sh:StandardBusinessDocument>",
                  "options": {
                    "raw": {
                      "language": "xml"
                    }
                  }
                },
                "url": {
                  "raw": "{{baseUrl}}/external/api/v1/eInvoiceEntry/peppol/create-from-xml?saveOnValidationFailure=false&environment=SANDBOX&companyId={{companyId}}",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "external",
                    "api",
                    "v1",
                    "eInvoiceEntry",
                    "peppol",
                    "create-from-xml"
                  ],
                  "query": [
                    {
                      "key": "saveOnValidationFailure",
                      "value": "false",
                      "description": "Set to true to save the invoice even if schematron validation fails"
                    },
                    {
                      "key": "environment",
                      "value": "SANDBOX",
                      "description": "SANDBOX or LIVE"
                    },
                    {
                      "key": "companyId",
                      "value": "{{companyId}}",
                      "description": "(Optional) Your company ID. userId is derived automatically from the X-API-KEY; organisationId is derived automatically from the company."
                    }
                  ]
                },
                "description": "Forwards a raw UBL XML Invoice (or CreditNote with SBDH) directly to the Peppol AP\nPOST /api/peppol/outbound/create-from-xml endpoint.\n\nQuery params (caller-supplied):\n  saveOnValidationFailure — if true the AP persists the document even when schematron validation reports errors. Defaults to false.\n  environment             — SANDBOX (default) or LIVE.\n  companyId               — (Optional) Your company ID.\n\nAuto-injected by the gateway (no action required from caller):\n  userId         — resolved from the X-API-KEY bearer.\n  organisationId — resolved from the company record linked to companyId.\n\nThe request body is forwarded as-is with Content-Type: application/xml and the configured X-AP-Token header added server-side."
              },
              "status": "Internal Server Error",
              "code": 500,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n  \"errorKey\": \"Forwarding failed\",\n  \"details\": \"Connection refused: http://15.206.84.57:8000/api/peppol/outbound/create-from-xml\"\n}"
            }
          ],
          "event": [
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.test(\"HTTP 2xx\", () => pm.expect(pm.response.code).to.be.within(200, 299));",
                  "const j = pm.response.json();",
                  "pm.test(\"parsed and saved\", () => pm.expect(j.parseSuccess !== false && (j.entryId || j.savedEntryId), JSON.stringify(j)).to.be.ok);",
                  "const id = j.entryId || j.savedEntryId;",
                  "if (id) pm.collectionVariables.set(\"entryId\", String(id));",
                  "// After the 2026-09-04 build the original XML is kept as a file attachment: GET 2 returns originalXml + submittedAsXml."
                ]
              }
            }
          ]
        },
        {
          "name": "8.2 Peppol – Create from XML File (multipart)",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "X-API-KEY",
                "value": "{{apiKey}}"
              }
            ],
            "body": {
              "mode": "formdata",
              "formdata": [
                {
                  "key": "file",
                  "type": "file",
                  "description": "UBL XML file (Invoice or CreditNote). Must be application/xml content.",
                  "src": "/D:/Downloads/outbound_sent_37622.xml"
                }
              ]
            },
            "url": {
              "raw": "{{baseUrl}}/external/api/v1/eInvoiceEntry/peppol/create-from-xml-file?saveOnValidationFailure=false&environment=SANDBOX&companyId={{companyId}}&submit=true",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "external",
                "api",
                "v1",
                "eInvoiceEntry",
                "peppol",
                "create-from-xml-file"
              ],
              "query": [
                {
                  "key": "saveOnValidationFailure",
                  "value": "false",
                  "description": "Set to true to save the invoice even if schematron validation fails"
                },
                {
                  "key": "environment",
                  "value": "SANDBOX",
                  "description": "SANDBOX or LIVE"
                },
                {
                  "key": "companyId",
                  "value": "{{companyId}}",
                  "description": "(Optional) Your company ID. userId is derived automatically from the X-API-KEY; organisationId is derived automatically from the company."
                },
                {
                  "key": "submit",
                  "value": "true"
                }
              ]
            },
            "description": "Forwards an XML file (multipart/form-data, field: 'file') to the Peppol AP\nPOST /api/peppol/outbound/create-from-xml-file endpoint.\n\nQuery params (caller-supplied):\n  saveOnValidationFailure — if true the AP saves the document even on validation errors. Defaults to false.\n  environment             — SANDBOX (default) or LIVE.\n  companyId               — (Optional) Your company ID.\n\nAuto-injected by the gateway (no action required from caller):\n  userId         — resolved from the X-API-KEY bearer.\n  organisationId — resolved from the company record linked to companyId.\n\nContent-Type is set automatically by Postman for multipart. The server adds X-AP-Token before forwarding to the AP."
          },
          "response": [
            {
              "name": "Success",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "X-API-KEY",
                    "value": "{{apiKey}}"
                  }
                ],
                "body": {
                  "mode": "formdata",
                  "formdata": [
                    {
                      "key": "file",
                      "type": "file",
                      "description": "UBL XML file (Invoice or CreditNote). Must be application/xml content.",
                      "src": "/D:/Downloads/outbound_sent_37622.xml"
                    }
                  ]
                },
                "url": {
                  "raw": "{{baseUrl}}/external/api/v1/eInvoiceEntry/peppol/create-from-xml-file?saveOnValidationFailure=false&environment=SANDBOX&companyId={{companyId}}&submit=true",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "external",
                    "api",
                    "v1",
                    "eInvoiceEntry",
                    "peppol",
                    "create-from-xml-file"
                  ],
                  "query": [
                    {
                      "key": "saveOnValidationFailure",
                      "value": "false",
                      "description": "Set to true to save the invoice even if schematron validation fails"
                    },
                    {
                      "key": "environment",
                      "value": "SANDBOX",
                      "description": "SANDBOX or LIVE"
                    },
                    {
                      "key": "companyId",
                      "value": "{{companyId}}",
                      "description": "(Optional) Your company ID. userId is derived automatically from the X-API-KEY; organisationId is derived automatically from the company."
                    },
                    {
                      "key": "submit",
                      "value": "true"
                    }
                  ]
                },
                "description": "Forwards an XML file (multipart/form-data, field: 'file') to the Peppol AP\nPOST /api/peppol/outbound/create-from-xml-file endpoint.\n\nQuery params (caller-supplied):\n  saveOnValidationFailure — if true the AP saves the document even on validation errors. Defaults to false.\n  environment             — SANDBOX (default) or LIVE.\n  companyId               — (Optional) Your company ID.\n\nAuto-injected by the gateway (no action required from caller):\n  userId         — resolved from the X-API-KEY bearer.\n  organisationId — resolved from the company record linked to companyId.\n\nContent-Type is set automatically by Postman for multipart. The server adds X-AP-Token before forwarding to the AP."
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n  \"success\": true,\n  \"documentId\": \"INV-2024-001\",\n  \"transmissionId\": \"tx-abc123\",\n  \"userId\": 5,\n  \"companyId\": 12,\n  \"organisationId\": 3\n}"
            },
            {
              "name": "Validation Failure",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "X-API-KEY",
                    "value": "{{apiKey}}"
                  }
                ],
                "body": {
                  "mode": "formdata",
                  "formdata": [
                    {
                      "key": "file",
                      "type": "file",
                      "description": "UBL XML file (Invoice or CreditNote). Must be application/xml content.",
                      "src": "/D:/Downloads/outbound_sent_37622.xml"
                    }
                  ]
                },
                "url": {
                  "raw": "{{baseUrl}}/external/api/v1/eInvoiceEntry/peppol/create-from-xml-file?saveOnValidationFailure=false&environment=SANDBOX&companyId={{companyId}}&submit=true",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "external",
                    "api",
                    "v1",
                    "eInvoiceEntry",
                    "peppol",
                    "create-from-xml-file"
                  ],
                  "query": [
                    {
                      "key": "saveOnValidationFailure",
                      "value": "false",
                      "description": "Set to true to save the invoice even if schematron validation fails"
                    },
                    {
                      "key": "environment",
                      "value": "SANDBOX",
                      "description": "SANDBOX or LIVE"
                    },
                    {
                      "key": "companyId",
                      "value": "{{companyId}}",
                      "description": "(Optional) Your company ID. userId is derived automatically from the X-API-KEY; organisationId is derived automatically from the company."
                    },
                    {
                      "key": "submit",
                      "value": "true"
                    }
                  ]
                },
                "description": "Forwards an XML file (multipart/form-data, field: 'file') to the Peppol AP\nPOST /api/peppol/outbound/create-from-xml-file endpoint.\n\nQuery params (caller-supplied):\n  saveOnValidationFailure — if true the AP saves the document even on validation errors. Defaults to false.\n  environment             — SANDBOX (default) or LIVE.\n  companyId               — (Optional) Your company ID.\n\nAuto-injected by the gateway (no action required from caller):\n  userId         — resolved from the X-API-KEY bearer.\n  organisationId — resolved from the company record linked to companyId.\n\nContent-Type is set automatically by Postman for multipart. The server adds X-AP-Token before forwarding to the AP."
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n  \"success\": false,\n  \"errors\": [\n    { \"rule\": \"ibr-167-ae\", \"message\": \"vatExemptReasonCode is mandatory when taxCategory is E\" }\n  ]\n}"
            },
            {
              "name": "AP Unreachable",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "X-API-KEY",
                    "value": "{{apiKey}}"
                  }
                ],
                "body": {
                  "mode": "formdata",
                  "formdata": [
                    {
                      "key": "file",
                      "type": "file",
                      "description": "UBL XML file (Invoice or CreditNote). Must be application/xml content.",
                      "src": "/D:/Downloads/outbound_sent_37622.xml"
                    }
                  ]
                },
                "url": {
                  "raw": "{{baseUrl}}/external/api/v1/eInvoiceEntry/peppol/create-from-xml-file?saveOnValidationFailure=false&environment=SANDBOX&companyId={{companyId}}&submit=true",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "external",
                    "api",
                    "v1",
                    "eInvoiceEntry",
                    "peppol",
                    "create-from-xml-file"
                  ],
                  "query": [
                    {
                      "key": "saveOnValidationFailure",
                      "value": "false",
                      "description": "Set to true to save the invoice even if schematron validation fails"
                    },
                    {
                      "key": "environment",
                      "value": "SANDBOX",
                      "description": "SANDBOX or LIVE"
                    },
                    {
                      "key": "companyId",
                      "value": "{{companyId}}",
                      "description": "(Optional) Your company ID. userId is derived automatically from the X-API-KEY; organisationId is derived automatically from the company."
                    },
                    {
                      "key": "submit",
                      "value": "true"
                    }
                  ]
                },
                "description": "Forwards an XML file (multipart/form-data, field: 'file') to the Peppol AP\nPOST /api/peppol/outbound/create-from-xml-file endpoint.\n\nQuery params (caller-supplied):\n  saveOnValidationFailure — if true the AP saves the document even on validation errors. Defaults to false.\n  environment             — SANDBOX (default) or LIVE.\n  companyId               — (Optional) Your company ID.\n\nAuto-injected by the gateway (no action required from caller):\n  userId         — resolved from the X-API-KEY bearer.\n  organisationId — resolved from the company record linked to companyId.\n\nContent-Type is set automatically by Postman for multipart. The server adds X-AP-Token before forwarding to the AP."
              },
              "status": "Internal Server Error",
              "code": 500,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n  \"errorKey\": \"Forwarding failed\",\n  \"details\": \"Connection refused: http://15.206.84.57:8000/api/peppol/outbound/create-from-xml-file\"\n}"
            }
          ]
        },
        {
          "name": "8.3 Peppol – Lookup Participants (POST / JSON body)",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "X-API-KEY",
                "value": "{{apiKey}}"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"participantIds\": [\n    \"0235:1041968874\",\n    \"0235:1007116698\",\n    \"0235:9900000097\"\n  ],\n  \"smlEnvironment\": \"AUTO\"\n}"
            },
            "url": {
              "raw": "{{baseUrl}}/external/api/v1/eInvoiceEntry/peppol/lookup/participants?environment=SANDBOX",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "external",
                "api",
                "v1",
                "eInvoiceEntry",
                "peppol",
                "lookup",
                "participants"
              ],
              "query": [
                {
                  "key": "environment",
                  "value": "SANDBOX",
                  "description": "SANDBOX (default) or LIVE"
                }
              ]
            },
            "description": "Looks up one or more Peppol participants by their 'scheme:value' identifier\n(e.g. '0235:1041968874').\n\nBody shape:\n  {\n    \"participantIds\": [ \"scheme:value\", \"scheme:value\", ... ],\n    \"smlEnvironment\": \"PRODUCTION\" | \"TEST\" | \"AUTO\"  // optional, defaults to AUTO\n  }\n\nMax 50 IDs per request.\n\nResolved natively in Aigentrix (no external AP call) via PeppolParticipantLookupService: tries the current OpenPeppol SML zones first (SHA-256+Base32 hash, resolved via a real DNS NAPTR query, with DNS-over-HTTPS as a fallback transport), then the legacy EU-DIGIT zones (MD5 hash), then our own SMP as a last resort. Also fetches the PEPPOL Directory business card independently.\n\nuserId and organisationId are auto-injected by the gateway from the X-API-KEY and resolved company."
          },
          "response": [
            {
              "name": "Success – Mixed (registered + not registered)",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "X-API-KEY",
                    "value": "{{apiKey}}"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"participantIds\": [\n    \"0235:1041968874\",\n    \"0235:9900000097\"\n  ]\n}"
                },
                "url": {
                  "raw": "{{baseUrl}}/external/api/v1/eInvoiceEntry/peppol/lookup/participants?environment=SANDBOX",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "external",
                    "api",
                    "v1",
                    "eInvoiceEntry",
                    "peppol",
                    "lookup",
                    "participants"
                  ],
                  "query": [
                    {
                      "key": "environment",
                      "value": "SANDBOX",
                      "description": "SANDBOX (default) or LIVE"
                    }
                  ]
                },
                "description": "Looks up one or more Peppol participants by their 'scheme:value' identifier\n(e.g. '0235:1041968874'). Forwards the request to the configured Peppol AP\nPOST /api/peppol/lookup/participants endpoint.\n\nBody shape:\n  {\n    \"participantIds\": [ \"scheme:value\", \"scheme:value\", ... ]\n  }\n\nMax 50 IDs per request.\n\nThe AP performs NAPTR DNS resolution and SMP lookup using the standard PEPPOL\nB-level hashing (B-<MD5(lowercase(scheme::value))>.<zone>) and resolves via the\nJava JNDI DNS context. Falls back to the configured peppol.smp.default-url\nwhen NAPTR is unavailable (e.g. in sandbox).\n\nuserId and organisationId are auto-injected by the gateway from the X-API-KEY\nand resolved company. The X-AP-Token header is added server-side before\nforwarding to the AP."
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n  \"lookedUpAt\":      \"2026-07-16T12:34:56Z\",\n  \"requestedCount\":  2,\n  \"registeredCount\": 1,\n  \"results\": [\n    {\n      \"participantId\":      \"0235:1041968874\",\n      \"registered\":         true,\n      \"smpHost\":            \"b-3f4a....edelivery.tech.ec.europa.eu\",\n      \"smpServiceGroupUrl\": \"https://b-3f4a.../iso6523-actorid-upis::0235%3A1041968874\",\n      \"documentTypes\":      [\"busdox-docid-qns::urn:oasis:names:specification:ubl:schema:xsd:Invoice-2\"],\n      \"businessCard\": {\n        \"participantId\": \"0235:1041968874\",\n        \"names\":         [\"TRONSTRIDE FZC\"],\n        \"countryCodes\":  [\"AE\"],\n        \"entities\": [{\n          \"names\":       [\"TRONSTRIDE FZC\"],\n          \"countryCode\": \"AE\",\n          \"contacts\":    [{ \"type\": \"tech\", \"email\": \"tech@tronstride.com\" }],\n          \"identifiers\": [{ \"scheme\": \"0235\", \"value\": \"1041968874\" }]\n        }]\n      }\n    },\n    {\n      \"participantId\": \"0235:9900000097\",\n      \"registered\":    false,\n      \"smpError\":      \"SMP service group not found (404 or unreachable)\"\n    }\n  ]\n}"
            },
            {
              "name": "Batch size exceeded (>50)",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "X-API-KEY",
                    "value": "{{apiKey}}"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{ \"participantIds\": [ /* 51 or more IDs */ ] }"
                },
                "url": {
                  "raw": "{{baseUrl}}/external/api/v1/eInvoiceEntry/peppol/lookup/participants?environment=SANDBOX",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "external",
                    "api",
                    "v1",
                    "eInvoiceEntry",
                    "peppol",
                    "lookup",
                    "participants"
                  ],
                  "query": [
                    {
                      "key": "environment",
                      "value": "SANDBOX",
                      "description": "SANDBOX (default) or LIVE"
                    }
                  ]
                },
                "description": "Looks up one or more Peppol participants by their 'scheme:value' identifier\n(e.g. '0235:1041968874'). Forwards the request to the configured Peppol AP\nPOST /api/peppol/lookup/participants endpoint.\n\nBody shape:\n  {\n    \"participantIds\": [ \"scheme:value\", \"scheme:value\", ... ]\n  }\n\nMax 50 IDs per request.\n\nThe AP performs NAPTR DNS resolution and SMP lookup using the standard PEPPOL\nB-level hashing (B-<MD5(lowercase(scheme::value))>.<zone>) and resolves via the\nJava JNDI DNS context. Falls back to the configured peppol.smp.default-url\nwhen NAPTR is unavailable (e.g. in sandbox).\n\nuserId and organisationId are auto-injected by the gateway from the X-API-KEY\nand resolved company. The X-AP-Token header is added server-side before\nforwarding to the AP."
              },
              "status": "Bad Request",
              "code": 400,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n  \"success\": false,\n  \"error\":    \"Maximum 50 participant IDs per request, got 51.\",\n  \"field\":    \"participantIds\"\n}"
            },
            {
              "name": "Invalid environment",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "X-API-KEY",
                    "value": "{{apiKey}}"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"participantIds\": [\"0235:1041968874\"]\n}"
                },
                "url": {
                  "raw": "{{baseUrl}}/external/api/v1/eInvoiceEntry/peppol/lookup/participants?environment=PROD",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "external",
                    "api",
                    "v1",
                    "eInvoiceEntry",
                    "peppol",
                    "lookup",
                    "participants"
                  ],
                  "query": [
                    {
                      "key": "environment",
                      "value": "PROD",
                      "description": "SANDBOX (default) or LIVE"
                    }
                  ]
                },
                "description": "Looks up one or more Peppol participants by their 'scheme:value' identifier\n(e.g. '0235:1041968874'). Forwards the request to the configured Peppol AP\nPOST /api/peppol/lookup/participants endpoint.\n\nBody shape:\n  {\n    \"participantIds\": [ \"scheme:value\", \"scheme:value\", ... ]\n  }\n\nMax 50 IDs per request.\n\nThe AP performs NAPTR DNS resolution and SMP lookup using the standard PEPPOL\nB-level hashing (B-<MD5(lowercase(scheme::value))>.<zone>) and resolves via the\nJava JNDI DNS context. Falls back to the configured peppol.smp.default-url\nwhen NAPTR is unavailable (e.g. in sandbox).\n\nuserId and organisationId are auto-injected by the gateway from the X-API-KEY\nand resolved company. The X-AP-Token header is added server-side before\nforwarding to the AP."
              },
              "status": "Bad Request",
              "code": 400,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n  \"success\": false,\n  \"error\":    \"Invalid environment value. Use SANDBOX or LIVE.\",\n  \"field\":    \"environment\"\n}"
            }
          ]
        },
        {
          "name": "8.4 Peppol – Lookup Participants (GET / comma-separated ids)",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "X-API-KEY",
                "value": "{{apiKey}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/external/api/v1/eInvoiceEntry/peppol/lookup/participants?ids=0235:1041968874,0235:1007116698,0235:9900000097&environment=SANDBOX&smlEnvironment=AUTO",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "external",
                "api",
                "v1",
                "eInvoiceEntry",
                "peppol",
                "lookup",
                "participants"
              ],
              "query": [
                {
                  "key": "ids",
                  "value": "0235:1041968874,0235:1007116698,0235:9900000097",
                  "description": "Comma-separated list of participant IDs in 'scheme:value' form"
                },
                {
                  "key": "environment",
                  "value": "SANDBOX",
                  "description": "SANDBOX (default) or LIVE"
                },
                {
                  "key": "smlEnvironment",
                  "value": "AUTO",
                  "description": "Optional. PRODUCTION, TEST, or omitted/blank for AUTO. Selects which official Peppol SML zone(s) are queried: the current OpenPeppol zones (participant.sml.{prod,test}.tech.peppol.org, resolved via real DNS NAPTR) and the legacy EU-DIGIT zones (edelivery.tech.ec.europa.eu), then our own SMP as a last resort. AUTO tries production then test."
                }
              ]
            },
            "description": "Same as item 18 but for GET-style clients: pass the participant IDs as a\ncomma-separated 'ids' query parameter.\n\nMax 50 IDs per request.\n\nResolved natively in Aigentrix (no external AP call) via PeppolParticipantLookupService: tries the current OpenPeppol SML zones first (SHA-256+Base32 hash, resolved via a real DNS NAPTR query, with DNS-over-HTTPS as a fallback transport), then the legacy EU-DIGIT zones (MD5 hash), then our own SMP as a last resort. Also fetches the PEPPOL Directory business card independently.\n\nResponse shape is identical to item 18."
          },
          "response": [
            {
              "name": "Success",
              "originalRequest": {
                "method": "GET",
                "header": [
                  {
                    "key": "X-API-KEY",
                    "value": "{{apiKey}}"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/external/api/v1/eInvoiceEntry/peppol/lookup/participants?ids=0235:1041968874,0235:9900000097&environment=SANDBOX",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "external",
                    "api",
                    "v1",
                    "eInvoiceEntry",
                    "peppol",
                    "lookup",
                    "participants"
                  ],
                  "query": [
                    {
                      "key": "ids",
                      "value": "0235:1041968874,0235:9900000097",
                      "description": "Comma-separated list of participant IDs in 'scheme:value' form"
                    },
                    {
                      "key": "environment",
                      "value": "SANDBOX",
                      "description": "SANDBOX (default) or LIVE"
                    }
                  ]
                },
                "description": "Same as item 18 but for GET-style clients: pass the participant IDs as a\ncomma-separated 'ids' query parameter.\n\nMax 50 IDs per request.\n\nForwards to the configured Peppol AP POST /api/peppol/lookup/participants.\nThe AP performs NAPTR DNS resolution and SMP lookup using the standard PEPPOL\nB-level hashing (B-<MD5(lowercase(scheme::value))>.<zone>) and resolves via\nthe Java JNDI DNS context. Falls back to the configured peppol.smp.default-url\nwhen NAPTR is unavailable (e.g. in sandbox).\n\nResponse shape is identical to item 18."
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n  \"lookedUpAt\":      \"2026-07-16T12:34:56Z\",\n  \"requestedCount\":  2,\n  \"registeredCount\": 1,\n  \"results\": [\n    { \"participantId\": \"0235:1041968874\", \"registered\": true  },\n    { \"participantId\": \"0235:9900000097\", \"registered\": false, \"smpError\": \"SMP service group not found\" }\n  ]\n}"
            },
            {
              "name": "Missing 'ids' parameter",
              "originalRequest": {
                "method": "GET",
                "header": [
                  {
                    "key": "X-API-KEY",
                    "value": "{{apiKey}}"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/external/api/v1/eInvoiceEntry/peppol/lookup/participants?environment=SANDBOX",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "external",
                    "api",
                    "v1",
                    "eInvoiceEntry",
                    "peppol",
                    "lookup",
                    "participants"
                  ],
                  "query": [
                    {
                      "key": "environment",
                      "value": "SANDBOX",
                      "description": "SANDBOX (default) or LIVE"
                    }
                  ]
                },
                "description": "Same as item 18 but for GET-style clients: pass the participant IDs as a\ncomma-separated 'ids' query parameter.\n\nMax 50 IDs per request.\n\nForwards to the configured Peppol AP POST /api/peppol/lookup/participants.\nThe AP performs NAPTR DNS resolution and SMP lookup using the standard PEPPOL\nB-level hashing (B-<MD5(lowercase(scheme::value))>.<zone>) and resolves via\nthe Java JNDI DNS context. Falls back to the configured peppol.smp.default-url\nwhen NAPTR is unavailable (e.g. in sandbox).\n\nResponse shape is identical to item 18."
              },
              "status": "Bad Request",
              "code": 400,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n  \"success\": false,\n  \"error\":    \"Query parameter 'ids' is required.\",\n  \"field\":    \"ids\"\n}"
            }
          ]
        },
        {
          "name": "8.5 Peppol – Lookup Participant (GET / single id)",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "X-API-KEY",
                "value": "{{apiKey}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/external/api/v1/eInvoiceEntry/peppol/lookup/participants/0235:1041968874?environment=SANDBOX&smlEnvironment=AUTO",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "external",
                "api",
                "v1",
                "eInvoiceEntry",
                "peppol",
                "lookup",
                "participants",
                "0235:1041968874"
              ],
              "query": [
                {
                  "key": "environment",
                  "value": "SANDBOX",
                  "description": "SANDBOX (default) or LIVE"
                },
                {
                  "key": "smlEnvironment",
                  "value": "AUTO",
                  "description": "Optional. PRODUCTION, TEST, or omitted/blank for AUTO. Selects which official Peppol SML zone(s) are queried: the current OpenPeppol zones (participant.sml.{prod,test}.tech.peppol.org, resolved via real DNS NAPTR) and the legacy EU-DIGIT zones (edelivery.tech.ec.europa.eu), then our own SMP as a last resort. AUTO tries production then test."
                }
              ]
            },
            "description": "Single-ID participant lookup. The participant ID is supplied as the final\npath segment (URL-encoded if it contains characters like ':' or '+').\n\nResolved natively in Aigentrix (no external AP call) via PeppolParticipantLookupService: tries the current OpenPeppol SML zones first (SHA-256+Base32 hash, resolved via a real DNS NAPTR query, with DNS-over-HTTPS as a fallback transport), then the legacy EU-DIGIT zones (MD5 hash), then our own SMP as a last resort. Also fetches the PEPPOL Directory business card independently.\n\nResponse shape is identical to items 18 and 19 (results array has exactly\none entry)."
          },
          "response": [
            {
              "name": "Success – Registered",
              "originalRequest": {
                "method": "GET",
                "header": [
                  {
                    "key": "X-API-KEY",
                    "value": "{{apiKey}}"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/external/api/v1/eInvoiceEntry/peppol/lookup/participants/0235:1041968874?environment=SANDBOX",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "external",
                    "api",
                    "v1",
                    "eInvoiceEntry",
                    "peppol",
                    "lookup",
                    "participants",
                    "0235:1041968874"
                  ],
                  "query": [
                    {
                      "key": "environment",
                      "value": "SANDBOX",
                      "description": "SANDBOX (default) or LIVE"
                    }
                  ]
                },
                "description": "Single-ID participant lookup. The participant ID is supplied as the final\npath segment (URL-encoded if it contains characters like ':' or '+').\n\nForwards to the configured Peppol AP POST /api/peppol/lookup/participants\nwith a single-element participantIds array. The AP performs NAPTR DNS\nresolution and SMP lookup using the standard PEPPOL B-level hashing\n(B-<MD5(lowercase(scheme::value))>.<zone>) and resolves via the Java JNDI\nDNS context. Falls back to the configured peppol.smp.default-url when\nNAPTR is unavailable (e.g. in sandbox).\n\nResponse shape is identical to items 18 and 19 (results array has exactly\none entry)."
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n  \"lookedUpAt\":      \"2026-07-16T12:34:56Z\",\n  \"requestedCount\":  1,\n  \"registeredCount\": 1,\n  \"results\": [\n    {\n      \"participantId\":      \"0235:1041968874\",\n      \"registered\":         true,\n      \"smpHost\":            \"b-3f4a....edelivery.tech.ec.europa.eu\",\n      \"smpServiceGroupUrl\": \"https://b-3f4a.../iso6523-actorid-upis::0235%3A1041968874\",\n      \"documentTypes\":      [\"busdox-docid-qns::urn:oasis:names:specification:ubl:schema:xsd:Invoice-2\"]\n    }\n  ]\n}"
            },
            {
              "name": "Success – Not registered",
              "originalRequest": {
                "method": "GET",
                "header": [
                  {
                    "key": "X-API-KEY",
                    "value": "{{apiKey}}"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/external/api/v1/eInvoiceEntry/peppol/lookup/participants/0235:9900000097?environment=SANDBOX",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "external",
                    "api",
                    "v1",
                    "eInvoiceEntry",
                    "peppol",
                    "lookup",
                    "participants",
                    "0235:9900000097"
                  ],
                  "query": [
                    {
                      "key": "environment",
                      "value": "SANDBOX",
                      "description": "SANDBOX (default) or LIVE"
                    }
                  ]
                },
                "description": "Single-ID participant lookup. The participant ID is supplied as the final\npath segment (URL-encoded if it contains characters like ':' or '+').\n\nForwards to the configured Peppol AP POST /api/peppol/lookup/participants\nwith a single-element participantIds array. The AP performs NAPTR DNS\nresolution and SMP lookup using the standard PEPPOL B-level hashing\n(B-<MD5(lowercase(scheme::value))>.<zone>) and resolves via the Java JNDI\nDNS context. Falls back to the configured peppol.smp.default-url when\nNAPTR is unavailable (e.g. in sandbox).\n\nResponse shape is identical to items 18 and 19 (results array has exactly\none entry)."
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n  \"lookedUpAt\":      \"2026-07-16T12:34:56Z\",\n  \"requestedCount\":  1,\n  \"registeredCount\": 0,\n  \"results\": [\n    {\n      \"participantId\": \"0235:9900000097\",\n      \"registered\":    false,\n      \"smpError\":      \"SMP service group not found (404 or unreachable)\"\n    }\n  ]\n}"
            }
          ]
        }
      ]
    },
    {
      "name": "9. Webhooks (push notifications)",
      "item": [
        {
          "name": "9.1 Get Event Catalog",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "X-API-KEY",
                "value": "{{apiKey}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/external/api/v1/webhookSubscriptions/events",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "external",
                "api",
                "v1",
                "webhookSubscriptions",
                "events"
              ]
            },
            "description": "Public catalog of event keys/descriptions your subscription's eventTypes can opt into (or \"*\" for all)."
          },
          "response": [
            {
              "name": "Success",
              "originalRequest": {
                "method": "GET",
                "header": [
                  {
                    "key": "X-API-KEY",
                    "value": "{{apiKey}}"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/external/api/v1/webhookSubscriptions/events",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "external",
                    "api",
                    "v1",
                    "webhookSubscriptions",
                    "events"
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n  \"events\": [\n    { \"key\": \"invoice.status_updated\", \"description\": \"Fires when either invoice status OR taxStatus changes (one delivery per field). Payload includes changedField, previousValue, and newValue so the client knows exactly what updated.\" },\n    { \"key\": \"invoice.document_ready\", \"description\": \"Fires when the final PDF/XML documents for an outbound invoice are available for download.\" },\n    { \"key\": \"invoice.received\", \"description\": \"Fires when an inbound Peppol invoice is received and acknowledged for one of your companies.\" }\n  ]\n}"
            }
          ]
        },
        {
          "name": "9.2 Create Subscription",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "X-API-KEY",
                "value": "{{apiKey}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"companyId\": {{companyId}},\n  \"environment\": \"SANDBOX\",\n  \"url\": \"{{yourWebhookUrl}}\",\n  \"eventTypes\": [\"*\"],\n  \"description\": \"Primary integration endpoint\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{baseUrl}}/external/api/v1/webhookSubscriptions",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "external",
                "api",
                "v1",
                "webhookSubscriptions"
              ]
            },
            "description": "eventTypes: array of event keys from the catalog above, or [\"*\"] for all. Response includes \"secret\" ONCE — save it immediately, it is never shown again (rotateSecret issues a new one). companyId must belong to your API key's organisation; for a global API key also send an X-Company-Id header."
          },
          "response": [
            {
              "name": "Success",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "X-API-KEY",
                    "value": "{{apiKey}}"
                  },
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"companyId\": {{companyId}},\n  \"environment\": \"SANDBOX\",\n  \"url\": \"{{yourWebhookUrl}}\",\n  \"eventTypes\": [\"*\"],\n  \"description\": \"Primary integration endpoint\"\n}"
                },
                "url": {
                  "raw": "{{baseUrl}}/external/api/v1/webhookSubscriptions",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "external",
                    "api",
                    "v1",
                    "webhookSubscriptions"
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "body": "{\n  \"success\": true,\n  \"subscription\": {\n    \"id\": 12,\n    \"companyId\": {{companyId}},\n    \"environment\": \"SANDBOX\",\n    \"url\": \"{{yourWebhookUrl}}\",\n    \"eventTypes\": \"*\",\n    \"status\": \"PENDING_VERIFICATION\",\n    \"description\": \"Primary integration endpoint\"\n  },\n  \"secret\": \"whsec_...shown-only-once...\"\n}"
            }
          ]
        },
        {
          "name": "9.3 Verify Subscription",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "X-API-KEY",
                "value": "{{apiKey}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/external/api/v1/webhookSubscriptions/{{webhookSubscriptionId}}/verify",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "external",
                "api",
                "v1",
                "webhookSubscriptions",
                "{{webhookSubscriptionId}}",
                "verify"
              ]
            },
            "description": "Sends a webhook.verification POST with a random challenge to the subscription's URL. Your endpoint must respond 2xx with {\"challenge\": \"<echoed>\", \"signature\": hex(hmacSHA256(secret, challenge))}. On success the subscription flips to ACTIVE."
          },
          "response": []
        },
        {
          "name": "9.4 Send Test Event",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "X-API-KEY",
                "value": "{{apiKey}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/external/api/v1/webhookSubscriptions/{{webhookSubscriptionId}}/test",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "external",
                "api",
                "v1",
                "webhookSubscriptions",
                "{{webhookSubscriptionId}}",
                "test"
              ]
            },
            "description": "Fires a synchronous webhook.test delivery to an ACTIVE subscription's URL — the fastest way to confirm your endpoint is reachable, signed, and processed correctly, without waiting on real invoice activity."
          },
          "response": []
        },
        {
          "name": "9.5 List Subscriptions",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "X-API-KEY",
                "value": "{{apiKey}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/external/api/v1/webhookSubscriptions?companyId={{companyId}}",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "external",
                "api",
                "v1",
                "webhookSubscriptions"
              ],
              "query": [
                {
                  "key": "companyId",
                  "value": "{{companyId}}"
                }
              ]
            },
            "description": "Lists webhook subscriptions (SANDBOX + LIVE) for the given company."
          },
          "response": []
        },
        {
          "name": "9.6 Delete Subscription",
          "request": {
            "method": "DELETE",
            "header": [
              {
                "key": "X-API-KEY",
                "value": "{{apiKey}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/external/api/v1/webhookSubscriptions/{{webhookSubscriptionId}}",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "external",
                "api",
                "v1",
                "webhookSubscriptions",
                "{{webhookSubscriptionId}}"
              ]
            },
            "description": "Permanently deletes a webhook subscription and its delivery history. Deliveries stop immediately."
          },
          "response": []
        },
        {
          "name": "9.7+ Example payloads (what your endpoint receives)",
          "item": [
            {
              "name": "9.7 Example Payload — invoice.status_updated (status field)",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "X-Aigentrix-Signature",
                    "value": "t=1785789230,v1=<hex hmac-sha256(secret, t + \".\" + body)>"
                  },
                  {
                    "key": "X-Aigentrix-Event-Id",
                    "value": "ce484636-ab29-447a-be57-a4d4d8230779"
                  },
                  {
                    "key": "X-Aigentrix-Environment",
                    "value": "SANDBOX"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"eventId\": \"ce484636-ab29-447a-be57-a4d4d8230779\",\n  \"eventType\": \"invoice.status_updated\",\n  \"environment\": \"SANDBOX\",\n  \"occurredAt\": \"2026-08-03T20:33:49Z\",\n  \"entryId\": 40117,\n  \"invoiceNumber\": \"RTRUC-650020\",\n  \"companyId\": 20,\n  \"organisationId\": 27,\n  \"type\": \"OUTBOUND\",\n  \"changedField\": \"status\",\n  \"previousValue\": \"DELIVERED\",\n  \"newValue\": \"ACKNOWLEDGED\",\n  \"documents\": [\n    { \"type\": \"PDF\", \"fileName\": \"outbound_sent\", \"url\": \"https://app.aigentrix.ai/external/api/v1/print/xml/40117?fileName=outbound_sent\" },\n    { \"type\": \"XML\", \"fileName\": \"outbound_sent\", \"url\": \"https://app.aigentrix.ai/external/api/v1/print/orgxml/40117?fileName=outbound_sent\" },\n    { \"type\": \"PDF\", \"fileName\": \"outbound_ack\", \"url\": \"https://app.aigentrix.ai/external/api/v1/print/xml/40117?fileName=outbound_ack\" },\n    { \"type\": \"XML\", \"fileName\": \"outbound_ack\", \"url\": \"https://app.aigentrix.ai/external/api/v1/print/orgxml/40117?fileName=outbound_ack\" }\n  ]\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{yourWebhookUrl}}",
                  "host": [
                    "{{yourWebhookUrl}}"
                  ]
                },
                "description": "Not a real Aigentrix endpoint — this is what Aigentrix POSTs to YOUR url when an OUTBOUND invoice's status reaches ACKNOWLEDGED (or SUBMITTED / VALIDATION_PASSED / VALIDATION_FAILED / DELIVERED / REJECTED / TRANSMISSION_FAILED / CREDIT_NOTE_ISSUED / ERROR). Point {{yourWebhookUrl}} at your local test receiver (e.g. scripts/webhook-test-receiver.py) and hit Send to simulate delivery."
              },
              "response": []
            },
            {
              "name": "9.8 Example Payload — invoice.status_updated (taxStatus field)",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "X-Aigentrix-Signature",
                    "value": "t=1785789230,v1=<hex hmac-sha256(secret, t + \".\" + body)>"
                  },
                  {
                    "key": "X-Aigentrix-Event-Id",
                    "value": "323298ec-20eb-437e-86b3-4e6384a2fec4"
                  },
                  {
                    "key": "X-Aigentrix-Environment",
                    "value": "SANDBOX"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"eventId\": \"323298ec-20eb-437e-86b3-4e6384a2fec4\",\n  \"eventType\": \"invoice.status_updated\",\n  \"environment\": \"SANDBOX\",\n  \"occurredAt\": \"2026-08-03T20:33:49Z\",\n  \"entryId\": 40117,\n  \"invoiceNumber\": \"RTRUC-650020\",\n  \"companyId\": 20,\n  \"organisationId\": 27,\n  \"type\": \"OUTBOUND\",\n  \"changedField\": \"taxStatus\",\n  \"previousValue\": \"REPORTING_CONFIRMED\",\n  \"newValue\": \"ACKNOWLEDGED\",\n  \"documents\": [\n    { \"type\": \"PDF\", \"fileName\": \"outbound_report_fta\", \"url\": \"https://app.aigentrix.ai/external/api/v1/print/xml/40117?fileName=outbound_report_fta\" },\n    { \"type\": \"XML\", \"fileName\": \"outbound_report_fta\", \"url\": \"https://app.aigentrix.ai/external/api/v1/print/orgxml/40117?fileName=outbound_report_fta\" },\n    { \"type\": \"PDF\", \"fileName\": \"outbound_confirm_fta\", \"url\": \"https://app.aigentrix.ai/external/api/v1/print/xml/40117?fileName=outbound_confirm_fta\" },\n    { \"type\": \"XML\", \"fileName\": \"outbound_confirm_fta\", \"url\": \"https://app.aigentrix.ai/external/api/v1/print/orgxml/40117?fileName=outbound_confirm_fta\" }\n  ]\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{yourWebhookUrl}}",
                  "host": [
                    "{{yourWebhookUrl}}"
                  ]
                },
                "description": "What Aigentrix POSTs to YOUR url when an OUTBOUND invoice's tax-authority reporting status (taxStatus) reaches ACKNOWLEDGED or REJECTED."
              },
              "response": []
            },
            {
              "name": "9.9 Example Payload — invoice.status_updated (REJECTED, no documents)",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "X-Aigentrix-Signature",
                    "value": "t=1785789230,v1=<hex hmac-sha256(secret, t + \".\" + body)>"
                  },
                  {
                    "key": "X-Aigentrix-Event-Id",
                    "value": "b1c2d3e4-f5a6-4b7c-8d9e-0f1a2b3c4d5e"
                  },
                  {
                    "key": "X-Aigentrix-Environment",
                    "value": "SANDBOX"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"eventId\": \"b1c2d3e4-f5a6-4b7c-8d9e-0f1a2b3c4d5e\",\n  \"eventType\": \"invoice.status_updated\",\n  \"environment\": \"SANDBOX\",\n  \"occurredAt\": \"2026-08-03T21:07:38Z\",\n  \"entryId\": 40121,\n  \"invoiceNumber\": \"RTRUC-650024\",\n  \"companyId\": 20,\n  \"organisationId\": 27,\n  \"type\": \"OUTBOUND\",\n  \"changedField\": \"status\",\n  \"previousValue\": \"SENDING\",\n  \"newValue\": \"TRANSMISSION_FAILED\",\n  \"rejectionReason\": \"AS4 delivery timeout after 3 retries\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{yourWebhookUrl}}",
                  "host": [
                    "{{yourWebhookUrl}}"
                  ]
                },
                "description": "Failure-state variant: no \"documents\" field, but \"rejectionReason\" is included for REJECTED / VALIDATION_FAILED / TRANSMISSION_FAILED / ERROR."
              },
              "response": []
            },
            {
              "name": "9.10 Example Payload — invoice.document_ready",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "X-Aigentrix-Signature",
                    "value": "t=1785789230,v1=<hex hmac-sha256(secret, t + \".\" + body)>"
                  },
                  {
                    "key": "X-Aigentrix-Event-Id",
                    "value": "92e46340-4a92-4650-98c7-9a14c29c7b82"
                  },
                  {
                    "key": "X-Aigentrix-Environment",
                    "value": "SANDBOX"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"eventId\": \"92e46340-4a92-4650-98c7-9a14c29c7b82\",\n  \"eventType\": \"invoice.document_ready\",\n  \"environment\": \"SANDBOX\",\n  \"occurredAt\": \"2026-08-03T20:33:49Z\",\n  \"entryId\": 40117,\n  \"invoiceNumber\": \"RTRUC-650020\",\n  \"companyId\": 20,\n  \"organisationId\": 27,\n  \"type\": \"OUTBOUND\",\n  \"documents\": [\n    { \"type\": \"PDF\", \"fileName\": \"outbound_report_fta\", \"url\": \"https://app.aigentrix.ai/external/api/v1/print/xml/40117?fileName=outbound_report_fta\" },\n    { \"type\": \"XML\", \"fileName\": \"outbound_report_fta\", \"url\": \"https://app.aigentrix.ai/external/api/v1/print/orgxml/40117?fileName=outbound_report_fta\" },\n    { \"type\": \"PDF\", \"fileName\": \"outbound_confirm_fta\", \"url\": \"https://app.aigentrix.ai/external/api/v1/print/xml/40117?fileName=outbound_confirm_fta\" },\n    { \"type\": \"XML\", \"fileName\": \"outbound_confirm_fta\", \"url\": \"https://app.aigentrix.ai/external/api/v1/print/orgxml/40117?fileName=outbound_confirm_fta\" }\n  ]\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{yourWebhookUrl}}",
                  "host": [
                    "{{yourWebhookUrl}}"
                  ]
                },
                "description": "No changedField/previousValue/newValue — pure \"final documents are ready to download\" notification for an OUTBOUND invoice, fired alongside the taxStatus ACKNOWLEDGED status_updated event."
              },
              "response": []
            },
            {
              "name": "9.11 Example Payload — invoice.received (INBOUND)",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "X-Aigentrix-Signature",
                    "value": "t=1785792145,v1=<hex hmac-sha256(secret, t + \".\" + body)>"
                  },
                  {
                    "key": "X-Aigentrix-Event-Id",
                    "value": "d4b83f4f-2f00-4f6d-bc29-a4be6f67f232"
                  },
                  {
                    "key": "X-Aigentrix-Environment",
                    "value": "SANDBOX"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"eventId\": \"d4b83f4f-2f00-4f6d-bc29-a4be6f67f232\",\n  \"eventType\": \"invoice.received\",\n  \"environment\": \"SANDBOX\",\n  \"occurredAt\": \"2026-08-03T21:20:49Z\",\n  \"entryId\": 40311,\n  \"invoiceNumber\": \"RTRUC-650025\",\n  \"companyId\": 21,\n  \"organisationId\": 28,\n  \"type\": \"INBOUND\",\n  \"changedField\": \"taxStatus\",\n  \"previousValue\": \"REPORTING_CONFIRMED\",\n  \"newValue\": \"ACKNOWLEDGED\",\n  \"documents\": [\n    { \"type\": \"PDF\", \"fileName\": \"inbound_report_fta\", \"url\": \"https://app.aigentrix.ai/external/api/v1/print/xml/40311?fileName=inbound_report_fta\" },\n    { \"type\": \"XML\", \"fileName\": \"inbound_report_fta\", \"url\": \"https://app.aigentrix.ai/external/api/v1/print/orgxml/40311?fileName=inbound_report_fta\" },\n    { \"type\": \"PDF\", \"fileName\": \"inbound_confirm_fta\", \"url\": \"https://app.aigentrix.ai/external/api/v1/print/xml/40311?fileName=inbound_confirm_fta\" },\n    { \"type\": \"XML\", \"fileName\": \"inbound_confirm_fta\", \"url\": \"https://app.aigentrix.ai/external/api/v1/print/orgxml/40311?fileName=inbound_confirm_fta\" }\n  ]\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{yourWebhookUrl}}",
                  "host": [
                    "{{yourWebhookUrl}}"
                  ]
                },
                "description": "Fired for INBOUND invoices once tax-authority reporting is acknowledged for your company. Also fires (without documents) when an inbound entry's status becomes REJECTED — same shape as the status_updated failure example above but eventType stays invoice.status_updated for that case."
              },
              "response": []
            },
            {
              "name": "9.12 Example Payload — webhook.verification (handshake)",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "X-Aigentrix-Signature",
                    "value": "t=1785792000,v1=<hex hmac-sha256(secret, t + \".\" + body)>"
                  },
                  {
                    "key": "X-Aigentrix-Event-Id",
                    "value": "bde23f9f-a786-4cc8-b127-032a23f4ce8d"
                  },
                  {
                    "key": "X-Aigentrix-Environment",
                    "value": "SANDBOX"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"eventId\": \"bde23f9f-a786-4cc8-b127-032a23f4ce8d\",\n  \"eventType\": \"webhook.verification\",\n  \"environment\": \"SANDBOX\",\n  \"data\": {\n    \"challenge\": \"SLF-odSEanyI_GeZkBHzKGWAXjaQl-2s\"\n  }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{yourWebhookUrl}}",
                  "host": [
                    "{{yourWebhookUrl}}"
                  ]
                },
                "description": "Sent when you call POST .../verify. Your endpoint MUST respond 2xx with:\n  { \"challenge\": \"SLF-odSEanyI_GeZkBHzKGWAXjaQl-2s\", \"signature\": hex(hmacSHA256(secret, challenge)) }\nEchoing the challenge alone is not enough — a missing/wrong signature keeps the subscription in PENDING_VERIFICATION."
              },
              "response": []
            },
            {
              "name": "9.13 Example Payload — webhook.test",
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "X-Aigentrix-Signature",
                    "value": "t=1785792002,v1=<hex hmac-sha256(secret, t + \".\" + body)>"
                  },
                  {
                    "key": "X-Aigentrix-Event-Id",
                    "value": "25bcf10d-b830-44f0-9ef4-bf05b12247ef"
                  },
                  {
                    "key": "X-Aigentrix-Environment",
                    "value": "SANDBOX"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"eventId\": \"25bcf10d-b830-44f0-9ef4-bf05b12247ef\",\n  \"eventType\": \"webhook.test\",\n  \"environment\": \"SANDBOX\",\n  \"data\": {\n    \"entryId\": 0,\n    \"documentId\": \"TEST-0001\",\n    \"status\": \"DELIVERED\",\n    \"previousStatus\": \"SENDING\",\n    \"documents\": []\n  }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{yourWebhookUrl}}",
                  "host": [
                    "{{yourWebhookUrl}}"
                  ]
                },
                "description": "Synthetic payload sent by POST .../test against an ACTIVE subscription — a fixed dummy invoice, useful purely to confirm your endpoint is reachable and your signature check passes."
              },
              "response": []
            }
          ]
        }
      ]
    }
  ],
  "event": [
    {
      "listen": "prerequest",
      "script": {
        "type": "text/javascript",
        "packages": {},
        "requests": {},
        "exec": [
          ""
        ]
      }
    },
    {
      "listen": "test",
      "script": {
        "type": "text/javascript",
        "packages": {},
        "requests": {},
        "exec": [
          ""
        ]
      }
    }
  ],
  "variable": [
    {
      "key": "baseUrl",
      "value": "https://app.aigentrix.ai"
    },
    {
      "key": "apiKey",
      "value": "<your-api-key>"
    },
    {
      "key": "companyId",
      "value": "1"
    },
    {
      "key": "entryId",
      "value": "1"
    },
    {
      "key": "webhookSubscriptionId",
      "value": "1"
    },
    {
      "key": "yourWebhookUrl",
      "value": "https://your-system.example.com/webhook",
      "description": "Where Aigentrix pushes webhook events. Point this at your local test receiver (scripts/webhook-test-receiver.py) or your real integration endpoint."
    }
  ]
}
