{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aiven/json-schema/aiven-organization-billing-group-list-response-schema.json",
  "title": "OrganizationBillingGroupListResponse",
  "description": "OrganizationBillingGroupListResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aiven-organizationbillinggroup-api-openapi.yml#/components/schemas/OrganizationBillingGroupListResponse",
  "type": "object",
  "properties": {
    "billing_groups": {
      "type": "array",
      "description": "A list of all billing groups belonging to the organization",
      "items": {
        "type": "object",
        "properties": {
          "billing_address_id": {
            "type": "string",
            "maxLength": 36,
            "description": "Billing address ID"
          },
          "billing_contact_emails": {
            "type": "array",
            "description": "List of billing contact emails",
            "items": {
              "type": "object",
              "properties": {
                "email": {
                  "type": "string",
                  "maxLength": 254,
                  "description": "Email"
                }
              },
              "required": [
                "email"
              ]
            }
          },
          "billing_emails": {
            "type": "array",
            "description": "List of billing contact emails",
            "items": {
              "type": "object",
              "properties": {
                "email": {
                  "type": "string",
                  "maxLength": 254,
                  "description": "Email"
                }
              },
              "required": [
                "email"
              ]
            }
          },
          "billing_group_id": {
            "type": "string",
            "description": "Billing group ID"
          },
          "billing_group_name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "description": "Billing Group Name"
          },
          "create_time": {
            "type": "string",
            "maxLength": 36,
            "description": "The date when this billing group was created"
          },
          "custom_invoice_text": {
            "type": "string",
            "maxLength": 256,
            "description": "Extra billing text"
          },
          "organization_id": {
            "type": "string",
            "maxLength": 36,
            "description": "Organization ID"
          },
          "payment_method": {
            "type": "object",
            "description": "Payment method",
            "properties": {
              "payment_method_id": {
                "type": "string",
                "maxLength": 36,
                "description": "Payment method ID"
              },
              "payment_method_type": {
                "type": "string",
                "description": "An enumeration.",
                "title": "Payment method type",
                "enum": [
                  "aws_subscription",
                  "azure_subscription",
                  "bank_transfer",
                  "credit_card",
                  "gcp_subscription",
                  "custom"
                ]
              }
            },
            "required": [
              "payment_method_id",
              "payment_method_type"
            ]
          },
          "shipping_address_id": {
            "type": "string",
            "maxLength": 36,
            "description": "Shipping address ID"
          },
          "vat_id": {
            "type": "string",
            "description": "VAT ID"
          }
        },
        "required": [
          "billing_address_id",
          "billing_contact_emails",
          "billing_emails",
          "billing_group_id",
          "billing_group_name",
          "create_time",
          "organization_id",
          "shipping_address_id"
        ]
      }
    }
  },
  "required": [
    "billing_groups"
  ]
}