{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/hostinger/main/json-schema/hostinger-agency-hosting-v1-orders-order-collection-schema.json",
  "title": "AgencyHosting.V1.Orders.OrderCollection",
  "description": "Array of [`AgencyHosting.V1.Orders.OrderResource`](#model/agencyhostingv1ordersorderresource)",
  "x-generated": "2026-10-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/hostinger-agency-hosting-orders-api-openapi.yml#/components/schemas/AgencyHosting.V1.Orders.OrderCollection",
  "type": "array",
  "items": {
    "$ref": "#/$defs/AgencyHosting.V1.Orders.OrderResource"
  },
  "$defs": {
    "AgencyHosting.V1.Orders.DatacenterResource": {
      "properties": {
        "code": {
          "description": "Datacenter code",
          "type": "string"
        },
        "country": {
          "description": "Datacenter country",
          "type": "string"
        }
      },
      "type": "object"
    },
    "AgencyHosting.V1.Orders.OrderResource": {
      "properties": {
        "id": {
          "description": "Order ID",
          "type": "integer"
        },
        "client_id": {
          "description": "Order client ID",
          "type": "integer"
        },
        "status": {
          "description": "Order status",
          "type": [
            "string",
            "null"
          ]
        },
        "plan": {
          "$ref": "#/$defs/AgencyHosting.V1.Orders.PlanResource"
        },
        "datacenter": {
          "oneOf": [
            {
              "$ref": "#/$defs/AgencyHosting.V1.Orders.DatacenterResource"
            }
          ],
          "description": "Order datacenter"
        },
        "created_at": {
          "description": "Order creation date",
          "type": "string",
          "format": "date-time"
        }
      },
      "type": "object"
    },
    "AgencyHosting.V1.Orders.PlanResource": {
      "properties": {
        "name": {
          "description": "Plan display name",
          "type": [
            "string",
            "null"
          ]
        },
        "key": {
          "description": "Plan key",
          "type": [
            "string",
            "null"
          ]
        }
      },
      "type": "object"
    }
  }
}