Skip to content

Tax & e-invoicingDAC7 Platform Reporting

dac7.validate

Check DAC7 DPI v1.0 against the official XSD, EU or Irish Revenue rules, and supplied DocRefId history. Up to 500 sellers per file.

POSThttps://api.kanagu.dev/v1/dac7/validate
Price
$0.15 per seller, on successful calls only
Authentication
API key required.
MCP
call_operation with operation: "dac7.validate" at https://api.kanagu.dev/mcp

Compliance coverage

Jurisdictions
Jurisdictions: EU, IE
Standards
  • Council Directive (EU) 2021/514, Annex V2021/5142021-03-22Source
  • DG TAXUD DAC7 DPI XML Schema and User Guide4.00 EN / XSD 1.02023-06-07Source
  • Irish Revenue DAC7/MRDP XSD1.02024-11-14Source
  • Irish Revenue OECD common types1.02026-01-22Source
  • Irish Revenue DPI ISO types (including country and currency codes)1.02026-01-22Source
  • Irish Revenue DAC7/MRDP registration and filing FAQs2026-09-25 snapshot2026-09-25Source
  • Irish Revenue DPI Schema User Guide3.00 EN2022-12-15Source
  • Irish Revenue DAC7 API Functional Design Specifications1.32026-01-22Source
Verification
Both operations run libxml2 against the official DPI 1.0 XSD and check report structure, local rules and supplied filing history.
Last reviewed
2026-11-26
curl https://api.kanagu.dev/v1/dac7/validate \
  -H "Authorization: Bearer $KANAGU_KEY" \
  -H "Content-Type: application/json" \
  -d '{"profile":"eu","xml":"<DPI_OECD xmlns=\"urn:oecd:ties:dpi:v1\" version=\"1.0\"><MessageSpec><TransmittingCountry>IE</TransmittingCountry><ReceivingCountry>FR</ReceivingCountry><MessageType>DPI</MessageType><MessageRefId>IE2026FR-NIL01</MessageRefId><MessageTypeIndic>DPI403</MessageTypeIndic><ReportingPeriod>2026-12-31</ReportingPeriod><Timestamp>2027-02-01T12:00:00</Timestamp></MessageSpec></DPI_OECD>","history":[]}'
const res = await fetch("https://api.kanagu.dev/v1/dac7/validate", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.KANAGU_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "profile": "eu",
    "xml": "<DPI_OECD xmlns=\"urn:oecd:ties:dpi:v1\" version=\"1.0\"><MessageSpec><TransmittingCountry>IE</TransmittingCountry><ReceivingCountry>FR</ReceivingCountry><MessageType>DPI</MessageType><MessageRefId>IE2026FR-NIL01</MessageRefId><MessageTypeIndic>DPI403</MessageTypeIndic><ReportingPeriod>2026-12-31</ReportingPeriod><Timestamp>2027-02-01T12:00:00</Timestamp></MessageSpec></DPI_OECD>",
    "history": []
  }),
});
if (!res.ok) throw new Error((await res.json()).error.message);
const result = await res.json();
curl https://api.kanagu.dev/mcp \
  -H "Authorization: Bearer $KANAGU_KEY" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"call_operation","arguments":{"operation":"dac7.validate","input":{"profile":"eu","xml":"<DPI_OECD xmlns=\"urn:oecd:ties:dpi:v1\" version=\"1.0\"><MessageSpec><TransmittingCountry>IE</TransmittingCountry><ReceivingCountry>FR</ReceivingCountry><MessageType>DPI</MessageType><MessageRefId>IE2026FR-NIL01</MessageRefId><MessageTypeIndic>DPI403</MessageTypeIndic><ReportingPeriod>2026-12-31</ReportingPeriod><Timestamp>2027-02-01T12:00:00</Timestamp></MessageSpec></DPI_OECD>","history":[]}}}}'
Request body
{
  "profile": "eu",
  "xml": "<DPI_OECD xmlns=\"urn:oecd:ties:dpi:v1\" version=\"1.0\"><MessageSpec><TransmittingCountry>IE</TransmittingCountry><ReceivingCountry>FR</ReceivingCountry><MessageType>DPI</MessageType><MessageRefId>IE2026FR-NIL01</MessageRefId><MessageTypeIndic>DPI403</MessageTypeIndic><ReportingPeriod>2026-12-31</ReportingPeriod><Timestamp>2027-02-01T12:00:00</Timestamp></MessageSpec></DPI_OECD>",
  "history": []
}

