SEPA XML Validation
Validate SEPA XML files (pain.001 credit transfers and pain.008 direct debits): structure, IBANs, BICs, amounts and transaction counts.
Pay by wallet (x402)
sepa-xml-validate Example
Example answer
{
"valid": false,
"debtor": {
"bic": null,
"iban": null,
"name": null
},
"errors": [
{
"path": "Document/@xmlns",
"message": "Missing or invalid SEPA namespace. Expected urn:iso:std:iso:20022:tech:xsd:pain.001.001.03 or pain.008.001.02."
},
{
"path": "Document",
"message": "Cannot determine SEPA message type. Expected pain.001 (credit transfer) or pain.008 (direct debit)."
},
{
"path": "GrpHdr/MsgId",
"message": "Missing MsgId (Message Identification)."
},
{
"path": "GrpHdr/CreDtTm",
"message": "Missing CreDtTm (Creation Date Time)."
},
{
"path": "GrpHdr/NbOfTxs",
"message": "Missing NbOfTxs (Number of Transactions)."
},
{
"path": "PmtInf",
"message": "No PmtInf (Payment Information) blocks found."
}
],
"schema": null,
"currency": "EUR",
"warnings": [],
"message_id": null,
"message_type": null,
"total_amount": 0,
"creation_date": null,
"payment_count": 0,
"creditor_count": 0
} Inputs
| Field | Type | Required | What it is |
|---|---|---|---|
xml | string | Yes | SEPA XML string |
Output fields
How reliably each field appears in a successful answer.
| Field | Type | Appears |
|---|---|---|
valid | boolean | Always (present in every successful answer) |
errors | array | Always (present in every successful answer) |
message_type | string | Always (present in every successful answer) |
total_amount | number | Always (present in every successful answer) |
payment_count | number | Always (present in every successful answer) |
How to call it
The same tool through each route. MCP clients reach it through Strale’s server at https://api.strale.io/mcp; the call below is what the agent sends.
# Needs an API key. max_price_cents caps what this call may cost.
curl -X POST https://api.strale.io/v1/do \
-H "Authorization: Bearer $STRALE_API_KEY" \
-H 'Content-Type: application/json' \
-d '{
"capability_slug": "sepa-xml-validate",
"inputs": {
"xml": "<root><item>test</item></root>"
},
"max_price_cents": 2
}' {
"tool": "strale_execute",
"arguments": {
"slug": "sepa-xml-validate",
"inputs": {
"xml": "<root><item>test</item></root>"
},
"max_price_cents": 2
}
} import { Strale } from "straleio";
const strale = new Strale({ apiKey: process.env.STRALE_API_KEY! });
const result = await strale.do({
capability_slug: "sepa-xml-validate",
inputs: {
"xml": "<root><item>test</item></root>"
},
max_price_cents: 2,
}); import os
from straleio import Strale, DoRequest
strale = Strale(api_key=os.environ["STRALE_API_KEY"])
result = strale.do(DoRequest(
capability_slug="sepa-xml-validate",
inputs={
"xml": "<root><item>test</item></root>",
},
max_price_cents=2,
)) # No account. The first request answers 402 with the price in USDC;
# an x402 client pays it from your wallet and repeats the request.
curl -i 'https://api.strale.io/x402/v2/sepa-xml-validate?xml=%3Croot%3E%3Citem%3Etest%3C%2Fitem%3E%3C%2Froot%3E' Limitations
Bank-specific XML extensions are not checked
Validates against standard SEPA XML schemas (pain.001, pain.002) — bank-specific extensions or proprietary formats are not checked
What to do instead: Submit a test file to your bank's validation endpoint to verify compatibility with their specific SEPA implementation
Related tools
- Address Validation €0.03
- Age Check €0.02
- Bank BIC Lookup €0.05
- Bulk Email Validation €0.15
- Business Day Check €0.02
- Company ID Detection €0.05