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

# Retrieve an invoice

> Returns one invoice with its lines and the links to pay it or download its PDF. An invoice of another organization returns 404. Requires the `manage:read` scope.



## OpenAPI

````yaml https://api.edenai.run/v2/info/splitted-schema/management_api/openapi.json get /v3/manage/billing/invoices/{invoice_id}/
openapi: 3.0.3
info:
  title: Organization Management
  version: '2.0'
  description: Your project description
servers:
  - url: https://api.edenai.run
security: []
paths:
  /v3/manage/billing/invoices/{invoice_id}/:
    get:
      tags:
        - Billing
      summary: Retrieve an invoice
      description: >-
        Returns one invoice with its lines and the links to pay it or download
        its PDF. An invoice of another organization returns 404. Requires the
        `manage:read` scope.
      operationId: manage_billing_invoices_retrieve
      parameters:
        - in: path
          name: invoice_id
          schema:
            type: string
          description: The invoice's id, as the invoice list returns it.
          required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostpaidInvoiceDetail'
          description: ''
      security:
        - ManagementKeyAuth: []
components:
  schemas:
    PostpaidInvoiceDetail:
      type: object
      description: |-
        Detail payload — extends the list serializer with the Stripe-hosted
        invoice / PDF URLs and the invoice lines (usage, credit applied, fees),
        fetched on demand from Stripe (cached upstream).
      properties:
        id:
          type: string
        status:
          allOf:
            - $ref: '#/components/schemas/StatusEnum'
          readOnly: true
        amount_cents:
          type: integer
          readOnly: true
        period_start:
          type: string
          format: date-time
          readOnly: true
        period_end:
          type: string
          format: date-time
          readOnly: true
        due_date:
          type: string
          format: date-time
          readOnly: true
        paid_at:
          type: string
          format: date-time
          readOnly: true
          nullable: true
        hosted_invoice_url:
          type: string
          readOnly: true
        pdf_url:
          type: string
          readOnly: true
        lines:
          type: string
          readOnly: true
      required:
        - amount_cents
        - due_date
        - hosted_invoice_url
        - id
        - lines
        - paid_at
        - pdf_url
        - period_end
        - period_start
        - status
    StatusEnum:
      enum:
        - draft
        - open
        - paid
        - uncollectible
        - voided
        - refunded
      type: string
      description: |-
        * `draft` - Draft
        * `open` - Open
        * `paid` - Paid
        * `uncollectible` - Uncollectible
        * `voided` - Voided
        * `refunded` - Refunded
  securitySchemes:
    ManagementKeyAuth:
      type: http
      scheme: bearer
      bearerFormat: opaque
      description: >-
        A management key (created from the organization dashboard or with `POST
        /v3/manage/auth-keys`), sent as `Authorization: Bearer
        <management_key>`. Inference API keys (`sk-eden...`) are not accepted on
        these endpoints.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.