Valinvo Validation API

Validate existing e-invoices.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 1

POST /v1/validate Validate an e-invoice #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/valinvo-bmk-hub-com:valinvo-bmk-hub-com-validation-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

valinvo-bmk-hub-com-validation-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Valinvo Validation API
  version: 1.0.0-beta
  description: 'Valinvo turns one JSON invoice (based on the EN 16931 semantic model) into an XRechnung 3.0.2 (UBL or CII), Peppol BIS Billing 3.0.22 or ZUGFeRD 2.5.2 / Factur-X 1.09.2 (EN 16931 profile; also with the French rules for the French reform, beta) e-invoice, and validates existing e-invoices against the official rule sets. Status: beta.


    **Terms.** The API is for businesses only and is subject to the Terms of Use and the Data Processing Agreement. Without an API key, accept them by sending `X-Accept-Terms: 1.0` (the current version) with each request; requests without it get `428 terms_not_accepted`. Every `/v1/` response links the terms in a `Link: ; rel="terms-of-service"` header. The trial without a key is for testing: use sample data, not real invoices with other people''s personal data.


    **Limits.** Without a key: 2 created invoices per day per IP address, one request at a time, 60 `/v1/invoices` and 20 `/v1/validate` requests per minute. Invoice JSON up to 2 MB and 2,000 lines; your own PDF up to 15 MB; documents to validate up to 20 MB and 75,000 XML elements.


    **Money.** Amounts, quantities and VAT rates are JSON strings (`"19.99"`), never numbers.


    **Errors.** Every error is a JSON `ApiError` with a stable `code`; invoice problems list the JSON path, the official rule and the EN 16931 business term. Unknown paths get 404 with `not_found`.'
  termsOfService: https://valinvo.bmk-hub.com/terms
  contact:
    name: Valinvo (BMK HUB)
    url: https://valinvo.bmk-hub.com/contact
    email: hello@bmk-hub.com
servers:
- url: https://valinvo.bmk-hub.com
tags:
- name: Validation
  description: Validate existing e-invoices.
paths:
  /v1/validate:
    post:
      tags:
      - Validation
      operationId: validateInvoice
      summary: Validate an e-invoice
      description: 'Validates an e-invoice against the official rules (XML schema and Schematron). Send the XML, or a ZUGFeRD / Factur-X PDF: then the invoice XML embedded in the PDF (`factur-x.xml`, `zugferd-invoice.xml` or `xrechnung.xml`) is checked, plus the PDF itself against PDF/A-3 (veraPDF; rule IDs like `PDF/A-3 6.2.11.4.1-1`) and its XMP metadata against the XML (profile and attachment name; rule IDs `ZF-XMP-…`). The `ruleSet` then names both, e.g. `zugferd-2.5.2-en16931+pdf-a-3b`. The rule set is detected from the document: XRechnung 3.0 (UBL Invoice, UBL CreditNote, CII), Peppol BIS Billing 3.0 (UBL Invoice, UBL CreditNote) and ZUGFeRD 2.x / Factur-X in CII with the profiles MINIMUM, BASIC WL, BASIC, EN 16931 and EXTENDED (checked against the ZUGFeRD 2.5.2 rules). French invoices, including EXTENDED-CTC-FR in CII and UBL, also get the French BR-FR rules. An invalid invoice is a normal `200` result with `valid: false` and the list of errors.'
      security:
      - apiKey: []
      - acceptTerms: []
      requestBody:
        required: true
        content:
          application/xml:
            schema:
              type: string
              format: binary
          application/pdf:
            schema:
              type: string
              format: binary
      responses:
        '200':
          description: The validation report.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationReport'
              example:
                ruleSet: peppol-bis-3.0.22-ubl-invoice
                valid: true
                errors: []
                warnings: []
        '400':
          description: '`invalid_xml` (not well-formed), `unsupported_document` (not an invoice or credit note in a supported format), `invalid_pdf` (unreadable or password-protected PDF), `no_embedded_invoice` (a PDF without a `factur-x.xml`, `zugferd-invoice.xml` or `xrechnung.xml` attachment) or `bad_request`.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '401':
          $ref: '#/components/responses/InvalidApiKey'
        '413':
          description: '`payload_too_large` (larger than 20 MB) or `document_too_large` (more than 75,000 XML elements, about 3,000 invoice lines, or an embedded invoice XML larger than 20 MB).'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '428':
          $ref: '#/components/responses/TermsNotAccepted'
        '429':
          description: '`one_request_at_a_time` (without a key) or `rate_limited`.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '500':
          $ref: '#/components/responses/InternalError'
        '503':
          $ref: '#/components/responses/Busy'
