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

# Fetch an invoice

> Fetches an invoice by its ID.

An **invoice** represents a bill for services rendered to a clinic patient during a visit. Each invoice is associated with a clinic, a client (pet parent), and contains line items for the services and products provided. Invoices track totals, discounts, payments, and remaining balance.



## OpenAPI

````yaml get /ext/v2/invoices/{invoice_id}/
openapi: 3.1.0
info:
  description: ''
  title: NinjaAPI
  version: 2.0.0
servers:
  - url: https://connect.vetcove.com/
security: []
paths:
  /ext/v2/invoices/{invoice_id}/:
    get:
      tags:
        - Invoices
      summary: Fetch an invoice
      description: >-
        Fetches an invoice by its ID.


        An **invoice** represents a bill for services rendered to a clinic
        patient during a visit. Each invoice is associated with a clinic, a
        client (pet parent), and contains line items for the services and
        products provided. Invoices track totals, discounts, payments, and
        remaining balance.
      operationId: invoices_get
      parameters:
        - description: The ID of the invoice to fetch
          in: path
          name: invoice_id
          required: true
          schema:
            description: The ID of the invoice to fetch
            title: Invoice Id
            type: integer
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExternalInvoiceDetailSchema'
          description: OK
      security:
        - ExternalAPIAuth: []
components:
  schemas:
    ExternalInvoiceDetailSchema:
      description: >-
        An invoice represents a bill issued by a clinic to a client (pet parent)
        for services rendered, products sold, or other charges. Invoices track
        the total amount, payments made, discounts applied, and remaining
        balance.
      properties:
        amount_paid:
          description: The amount paid so far for this invoice
          minimum: 0
          title: Amount Paid
          type: integer
        clinic_client_id:
          description: The ID of the client this invoice is for
          title: Clinic Client Id
          type: integer
        clinic_id:
          description: The ID of the clinic which issued this invoice
          title: Clinic Id
          type: integer
        created:
          description: The datetime this object was created.
          format: date-time
          title: Created
          type: string
        date_posted:
          description: The datetime this invoice was posted
          format: date-time
          title: Date Posted
          type: string
        deleted:
          anyOf:
            - format: date-time
              type: string
            - type: 'null'
          description: The datetime this record was soft deleted.
          title: Deleted
        discount:
          description: The discount given to the client for this invoice, if any
          minimum: 0
          title: Discount
          type: integer
        finalized_at:
          anyOf:
            - format: date-time
              type: string
            - type: 'null'
          description: >-
            The datetime at which this invoice was marked as finalized and
            became due
          title: Finalized At
        id:
          description: The unique identifier for the invoice
          title: Id
          type: integer
        is_deleted:
          description: Whether this record is soft deleted or not.
          title: Is Deleted
          type: boolean
        locked_at:
          anyOf:
            - format: date-time
              type: string
            - type: 'null'
          description: The datetime at which this invoice was marked as locked
          title: Locked At
        marked_as_collections_at:
          anyOf:
            - format: date-time
              type: string
            - type: 'null'
          description: >-
            The datetime at which this invoice was marked as collections (a.k.a.
            written off)
          title: Marked As Collections At
        marked_not_rendered_at:
          anyOf:
            - format: date-time
              type: string
            - type: 'null'
          description: The datetime at which this invoice was marked as not-rendered
          title: Marked Not Rendered At
        modified:
          description: >-
            The datetime this object was last modified; changes to related
            entities will not update this field.
          format: date-time
          title: Modified
          type: string
        remaining_balance:
          description: The remaining balance for this invoice
          title: Remaining Balance
          type: integer
        status:
          anyOf:
            - $ref: '#/components/schemas/ClientInvoiceStatus'
            - const: ''
              type: string
          description: The status of the invoice
          title: Status
        subtotal:
          description: The subtotal due for this invoice
          minimum: 0
          title: Subtotal
          type: integer
        tax:
          description: The amount of tax charged to the client for this invoice
          minimum: 0
          title: Tax
          type: integer
        total:
          description: The total amount billed to the client for this invoice
          title: Total
          type: integer
      required:
        - created
        - modified
        - is_deleted
        - deleted
        - id
        - status
        - clinic_client_id
        - clinic_id
        - marked_as_collections_at
        - marked_not_rendered_at
        - finalized_at
        - locked_at
        - date_posted
        - total
        - subtotal
        - discount
        - tax
        - amount_paid
        - remaining_balance
      title: ExternalInvoiceDetailSchema
      type: object
    ClientInvoiceStatus:
      enum:
        - IN_PROGRESS
        - READY_FOR_PAYMENT
        - FINALIZED
        - LOCKED
        - IMPORTED
      title: ClientInvoiceStatus
      type: string
  securitySchemes:
    ExternalAPIAuth:
      scheme: bearer
      type: http

````