{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aiven/json-schema/aiven-organization-billing-invoice-list-response-schema.json",
  "title": "OrganizationBillingInvoiceListResponse",
  "description": "OrganizationBillingInvoiceListResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aiven-organizationbillinggroup-api-openapi.yml#/components/schemas/OrganizationBillingInvoiceListResponse",
  "type": "object",
  "properties": {
    "invoices": {
      "type": "array",
      "description": "A list of billing invoices belonging to the organization",
      "items": {
        "type": "object",
        "properties": {
          "billing_group_id": {
            "type": "string",
            "description": "Billing group ID"
          },
          "create_time": {
            "type": "string",
            "maxLength": 36,
            "description": "The date when this invoice was created"
          },
          "currency": {
            "type": "string",
            "description": "Acceptable currencies for a billing group.",
            "title": "Invoice currency",
            "enum": [
              "AUD",
              "CAD",
              "CHF",
              "DKK",
              "EUR",
              "GBP",
              "JPY",
              "NOK",
              "NZD",
              "SEK",
              "SGD",
              "USD"
            ]
          },
          "download_only": {
            "type": "boolean",
            "description": "Download only"
          },
          "due_date": {
            "type": "string",
            "maxLength": 10,
            "description": "The date when this invoice is due"
          },
          "invoice_number": {
            "type": "string",
            "description": "Invoice ID"
          },
          "invoice_period": {
            "type": "object",
            "description": "InvoicePeriod",
            "properties": {
              "begin_time": {
                "type": "string",
                "maxLength": 36,
                "description": "The start date of the period this invoice refers to"
              },
              "end_time": {
                "type": "string",
                "maxLength": 36,
                "description": "The end date of the period this invoice refers to"
              }
            },
            "required": [
              "begin_time",
              "end_time"
            ]
          },
          "issue_date": {
            "type": "string",
            "maxLength": 10,
            "description": "The date the invoice was issued"
          },
          "net": {
            "type": "string",
            "description": "Total invoice amount without taxes in local currency"
          },
          "net_usd": {
            "type": "string",
            "description": "Total invoice amount without taxes in USD"
          },
          "organization_id": {
            "type": "string",
            "maxLength": 36,
            "description": "Organization ID"
          },
          "state": {
            "type": "string",
            "description": "State of the invoice",
            "enum": [
              "accrual",
              "consolidated",
              "due",
              "estimate",
              "failed_credit_card_charge",
              "failed_no_credit_card",
              "mailed",
              "no_payment_expected",
              "paid",
              "partner_metering",
              "uncollectible",
              "waived",
              "due_only_project_charges_calculated",
              "estimate_only_project_charges_calculated"
            ]
          },
          "total": {
            "type": "string",
            "description": "Total invoice amount including taxes in local currency"
          },
          "total_usd": {
            "type": "string",
            "description": "Total invoice amount including taxes in USD"
          }
        },
        "required": [
          "billing_group_id",
          "create_time",
          "currency",
          "download_only",
          "invoice_number",
          "invoice_period",
          "issue_date",
          "net",
          "net_usd",
          "organization_id",
          "state",
          "total",
          "total_usd"
        ]
      }
    }
  },
  "required": [
    "invoices"
  ]
}