GetbeelDocs

Validate a FatturaPA XML without sending it

Validates locally against the official FatturaPA XSD (v1.2.3) and the SDI content controls of Allegato A v1.9.1 (Appendice 1) that depend on the file alone, the same check that runs before every send (no SDI call, nothing stored). Errors carry the AdE code and wording (00200 for XSD errors, with the line). Not checked: signatures, AdE registries (partita IVA, codice destinatario), duplicates. Returns 200 with `valid` and `errors` for any FatturaPA document; 413 above 5 MB.

POST
/invoices/validate

Validates locally against the official FatturaPA XSD (v1.2.3) and the SDI content controls of Allegato A v1.9.1 (Appendice 1) that depend on the file alone, the same check that runs before every send (no SDI call, nothing stored). Errors carry the AdE code and wording (00200 for XSD errors, with the line). Not checked: signatures, AdE registries (partita IVA, codice destinatario), duplicates. Returns 200 with valid and errors for any FatturaPA document; 413 above 5 MB.

Authorization

apiKey
headerAuthorizationBearer <token>

API key: gb_test_… or gb_live_…

Header Parameters

Getbeel-Company?string

Act on one of the account's client companies (its id from GET /companies) instead of the key's own account. 404 company_not_found when the key cannot act on it.

Formatuuid

Request Body

body*string

Response Body

OK

application/json
  1. response
object*string
valid*boolean
tipo_documento*string|null
errors*array<>
checks*array<string>

Checks that ran

Example Request
curl -X POST 'https://www.getbeel.com/api/v1/invoices/validate' \  -H 'Content-Type: application/json' \  -d '{  "xml": "string"}'
Example Response
{  "object": "validation_result",  "valid": true,  "tipo_documento": "string",  "errors": [    {      "code": "00200",      "message": "string",      "line": -9007199254740991    }  ],  "checks": [    "structure",    "xsd",    "business_rules"  ]}