{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/vpsnet-com/json-schema/vpsnet-com-order-configuration-request-schema.json",
  "title": "OrderConfigurationRequest",
  "x-generated": "2026-11-28",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/vpsnet-com-openapi.yml#/components/schemas/OrderConfigurationRequest",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "plan"
  ],
  "properties": {
    "plan": {
      "type": "integer",
      "minimum": 1,
      "description": "Plan id from the plans call."
    },
    "os": {
      "type": "integer",
      "description": "OS id from the options call; the plan's default when omitted."
    },
    "period": {
      "type": "integer",
      "description": "Period id from the options call; the plan's default when omitted."
    },
    "units": {
      "type": "integer",
      "minimum": 1,
      "description": "Number of identical services, at most maxUnits from settings. Default 1."
    },
    "resources": {
      "type": "array",
      "description": "Resource value ids from the options call, at most one per resource type; types not listed keep the plan default.",
      "items": {
        "type": "integer",
        "minimum": 1
      }
    },
    "rootPassword": {
      "type": "string",
      "minLength": 6,
      "maxLength": 40,
      "description": "Letters and digits only, with at least one lowercase letter, one uppercase letter and one digit."
    },
    "sshKey": {
      "type": "integer",
      "description": "Id of an SSH key stored on the account. Required for an automatically fulfilled dedicated server."
    },
    "coupon": {
      "description": "Coupon code, or an object with exactly one of code, id, group or user.",
      "oneOf": [
        {
          "type": "string"
        },
        {
          "type": "object",
          "additionalProperties": true
        }
      ]
    },
    "application": {
      "type": "string",
      "description": "Catalog application slug to install on the new server. The application's CPU, RAM and disk figures are recommendations: a plan below them is accepted, and the quote carries the facts in applicationSizing so the customer decides."
    },
    "applicationAccess": {
      "type": "object",
      "additionalProperties": true,
      "description": "Application access request; only together with application."
    },
    "privateNetworkId": {
      "type": "string",
      "format": "uuid",
      "description": "Private network of this account to join at order time."
    },
    "licenses": {
      "type": "array",
      "items": {}
    },
    "plugins": {
      "type": "array",
      "items": {}
    },
    "payment": {
      "type": "object",
      "description": "Used by confirm. {\"payment\": 1, \"successUrl\": \"\", \"cancelUrl\": \"\"} pays from balance.",
      "properties": {
        "payment": {
          "type": "integer",
          "description": "Payment method id; 1 is account balance."
        },
        "successUrl": {
          "type": "string"
        },
        "cancelUrl": {
          "type": "string"
        },
        "paymentid": {
          "type": "integer",
          "description": "Existing unpaid payment to retry."
        }
      }
    },
    "quoteToken": {
      "type": "string"
    },
    "idempotencyKey": {
      "type": "string"
    },
    "idempotency_key": {
      "type": "string"
    }
  }
}