# 📦 Download invoice as UBL 2.1 XML

Download as UBL 2.1 XML (Peppol BIS 3.0). Returns original file if submitted as UBL.

Endpoint: GET /invoicing/invoices/{invoice_id}/ubl
Version: 0.29.6
Security: APIKeyHeader

## Path parameters:

  - `invoice_id` (string, required)

## Header parameters:

  - `X-PDP-Client-Id` (string, required)
    ID of the PDP Client for which the operation is performed

## Response 422 fields (application/json):

  - `type` (string, required)
    Enum: "problems/invoice/error", "problems/invoice/invalid-xml", "problems/invoice/unresolvable-type", "problems/invoice/parsing-error", "problems/invoice/unknown-type", "problems/invoice/generation-error", "problems/invoice/type-not-supported-by-france", "problems/invoice/not-peppol-routable", "problems/invoice/xsd-validation-error", "problems/invoice/schematron-validation-error", "problems/invoice/vat-rate-not-applicable"

  - `type_url` (string)
    Absolute URL resolving to problem type documentation

  - `warnings` (array)
    Non-blocking warnings

  - `errors` (array, required)
    Error details - multiple items for validation errors, single item otherwise

