https://www.brainiac.software/api/v1/document-formats/en16931-invoice-validate$0.05 USDCValidate EN 16931 electronic invoices
Validate UBL or CII e-invoices against CEN EN 16931 artefacts 1.3.17 (and UBL 2.1 XSD).
Body
| Field | Required | Notes |
|---|---|---|
xml | No | string |
pdfBase64 | No | string |
syntax | No | string; One of: auto, ubl, cii; Default: "auto" |
Request exampleJSON
{
"xml": "<Invoice xmlns=\"urn:oasis:names:specification:ubl:schema:xsd:Invoice-2\"><cbc:ID>12115118</cbc:ID></Invoice>"
}Response exampleJSON
{
"valid": false,
"syntax": "UBL-Invoice",
"customizationId": "urn:cen.eu:en16931:2017",
"documentId": "12115118",
"xsd": {
"checked": true,
"errors": []
},
"rules": {
"artefactVersion": "1.3.17",
"fatal": [],
"warnings": []
},
"notes": [],
"sources": [
{
"source": "CEN/TC 434 EN 16931 validation artefacts 1.3.17 (EUPL 1.2)",
"url": "https://github.com/ConnectingEurope/eInvoicing-EN16931/releases/tag/validation-1.3.17",
"retrievedAt": "2026-10-12",
"status": "ok"
}
],
"limitations": [
"XSD + CEN business rules only; Peppol BIS / XRechnung / Factur-X profile rules are not applied."
]
}cURL
curl -i -X POST "https://www.brainiac.software/api/v1/document-formats/en16931-invoice-validate" \
-H 'content-type: application/json' \
-H 'Idempotency-Key: <fresh-64-character-random-hex-key>' \
--data-binary @- <<'JSON'
{
"xml": "<Invoice xmlns=\"urn:oasis:names:specification:ubl:schema:xsd:Invoice-2\"><cbc:ID>12115118</cbc:ID></Invoice>"
}
JSONhttps://www.brainiac.software/api/v1/document-formats/fhir-resource-validate$0.02 USDCValidate FHIR JSON resources
Validate a FHIR resource against the official HL7 JSON Schema for R4 or R5.
Body
| Field | Required | Notes |
|---|---|---|
resource | Yes | — |
version | No | string; One of: R4, R5; Default: "R4" |
Request exampleJSON
{
"version": "R4",
"resource": {
"resourceType": "Patient",
"id": "example",
"gender": "mail",
"birthDate": "1974-13-25",
"foo": 1
}
}Response exampleJSON
{
"valid": false,
"version": "R4",
"resourceType": "Patient",
"errors": [
{
"path": "gender",
"keyword": "enum",
"message": "must be equal to one of the allowed values"
}
],
"sources": [
{
"source": "HL7 FHIR JSON Schema R4",
"url": "https://hl7.org/fhir/R4/fhir.schema.json.zip",
"retrievedAt": "2026-11-14",
"status": "ok"
}
],
"limitations": [
"Schema validation only."
]
}cURL
curl -i -X POST "https://www.brainiac.software/api/v1/document-formats/fhir-resource-validate" \
-H 'content-type: application/json' \
-H 'Idempotency-Key: <fresh-64-character-random-hex-key>' \
--data-binary @- <<'JSON'
{
"version": "R4",
"resource": {
"resourceType": "Patient",
"id": "example",
"gender": "mail",
"birthDate": "1974-13-25",
"foo": 1
}
}
JSONhttps://www.brainiac.software/api/v1/document-formats/mrz-parse-checkdigits$0.01 USDCParse MRZ and verify check digits
Parse TD1/TD2/TD3 machine-readable zones and verify ICAO Doc 9303 check digits.
Body
| Field | Required | Notes |
|---|---|---|
mrz | Yes | — |
Request exampleJSON
{
"mrz": [
"P<UTOERIKSSON<<ANNA<MARIA<<<<<<<<<<<<<<<<<<<",
"L898902C36UTO7408122F1204159ZE184226B<<<<<10"
]
}Response exampleJSON
{
"format": "TD3",
"documentCode": "P<",
"issuingState": "UTO",
"surname": "ERIKSSON",
"givenNames": [
"ANNA",
"MARIA"
],
"documentNumber": "L898902C3",
"nationality": "UTO",
"birthDate": "740812",
"sex": "F",
"expiryDate": "120415",
"optionalData": [
"ZE184226B"
],
"checks": [
{
"field": "documentNumber",
"expected": "6",
"found": "6",
"valid": true
}
],
"valid": true,
"warnings": [],
"sources": [
{
"source": "ICAO Doc 9303 Eighth Edition 2021 (Parts 3–6)",
"url": "https://www.icao.int/publications/pages/publication.aspx?docnum=9303",
"retrievedAt": "2021-01-01",
"status": "ok"
}
],
"limitations": [
"Check-digit verification only."
]
}cURL
curl -i -X POST "https://www.brainiac.software/api/v1/document-formats/mrz-parse-checkdigits" \
-H 'content-type: application/json' \
-H 'Idempotency-Key: <fresh-64-character-random-hex-key>' \
--data-binary @- <<'JSON'
{
"mrz": [
"P<UTOERIKSSON<<ANNA<MARIA<<<<<<<<<<<<<<<<<<<",
"L898902C36UTO7408122F1204159ZE184226B<<<<<10"
]
}
JSONhttps://www.brainiac.software/api/v1/document-formats/epc-swiss-qr-bill-parse$0.02 USDCParse EPC GiroCode and Swiss QR-bill payloads
Parse SEPA EPC069-12 or Swiss QR-bill SPC text into structured payment fields.
Body
| Field | Required | Notes |
|---|---|---|
payload | Yes | string |
Request exampleJSON
{
"payload": "BCD\n001\n1\nSCT\nBHBLDEHHXXX\nFranz Mustermänn\nDE71110220330123456789\nEUR12.3\nGDDS\nRF18539007547034"
}Response exampleJSON
{
"type": "EPC",
"version": "001",
"characterSet": 1,
"bic": "BHBLDEHHXXX",
"name": "Franz Mustermänn",
"iban": "DE71110220330123456789",
"amount": {
"currency": "EUR",
"value": "12.30"
},
"purpose": "GDDS",
"remittance": {
"reference": "RF18539007547034"
},
"payloadBytes": 96,
"checks": [
{
"field": "iban",
"valid": true
},
{
"field": "reference",
"valid": true
}
],
"valid": true,
"sources": [
{
"source": "EPC069-12 Quick Response Code guidelines v3.1",
"url": "https://www.europeanpaymentscouncil.eu/",
"retrievedAt": "2024-03-19",
"status": "ok"
}
],
"limitations": [
"Parses EPC SCT QR text only; does not initiate a payment."
]
}cURL
curl -i -X POST "https://www.brainiac.software/api/v1/document-formats/epc-swiss-qr-bill-parse" \
-H 'content-type: application/json' \
-H 'Idempotency-Key: <fresh-64-character-random-hex-key>' \
--data-binary @- <<'JSON'
{
"payload": "BCD\n001\n1\nSCT\nBHBLDEHHXXX\nFranz Mustermänn\nDE71110220330123456789\nEUR12.3\nGDDS\nRF18539007547034"
}
JSONhttps://www.brainiac.software/api/v1/document-formats/pdf-table-extract$0.04 USDCExtract tables from a text PDF
Extract bordered or whitespace-aligned tables from a caller-supplied PDF (no OCR).
Body
| Field | Required | Notes |
|---|---|---|
pdfBase64 | Yes | string |
pages | No | array; Array |
mode | No | string; One of: auto, lattice, stream; Default: "auto" |
Request exampleJSON
{
"pdfBase64": "JVBERi0xLjQKJeLjz9MKMyAwIG9iago8PC9UeXBlL1BhZ2UvUGFyZW50IDEgMCBSL01lZGlhQm94WzAgMCA0MDAgMzAwXT4+CmVuZG9iago="
}Response exampleJSON
{
"pageCount": 1,
"tables": [
{
"page": 1,
"mode": "lattice",
"rows": [
[
"Date",
"Description",
"…"
]
],
"merged": []
}
],
"pagesWithoutText": [],
"sources": [
{
"source": "Caller-supplied document processed locally",
"url": "https://www.brainiac.software/api/v1/document-formats",
"retrievedAt": "2026-11-14",
"status": "ok"
}
],
"limitations": [
"Text-layer extraction only; no OCR."
]
}cURL
curl -i -X POST "https://www.brainiac.software/api/v1/document-formats/pdf-table-extract" \
-H 'content-type: application/json' \
-H 'Idempotency-Key: <fresh-64-character-random-hex-key>' \
--data-binary @- <<'JSON'
{
"pdfBase64": "JVBERi0xLjQKJeLjz9MKMyAwIG9iago8PC9UeXBlL1BhZ2UvUGFyZW50IDEgMCBSL01lZGlhQm94WzAgMCA0MDAgMzAwXT4+CmVuZG9iago="
}
JSONhttps://www.brainiac.software/api/v1/document-formats/barcode-decode$0.03 USDCDecode barcodes from an image
Decode 1D/2D barcodes (QR, Data Matrix, PDF417, Code 128, EAN, …) from a PNG/JPEG/WebP/GIF.
Body
| Field | Required | Notes |
|---|---|---|
imageBase64 | Yes | string |
formats | No | array; Array |
tryHarder | No | boolean; Default: true |
maxResults | No | integer; Default: 10 |
Request exampleJSON
{
"imageBase64": "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8z8BQDwAEhQGAhKmMIQAAAABJRU5ErkJggg=="
}Response exampleJSON
{
"count": 1,
"results": [
{
"format": "QRCode",
"text": "BCD\n001\n1\nSCT\n…",
"contentType": "Text"
}
],
"sources": [
{
"source": "zxing-cpp via zxing-wasm (MIT / Apache-2.0)",
"url": "https://github.com/Sec-ant/zxing-wasm",
"retrievedAt": "2026-11-14",
"status": "ok"
}
],
"limitations": [
"Decode only; payment QR parsing is document-formats.epc-swiss-qr-bill-parse."
]
}cURL
curl -i -X POST "https://www.brainiac.software/api/v1/document-formats/barcode-decode" \
-H 'content-type: application/json' \
-H 'Idempotency-Key: <fresh-64-character-random-hex-key>' \
--data-binary @- <<'JSON'
{
"imageBase64": "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8z8BQDwAEhQGAhKmMIQAAAABJRU5ErkJggg=="
}
JSON