Tax & e-invoicingEU CESOP payment data
cesop.validate
Check CESOP Payment Data XML 4.03 against the official XSD and stateless rules from the DG TAXUD Validation Module 1.7.1. $0.45 per started 1,000 transactions, minimum one unit for processable XML. The module is available under the CESOP EULA 1.0 with the original distribution at https://taxation-customs.ec.europa.eu/document/download/40729317-f4f7-4a80-92b7-646bf1ca387b_en?filename=CESOP+Validation+Module+v1.7.1+User+Manual+v6.00.zip.
https://api.kanagu.dev/v1/cesop/validate- Price
- $0.45 per 1,000 transactions, on successful calls only
- Authentication
- API key required.
- MCP
call_operationwithoperation: "cesop.validate"athttps://api.kanagu.dev/mcp- Markdown
- /docs/cesop.validate.md
Compliance coverage
- Jurisdictions
- Jurisdictions: EU
- Standards
- Council Directive 2006/112/ECVAT territory, Articles 5–72025-04-14Source
- Council Directive (EU) 2020/284Articles 243a–243d2020-02-18Source
- Commission Implementing Regulation (EU) 2022/1504Annex2022-04-06Source
- DG TAXUD CESOP Reporting Guidelines1.22025-06-18Source
- CESOP PaymentData, common types and ISO code listsXSD 4.03 / User Guide 6.002024-11-08Source
- European Commission CESOP Validation Module1.7.1 / User Manual 6.002025-10-20Source
- Verification
- Payment Data XML is checked against the official CESOP 4.03 XSD and the Commission's stateless rules in Validation Module 1.7.1.
- Last reviewed
- 2026-11-26
curl https://api.kanagu.dev/v1/cesop/validate \
-H "Authorization: Bearer $KANAGU_KEY" \
-H "Content-Type: application/json" \
-d '{"xml":"<?xml version=\"1.0\" encoding=\"UTF-8\"?><CESOP version=\"4.03\" xmlns=\"urn:ec.europa.eu:taxud:fiscalis:cesop:v1\"><MessageSpec><TransmittingCountry>DE</TransmittingCountry><MessageType>PMT</MessageType><MessageTypeIndic>CESOP102</MessageTypeIndic><MessageRefId>4093e599-ce2e-40e9-9a8b-7c10aa94f729</MessageRefId><ReportingPeriod><Quarter>3</Quarter><Year>2026</Year></ReportingPeriod><Timestamp>2026-10-15T09:00:00Z</Timestamp></MessageSpec><PaymentDataBody><ReportingPSP><PSPId PSPIdType=\"BIC\">DEUTDEFF</PSPId></ReportingPSP></PaymentDataBody></CESOP>"}'const res = await fetch("https://api.kanagu.dev/v1/cesop/validate", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.KANAGU_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"xml": "<?xml version=\"1.0\" encoding=\"UTF-8\"?><CESOP version=\"4.03\" xmlns=\"urn:ec.europa.eu:taxud:fiscalis:cesop:v1\"><MessageSpec><TransmittingCountry>DE</TransmittingCountry><MessageType>PMT</MessageType><MessageTypeIndic>CESOP102</MessageTypeIndic><MessageRefId>4093e599-ce2e-40e9-9a8b-7c10aa94f729</MessageRefId><ReportingPeriod><Quarter>3</Quarter><Year>2026</Year></ReportingPeriod><Timestamp>2026-10-15T09:00:00Z</Timestamp></MessageSpec><PaymentDataBody><ReportingPSP><PSPId PSPIdType=\"BIC\">DEUTDEFF</PSPId></ReportingPSP></PaymentDataBody></CESOP>"
}),
});
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":"cesop.validate","input":{"xml":"<?xml version=\"1.0\" encoding=\"UTF-8\"?><CESOP version=\"4.03\" xmlns=\"urn:ec.europa.eu:taxud:fiscalis:cesop:v1\"><MessageSpec><TransmittingCountry>DE</TransmittingCountry><MessageType>PMT</MessageType><MessageTypeIndic>CESOP102</MessageTypeIndic><MessageRefId>4093e599-ce2e-40e9-9a8b-7c10aa94f729</MessageRefId><ReportingPeriod><Quarter>3</Quarter><Year>2026</Year></ReportingPeriod><Timestamp>2026-10-15T09:00:00Z</Timestamp></MessageSpec><PaymentDataBody><ReportingPSP><PSPId PSPIdType=\"BIC\">DEUTDEFF</PSPId></ReportingPSP></PaymentDataBody></CESOP>"}}}}'{
"xml": "<?xml version=\"1.0\" encoding=\"UTF-8\"?><CESOP version=\"4.03\" xmlns=\"urn:ec.europa.eu:taxud:fiscalis:cesop:v1\"><MessageSpec><TransmittingCountry>DE</TransmittingCountry><MessageType>PMT</MessageType><MessageTypeIndic>CESOP102</MessageTypeIndic><MessageRefId>4093e599-ce2e-40e9-9a8b-7c10aa94f729</MessageRefId><ReportingPeriod><Quarter>3</Quarter><Year>2026</Year></ReportingPeriod><Timestamp>2026-10-15T09:00:00Z</Timestamp></MessageSpec><PaymentDataBody><ReportingPSP><PSPId PSPIdType=\"BIC\">DEUTDEFF</PSPId></ReportingPSP></PaymentDataBody></CESOP>"
}Request body
application/json
xmlstring (max 16777216 chars)required
Response
200 · application/json
validbooleanrequiredschemaVersion"4.03"requiredmoduleVersion"1.7.1"requiredprocessablebooleanrequired- The validator could process the XML and check its schema.
xsd"passed" | "failed"requiredstatelessRules"passed" | "failed" | "not_checked"requiredtransactionCountinteger (0 to 10000)requiredfindingsarray of objectrequiredfindings[].rulestringrequiredfindings[].pathstringrequiredfindings[].expectedstringrequiredfindings[].actualstringrequiredfindings[].sourcestring (uri)requiredfindings[].lineinteger (≤ 9007199254740991)findings[].columninteger (0 to 9007199254740991)findings[].occurrencesinteger (≤ 9007199254740991)findings[].docRefIdstringfindings[].transactionIdstring
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": {
"xml": {
"type": "string",
"minLength": 1,
"maxLength": 16777216
}
},
"required": [
"xml"
],
"additionalProperties": false,
"examples": [
{
"xml": "<?xml version=\"1.0\" encoding=\"UTF-8\"?><CESOP version=\"4.03\" xmlns=\"urn:ec.europa.eu:taxud:fiscalis:cesop:v1\"><MessageSpec><TransmittingCountry>DE</TransmittingCountry><MessageType>PMT</MessageType><MessageTypeIndic>CESOP102</MessageTypeIndic><MessageRefId>4093e599-ce2e-40e9-9a8b-7c10aa94f729</MessageRefId><ReportingPeriod><Quarter>3</Quarter><Year>2026</Year></ReportingPeriod><Timestamp>2026-10-15T09:00:00Z</Timestamp></MessageSpec><PaymentDataBody><ReportingPSP><PSPId PSPIdType=\"BIC\">DEUTDEFF</PSPId></ReportingPSP></PaymentDataBody></CESOP>"
}
]
}Response schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"valid": {
"type": "boolean"
},
"schemaVersion": {
"type": "string",
"const": "4.03"
},
"moduleVersion": {
"type": "string",
"const": "1.7.1"
},
"processable": {
"type": "boolean",
"description": "The validator could process the XML and check its schema."
},
"xsd": {
"type": "string",
"enum": [
"passed",
"failed"
]
},
"statelessRules": {
"type": "string",
"enum": [
"passed",
"failed",
"not_checked"
]
},
"transactionCount": {
"type": "integer",
"minimum": 0,
"maximum": 10000
},
"findings": {
"type": "array",
"items": {
"type": "object",
"properties": {
"rule": {
"type": "string"
},
"path": {
"type": "string"
},
"expected": {
"type": "string"
},
"actual": {
"type": "string"
},
"source": {
"type": "string",
"format": "uri"
},
"line": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"column": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"occurrences": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"docRefId": {
"type": "string"
},
"transactionId": {
"type": "string"
}
},
"required": [
"rule",
"path",
"expected",
"actual",
"source"
],
"additionalProperties": false
}
}
},
"required": [
"valid",
"schemaVersion",
"moduleVersion",
"processable",
"xsd",
"statelessRules",
"transactionCount",
"findings"
],
"additionalProperties": false
}