---
updatedAt: 2026-07-20T11:47:41.000Z
agentTools:
  projectIndex: https://docs.falco-app.be/llms.txt
---

# Validates a UBL document against Peppol BIS Billing 3.0 or Peppol BIS Self-Billing 3.0 and Falco API rules

Required scopes: `invoices:ingest:ubl`
This request is heavily rate limited and should not be used to validate documents in production. It is intended to be used for debugging purposes.


# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "PDF & UBL Imports",
    "version": "1.0.0",
    "description": "`X-Falco-App-Secret` + `X-Falco-Api-Key`.\n"
  },
  "servers": [
    {
      "url": "https://api.falco-app.be/v1",
      "description": "Production"
    },
    {
      "url": "https://api.sandbox.falco-app.be/v1",
      "description": "Sandbox"
    }
  ],
  "security": [
    {
      "ApiKeyAuth": []
    }
  ],
  "components": {
    "securitySchemes": {
      "ApiKeyAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "X-Falco-App-Secret",
        "description": "`X-Falco-App-Secret`: Falco Application Secret associated to your application. Use together with the `X-Falco-Api-Key` header.",
        "x-scopes": [
          "articles:read",
          "articles:write",
          "customers:read",
          "customers:write",
          "invoices:read",
          "invoices:write",
          "invoices:attachments:read",
          "invoices:attachments:write",
          "invoices:send",
          "invoices:ingest:ubl",
          "invoices:ingest:pdf",
          "peppol:inbound:read",
          "peppol:participants:read"
        ]
      }
    },
    "schemas": {
      "Problem": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "format": "uri"
          },
          "title": {
            "type": "string"
          },
          "status": {
            "type": "integer"
          },
          "code": {
            "type": "string"
          },
          "detail": {
            "type": "string"
          },
          "instance": {
            "type": "string"
          },
          "trace_id": {
            "type": "string"
          }
        }
      }
    }
  },
  "paths": {
    "/invoices/imports/validate-ubl": {
      "post": {
        "summary": "Validates a UBL document against Peppol BIS Billing 3.0 or Peppol BIS Self-Billing 3.0 and Falco API rules",
        "tags": [
          "Imports"
        ],
        "description": "Required scopes: `invoices:ingest:ubl`\nThis request is heavily rate limited and should not be used to validate documents in production. It is intended to be used for debugging purposes.\n",
        "parameters": [
          {
            "name": "X-Falco-Api-Key",
            "in": "header",
            "required": true,
            "description": "Falco Api Key (provided by the client - required in addition to X-Falco-App-Secret).",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "file": {
                    "type": "string",
                    "format": "binary",
                    "description": "The file to validate.\n"
                  }
                }
              },
              "encoding": {
                "file": {
                  "contentType": "application/xml"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The validation result. This request is heavily rate limited and should not be used to validate documents in production. It is intended to be used for debugging purposes.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string",
                      "description": "The overall validation status of the submitted document",
                      "enum": [
                        "success",
                        "warning",
                        "failure",
                        "sender_error"
                      ]
                    },
                    "lines": {
                      "type": "array",
                      "description": "The list of issues that validation brought to light.",
                      "items": {
                        "type": "object",
                        "properties": {
                          "status": {
                            "type": "string",
                            "description": "The severeness of the issue for this validation",
                            "enum": [
                              "warning",
                              "failure",
                              "sender_error"
                            ]
                          },
                          "line_id": {
                            "type": "string",
                            "description": "The location in the document where the error or warning occurred (usually a [line][column] location or an XPath expression)."
                          },
                          "description": {
                            "type": "string",
                            "description": "A human-readable description of the validation error or warning"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "default": {
            "description": "Error (RFC 9457)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    }
  }
}
```