components:
  responses:
    TermsNotAccepted:
      description: '`terms_not_accepted`: without an API key, send `X-Accept-Terms: 1.0`.'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
    InvalidApiKey:
      description: '`invalid_api_key`: the `Authorization` header is not a valid `Bearer` key.'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
    Busy:
      description: '`busy`: the server is busy; try again after `Retry-After` seconds.'
      headers:
        Retry-After:
          schema:
            type: integer
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
    InternalError:
      description: '`internal_error`: something went wrong on our side.'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
  schemas:
    ValidationReport:
      type: object
      required:
      - ruleSet
      - valid
      - errors
      - warnings
      properties:
        ruleSet:
          type: string
          description: The rules applied, e.g. `xrechnung-3.0.2-ubl-invoice`.
        valid:
          type: boolean
          description: True when there are no errors; warnings don't make an invoice invalid.
        errors:
          type: array
          items:
            $ref: '#/components/schemas/ValidationIssue'
        warnings:
          type: array
          items:
            $ref: '#/components/schemas/ValidationIssue'
    ApiError:
      type: object
      required:
      - code
      - message
      properties:
        code:
          type: string
          description: Stable machine-readable error code, e.g. `invalid_invoice`.
          example: invalid_invoice
        message:
          type: string
          description: What went wrong and how to fix it, in English.
        problems:
          type: array
          items:
            $ref: '#/components/schemas/Problem'
          description: 'For `invalid_invoice` and other input errors: every problem at once.'
        validation:
          $ref: '#/components/schemas/ValidationReport'
    ValidationIssue:
      type: object
      required:
      - message
      properties:
        rule:
          type: string
          description: Official rule ID, e.g. `BR-DE-15`; absent for XML schema errors.
        message:
          type: string
          description: The rule's message as published with the official rules.
        location:
          type: string
          description: XPath of the offending element for rule errors; XML schema errors carry only the document name.
        line:
          type: integer
          description: 'Line in the XML (for a PDF: in the embedded XML), where the element''s start tag ends. Absent when unknown, and for checks of the PDF itself.'
        column:
          type: integer
          description: Column in the XML, with `line`.
        explanation:
          type: string
          description: Our own English for rules whose official `message` exists only in German (XRechnung's `BR-DE-…`). Not an official text.
    Problem:
      type: object
      required:
      - path
      - message
      properties:
        path:
          type: string
          description: JSON path in the request body, e.g. `invoice.lines[0].vat.rate`.
          example: invoice.lines[0].vat.rate
        message:
          type: string
        rule:
          type: string
          description: EN 16931 or national business rule, e.g. `BR-S-05`, when one applies.
        businessTerm:
          type: string
          description: EN 16931 business term, e.g. `BT-152`, when one applies.
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      description: 'Beta API key, sent as `Authorization: Bearer <key>`. Removes the daily trial limit. Write to hello@bmk-hub.com for one.'
    acceptTerms:
      type: apiKey
      in: header
      name: X-Accept-Terms
      description: 'Without an API key: the version of the Terms of Use you accept, currently `1.0`.'
externalDocs:
  description: Quickstart with curl examples
  url: https://valinvo.bmk-hub.com/quickstart