> ## 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.

# List invoices

> Requires `read:billing`. Invoices from the facility's Stripe account, newest first. Cursor pagination: pass the previous response's `nextStartingAfter` as `startingAfter`. Filter with `customerId` (our customer id) or `status`.



## OpenAPI

````yaml /api-reference/openapi.json get /api/v1/billing/invoices
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:
    get:
      tags:
        - Billing
      summary: List invoices
      description: >-
        Requires `read:billing`. Invoices from the facility's Stripe account,
        newest first. Cursor pagination: pass the previous response's
        `nextStartingAfter` as `startingAfter`. Filter with `customerId` (our
        customer id) or `status`.
      parameters:
        - schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 25
          required: false
          name: limit
          in: query
        - schema:
            type: string
            description: 'Cursor: the last invoice id from the previous page.'
          required: false
          description: 'Cursor: the last invoice id from the previous page.'
          name: startingAfter
          in: query
        - schema:
            type: string
            format: uuid
          required: false
          name: customerId
          in: query
        - schema:
            type: string
            enum:
              - draft
              - open
              - paid
              - void
              - uncollectible
          required: false
          name: status
          in: query
      responses:
        '200':
          description: Invoices.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V1BillingInvoicesResponse'
        '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:
    V1BillingInvoicesResponse:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/V1BillingInvoice'
        hasMore:
          type: boolean
        nextStartingAfter:
          type: string
          nullable: true
      required:
        - data
        - hasMore
        - nextStartingAfter
    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.