Skip to content

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.

POSThttps://api.kanagu.dev/v1/cesop/validate
Price
$0.45 per 1,000 transactions, on successful calls only
Authentication
API key required.
MCP
call_operation with operation: "cesop.validate" at https://api.kanagu.dev/mcp

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>"}}}}'
Request body
{
  "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

validbooleanrequired
schemaVersion"4.03"required
moduleVersion"1.7.1"required
processablebooleanrequired
The validator could process the XML and check its schema.
xsd"passed" | "failed"required
statelessRules"passed" | "failed" | "not_checked"required
transactionCountinteger (0 to 10000)required
findingsarray of objectrequired
findings[].rulestringrequired
findings[].pathstringrequired
findings[].expectedstringrequired
findings[].actualstringrequired
findings[].sourcestring (uri)required
findings[].lineinteger (≤ 9007199254740991)
findings[].columninteger (0 to 9007199254740991)
findings[].occurrencesinteger (≤ 9007199254740991)
findings[].docRefIdstring
findings[].transactionIdstring

Try it

cesop.validate

$0.45/1,000 transactions

 

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": {
    "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
}