cfdi_parse
Parse a Mexican CFDI 4.0 invoice XML into JSON: UUID, issuer and receiver RFC, totals, taxes, line items and payment method. / Convierte un CFDI 4.0 de México a JSON. Paid via x402 ($0.01 USDC on Base mainnet (also Polygon, Arbitrum and Solana)) on this tools/call request. Official source and as-of date are in the JSON. Invalid input is rejected without payment.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"xml": "<xml>"
},
"name": "cfdi_parse"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| xml | Yes | Full CFDI 4.0 XML text (max 512 KiB). / Contenido completo del XML del CFDI. |