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

# List Team Billing Invoices

> Invoice + payment history for the team, newest first (any member may view).

Mirrored from Stripe webhooks; ``invoice_pdf_url`` is the Download-PDF link.



## OpenAPI

````yaml /openapi.json get /api/v1/teams/{team_id}/billing/invoices
openapi: 3.1.0
info:
  title: AITasker
  version: 0.1.0
servers: []
security: []
paths:
  /api/v1/teams/{team_id}/billing/invoices:
    get:
      tags:
        - Teams
      summary: List Team Billing Invoices
      description: >-
        Invoice + payment history for the team, newest first (any member may
        view).


        Mirrored from Stripe webhooks; ``invoice_pdf_url`` is the Download-PDF
        link.
      operationId: list_team_billing_invoices_api_v1_teams__team_id__billing_invoices_get
      parameters:
        - name: team_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Team Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/TeamInvoiceResponse'
                title: >-
                  Response List Team Billing Invoices Api V1 Teams  Team Id 
                  Billing Invoices Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    TeamInvoiceResponse:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        stripe_invoice_id:
          type: string
          title: Stripe Invoice Id
        number:
          anyOf:
            - type: string
            - type: 'null'
          title: Number
        amount_due_cents:
          anyOf:
            - type: integer
            - type: 'null'
          title: Amount Due Cents
        amount_paid_cents:
          anyOf:
            - type: integer
            - type: 'null'
          title: Amount Paid Cents
        currency:
          anyOf:
            - type: string
            - type: 'null'
          title: Currency
        status:
          anyOf:
            - type: string
            - type: 'null'
          title: Status
        hosted_invoice_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Hosted Invoice Url
        invoice_pdf_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Invoice Pdf Url
        period_start:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Period Start
        period_end:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Period End
        created_at:
          type: string
          format: date-time
          title: Created At
        paid_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Paid At
      type: object
      required:
        - id
        - stripe_invoice_id
        - created_at
      title: TeamInvoiceResponse
      description: >-
        Member-readable invoice mirror row (PR-4).


        Stripe remains the system of record; these rows are upserted from the

        ``invoice.finalized`` / ``invoice.paid`` webhooks. ``invoice_pdf_url``
        is the

        "Download PDF" link surfaced in the Billing UI.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````