{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/linode/json-schema/linode-paginated-invoice-list-schema.json",
  "title": "PaginatedInvoiceList",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/linode-account-api-openapi.yml#/components/schemas/PaginatedInvoiceList",
  "allOf": [
    {
      "$ref": "#/$defs/Pagination"
    },
    {
      "type": "object",
      "properties": {
        "data": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Invoice"
          }
        }
      }
    }
  ],
  "$defs": {
    "Invoice": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer",
          "description": "The unique ID of this invoice."
        },
        "date": {
          "type": "string",
          "format": "date-time",
          "description": "The date of this invoice."
        },
        "label": {
          "type": "string",
          "description": "The label for this invoice."
        },
        "subtotal": {
          "type": "number",
          "description": "The subtotal amount."
        },
        "tax": {
          "type": "number",
          "description": "The tax amount."
        },
        "total": {
          "type": "number",
          "description": "The total amount."
        }
      }
    },
    "Pagination": {
      "type": "object",
      "properties": {
        "page": {
          "type": "integer",
          "description": "The current page number."
        },
        "pages": {
          "type": "integer",
          "description": "The total number of pages."
        },
        "results": {
          "type": "integer",
          "description": "The total number of results."
        }
      }
    }
  }
}