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.
https://api.kanagu.dev/v1/dac7/validate- Price
- $0.15 per seller, on successful calls only
- Authentication
- API key required.
- MCP
call_operationwithoperation: "dac7.validate"athttps://api.kanagu.dev/mcp- Markdown
- /docs/dac7.validate.md
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":[]}}}}'{
"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"requiredxmlstring (max 4194304 chars)requiredhistoryarray of string (max 4194304 chars)
Response
200 · application/json
validbooleanrequiredprofile"eu" | "ireland"requiredxsdobjectrequiredxsd.version"1.0"requiredxsd.sourcestringrequiredxsd.status"passed" | "failed" | "not_run"requiredreportableSellersinteger (0 to 9007199254740991)requirederrorsarray of objectrequirederrors[].pathstringrequirederrors[].lineinteger (≤ 9007199254740991)errors[].rulestringrequirederrors[].expectedstringrequirederrors[].actualstringrequirederrors[].sourcestringrequiredneedsReviewarray of objectrequiredneedsReview[].pathstringrequiredneedsReview[].lineinteger (≤ 9007199254740991)needsReview[].rulestringrequiredneedsReview[].expectedstringrequiredneedsReview[].actualstringrequiredneedsReview[].sourcestringrequired
Try it
Errors
Errors are JSON {"error":{"code","message"}}. An operation may add its own 400 codes; the message says what to fix.
| Status | Code and meaning |
|---|---|
| 400 | invalid_inputThe body does not match the request schema. The message names each field. |
| 400 | invalid_jsonThe body is missing or is not valid JSON. |
| 400 | invalid_idempotency_keyIdempotency-Key must be 1–128 visible ASCII characters. |
| 401 | invalid_api_keyThe Bearer key is missing, malformed, invalid or inactive. |
| 402 | free_allowance_exhaustedThis 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. |
| 404 | not_foundNo operation at this path. |
| 409 | idempotency_conflictThe Idempotency-Key was already used with a different body. |
| 413 | payload_too_largeJSON bodies may be at most 64 KiB. |
| 500 | internal_errorThe 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
}