Request body

application/json

profile"eu" | "ireland"required
xmlstring (max 4194304 chars)required
historyarray of string (max 4194304 chars)

Response

200 · application/json

validbooleanrequired
profile"eu" | "ireland"required
xsdobjectrequired
xsd.version"1.0"required
xsd.sourcestringrequired
xsd.status"passed" | "failed" | "not_run"required
reportableSellersinteger (0 to 9007199254740991)required
errorsarray of objectrequired
errors[].pathstringrequired
errors[].lineinteger (≤ 9007199254740991)
errors[].rulestringrequired
errors[].expectedstringrequired
errors[].actualstringrequired
errors[].sourcestringrequired
needsReviewarray of objectrequired
needsReview[].pathstringrequired
needsReview[].lineinteger (≤ 9007199254740991)
needsReview[].rulestringrequired
needsReview[].expectedstringrequired
needsReview[].actualstringrequired
needsReview[].sourcestringrequired

Try it

dac7.validate

$0.15/seller

 

Response

Run the request to see the live response here.

Errors

Errors are JSON {"error":{"code","message"}}. An operation may add its own 400 codes; the message says what to fix.

StatusCode and meaning
400invalid_input

The body does not match the request schema. The message names each field.

400invalid_json

The body is missing or is not valid JSON.

400invalid_idempotency_key

Idempotency-Key must be 1–128 visible ASCII characters.

401invalid_api_key

The Bearer key is missing, malformed, invalid or inactive.

402free_allowance_exhausted

This month's free usage is used up and the account has no subscription. Subscribe from the dashboard, or wait for the next UTC month; Retry-After gives the seconds left.

404not_found

No operation at this path.

409idempotency_conflict

The Idempotency-Key was already used with a different body.

413payload_too_large

JSON bodies may be at most 64 KiB.

500internal_error

The call failed on our side. It is not billed; retry with the same Idempotency-Key.

JSON Schema

Request schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "profile": {
      "type": "string",
      "enum": [
        "eu",
        "ireland"
      ]
    },
    "xml": {
      "type": "string",
      "minLength": 1,
      "maxLength": 4194304
    },
    "history": {
      "maxItems": 20,
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 4194304
      }
    }
  },
  "required": [
    "profile",
    "xml"
  ],
  "additionalProperties": false,
  "examples": [
    {
      "profile": "eu",
      "xml": "<DPI_OECD xmlns=\"urn:oecd:ties:dpi:v1\" version=\"1.0\"><MessageSpec><TransmittingCountry>IE</TransmittingCountry><ReceivingCountry>FR</ReceivingCountry><MessageType>DPI</MessageType><MessageRefId>IE2026FR-NIL01</MessageRefId><MessageTypeIndic>DPI403</MessageTypeIndic><ReportingPeriod>2026-12-31</ReportingPeriod><Timestamp>2027-02-01T12:00:00</Timestamp></MessageSpec></DPI_OECD>",
      "history": []
    }
  ]
}
Response schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "valid": {
      "type": "boolean"
    },
    "profile": {
      "type": "string",
      "enum": [
        "eu",
        "ireland"
      ]
    },
    "xsd": {
      "type": "object",
      "properties": {
        "version": {
          "type": "string",
          "const": "1.0"
        },
        "source": {
          "type": "string"
        },
        "status": {
          "type": "string",
          "enum": [
            "passed",
            "failed",
            "not_run"
          ]
        }
      },
      "required": [
        "version",
        "source",
        "status"
      ],
      "additionalProperties": false
    },
    "reportableSellers": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    },
    "errors": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string"
          },
          "line": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "rule": {
            "type": "string"
          },
          "expected": {
            "type": "string"
          },
          "actual": {
            "type": "string"
          },
          "source": {
            "type": "string"
          }
        },
        "required": [
          "path",
          "rule",
          "expected",
          "actual",
          "source"
        ],
        "additionalProperties": false
      }
    },
    "needsReview": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string"
          },
          "line": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "rule": {
            "type": "string"
          },
          "expected": {
            "type": "string"
          },
          "actual": {
            "type": "string"
          },
          "source": {
            "type": "string"
          }
        },
        "required": [
          "path",
          "rule",
          "expected",
          "actual",
          "source"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "valid",
    "profile",
    "xsd",
    "reportableSellers",
    "errors",
    "needsReview"
  ],
  "additionalProperties": false
}