> ## Documentation Index
> Fetch the complete documentation index at: https://docs.oxanaut.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Download an invoice as PDF (Pennylane document)



## OpenAPI

````yaml /openapi.json get /v1/billing/invoices/{id}/pdf
openapi: 3.0.0
info:
  title: OneSubnet Core API
  description: >-
    OneSubnet hosting panel API. Toutes les routes sont préfixées par /v1/
    (versioning URI). Les routes Panel sont appelées par le daemon Wings, pas
    par les clients. Les routes Admin nécessitent le rôle admin.
  version: '1.0'
  contact: {}
servers: []
security: []
tags:
  - name: Auth & Users
    description: Authentification, profil, gestion utilisateurs
  - name: Store
    description: 'Boutique: catégories, produits, panier'
  - name: Billing
    description: Facturation, checkout Stripe, webhooks
  - name: Services
    description: Services hébergés (enregistrements facturation)
  - name: Affiliation
    description: Parrainage et commissions
  - name: Notifications
    description: Notifications
  - name: Admin - RBAC
    description: Gestion des rôles, permissions, groupes
  - name: Admin - Store & Invoices
    description: CRUD produits, plans, coupons, factures
  - name: Admin - Settings & Tenants
    description: Configuration, multi-tenant, whitelabel
  - name: Admin - Audit
    description: Journal d'audit des requêtes
  - name: System
    description: Health, meta-info
paths:
  /v1/billing/invoices/{id}/pdf:
    get:
      tags:
        - Billing
      summary: Download an invoice as PDF (Pennylane document)
      operationId: BillingController_downloadInvoicePdf_v1
      parameters:
        - name: id
          required: true
          in: path
          schema:
            type: string
      responses:
        '200':
          description: ''
      security:
        - bearer: []
components:
  securitySchemes:
    bearer:
      scheme: bearer
      bearerFormat: JWT
      type: http

````

## Related topics

- [Preview a sample invoice PDF from current settings](/api-reference/admin--settings-&-tenants/preview-a-sample-invoice-pdf-from-current-settings.md)
- [Backfill all local invoices into Pennylane (idempotent)](/api-reference/admin--settings-&-tenants/backfill-all-local-invoices-into-pennylane-idempotent.md)
- [Import all PennyLane invoices into local DB (idempotent)](/api-reference/admin--settings-&-tenants/import-all-pennylane-invoices-into-local-db-idempotent.md)
- [Documentation Oxanaut](/index.md)
- [Test the Pennylane connection (read-only)](/api-reference/admin--settings-&-tenants/test-the-pennylane-connection-read-only.md)
