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

# Fetch an invoice



## OpenAPI

````yaml /swagger/v1/openapi.yaml get /v1/invoices/{id}
openapi: 3.0.1
info:
  title: SentinelAR API
  version: v1
  description: >-
    Read and act on customers, invoices, recoveries, messages and fees.
    Authenticate with an API key from Settings → API Keys as a bearer token.
servers:
  - url: https://api.sentinelar.app
    description: Production
  - url: '{scheme}://{host}/api'
    description: Local
    variables:
      scheme:
        default: http
        enum:
          - http
          - https
      host:
        default: localhost:3000
security:
  - bearer_auth: []
paths:
  /v1/invoices/{id}:
    parameters:
      - name: id
        in: path
        schema:
          type: string
          format: uuid
        required: true
    get:
      tags:
        - Invoices
      summary: Fetch an invoice
      responses:
        '200':
          description: invoice found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/invoice'
        '404':
          description: invoice not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error'
components:
  schemas:
    invoice:
      type: object
      properties:
        id:
          type: string
          format: uuid
        object:
          type: string
          enum:
            - invoice
        customer:
          type: string
          format: uuid
        number:
          type: string
          nullable: true
        total:
          $ref: '#/components/schemas/money'
        amount_paid:
          $ref: '#/components/schemas/money'
        amount_due:
          $ref: '#/components/schemas/money'
        status:
          type: string
          enum:
            - draft
            - open
            - paid
            - uncollectible
            - void
        payment_attempts:
          type: integer
        issued_at:
          type: string
          format: date-time
          nullable: true
        due_at:
          type: string
          format: date-time
          nullable: true
        paid_at:
          type: string
          format: date-time
          nullable: true
        source:
          type: object
          properties:
            id:
              type: string
            provider:
              type: string
            label:
              type: string
            reference:
              type: string
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
      required:
        - id
        - object
        - customer
        - total
        - amount_paid
        - amount_due
        - status
      additionalProperties: false
    error:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
            message:
              type: string
          required:
            - code
            - message
      required:
        - error
    money:
      type: object
      properties:
        amount:
          type: string
          example: '500.00'
        currency:
          type: string
          example: USD
      required:
        - amount
        - currency
      additionalProperties: false
  securitySchemes:
    bearer_auth:
      type: http
      scheme: bearer
      bearerFormat: snl_<32 hex>

````

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