{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/hostinger/main/json-schema/hostinger-billing-v1-catalog-catalog-item-collection-schema.json",
  "title": "Billing.V1.Catalog.CatalogItemCollection",
  "description": "Array of [`Billing.V1.Catalog.CatalogItemResource`](#model/billingv1catalogcatalogitemresource)",
  "x-generated": "2026-10-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/hostinger-billing-catalog-api-openapi.yml#/components/schemas/Billing.V1.Catalog.CatalogItemCollection",
  "type": "array",
  "items": {
    "$ref": "#/$defs/Billing.V1.Catalog.CatalogItemResource"
  },
  "$defs": {
    "Billing.V1.Catalog.CatalogItemPriceCollection": {
      "description": "Array of [`Billing.V1.Catalog.CatalogItemPriceResource`](#model/billingv1catalogcatalogitempriceresource)",
      "type": "array",
      "items": {
        "$ref": "#/$defs/Billing.V1.Catalog.CatalogItemPriceResource"
      }
    },
    "Billing.V1.Catalog.CatalogItemPriceResource": {
      "properties": {
        "id": {
          "description": "Price item ID",
          "type": "string"
        },
        "name": {
          "description": "Price item name",
          "type": "string"
        },
        "currency": {
          "description": "Currency code",
          "type": "string"
        },
        "price": {
          "description": "Price in cents",
          "type": "integer"
        },
        "first_period_price": {
          "description": "First period price in cents",
          "type": "integer"
        },
        "period": {
          "description": "Period",
          "type": "integer"
        },
        "period_unit": {
          "description": "Period unit",
          "type": "string",
          "enum": [
            "day",
            "week",
            "month",
            "year",
            "none"
          ]
        }
      },
      "type": "object"
    },
    "Billing.V1.Catalog.CatalogItemResource": {
      "properties": {
        "id": {
          "description": "Catalog item ID",
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "category": {
          "type": "string"
        },
        "metadata": {
          "description": "\n            Flexible key-value storage containing category-specific metadata for the catalog item.\n            The structure and available fields vary depending on the item category.\n            ",
          "type": [
            "object",
            "null"
          ]
        },
        "prices": {
          "$ref": "#/$defs/Billing.V1.Catalog.CatalogItemPriceCollection"
        }
      },
      "type": "object"
    }
  }
}