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

# Get invoice

> Requires `read:billing`. One invoice with its line items and hosted payment link.



## OpenAPI

````yaml /api-reference/openapi.json get /api/v1/billing/invoices/{id}
openapi: 3.0.0
info:
  title: Car Storage Software API
  version: 1.2.0
  description: >-
    Team-scoped REST API for Car Storage Software. Authenticate with a team API
    key (`Authorization: Bearer <key>` or `x-api-key: <key>`) created under
    Settings → Integrations → API. Keys carry granular `read:*` / `write:*`
    scopes; read never implies write.
servers:
  - url: https://www.carstoragesoftware.com
security: []
paths:
  /api/v1/billing/invoices/{id}:
    get:
      tags:
        - Billing
      summary: Get invoice
      description: >-
        Requires `read:billing`. One invoice with its line items and hosted
        payment link.
      parameters:
        - schema:
            type: string
            description: Stripe invoice id (`in_…`).
          required: true
          description: Stripe invoice id (`in_…`).
          name: id
          in: path
      responses:
        '200':
          description: Invoice.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V1BillingInvoiceResponse'
        '401':
          description: Missing, invalid, revoked, or expired API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '403':
          description: API key missing required scope, or API disabled for team.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '404':
          description: Resource not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '409':
          description: >-
            Payments aren't set up for this facility (no connected Stripe
            account).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '422':
          description: Request validation failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
      security:
        - ApiKeyAuth: []
components:
  schemas:
    V1BillingInvoiceResponse:
      type: object
      properties:
        data:
          $ref: '#/components/schemas/V1BillingInvoice'
      required:
        - data
    ApiError:
      type: object
      properties:
        error:
          type: string
        code:
          type: string
        details:
          nullable: true
      required:
        - error
    V1BillingInvoice:
      type: object
      properties:
        id:
          type: string
          description: Stripe invoice id (`in_…`).
        number:
          type: string
          nullable: true
        customerId:
          type: string
          nullable: true
          format: uuid
          description: Car Storage Software customer id, when linked.
        status:
          type: string
          nullable: true
          description: '`draft`, `open`, `paid`, `void`, or `uncollectible`.'
        currency:
          type: string
        totalCents:
          type: integer
        amountDueCents:
          type: integer
        amountPaidCents:
          type: integer
        amountRemainingCents:
          type: integer
        dueDate:
          type: string
          nullable: true
          format: date-time
        createdAt:
          type: string
          nullable: true
          format: date-time
        paidAt:
          type: string
          nullable: true
          format: date-time
        hostedInvoiceUrl:
          type: string
          nullable: true
        subscriptionId:
          type: string
          nullable: true
          description: Stripe subscription id, when recurring.
        lines:
          type: array
          items:
            type: object
            properties:
              description:
                type: string
                nullable: true
              amountCents:
                type: integer
              quantity:
                type: integer
                nullable: true
            required:
              - description
              - amountCents
              - quantity
      required:
        - id
        - number
        - customerId
        - status
        - currency
        - totalCents
        - amountDueCents
        - amountPaidCents
        - amountRemainingCents
        - dueDate
        - createdAt
        - paidAt
        - hostedInvoiceUrl
        - subscriptionId
  securitySchemes:
    ApiKeyAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: >-
        Team API key from Settings → Integrations. Use `Authorization: Bearer
        <key>` or `x-api-key`.

````

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