{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ovh/json-schema/ovh-domain-order-order-request-schema.json",
  "title": "domain.order.OrderRequest",
  "description": "Payload to order a new domain name",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ovh-v1-domain-openapi.yml#/components/schemas/domain.order.OrderRequest",
  "type": "object",
  "properties": {
    "contacts": {
      "allOf": [
        {
          "$ref": "#/$defs/domain.order.Contacts"
        }
      ],
      "description": "Admin, tech and owner contacts",
      "nullable": true
    },
    "dns": {
      "type": [
        "array",
        "null"
      ],
      "description": "List of DNS servers (hostnames) to set on the domain. Optional: if omitted, OVHcloud's recommended DNS servers for the domain are used.",
      "items": {
        "type": "string"
      }
    },
    "domain": {
      "type": "string",
      "description": "Fully-qualified domain name to order, including the extension (e.g. example.com)"
    },
    "duration": {
      "type": [
        "string",
        "null"
      ],
      "description": "Order duration in ISO-8601 format, whole years only (e.g. P1Y). Allowed values depend on the extension's registry configuration; an unsupported duration is rejected. Defaults to P1Y if omitted.",
      "format": "duration"
    },
    "priceAcknowledge": {
      "allOf": [
        {
          "$ref": "#/$defs/domain.order.PriceAcknowledge"
        }
      ],
      "description": "Price the customer acknowledged before placing the order. Required for aftermarket or premium domains, optional otherwise. Its value/currency must equal the retail price quoted for this domain (e.g. via a dryRun order); a mismatch rejects the order.",
      "nullable": true
    },
    "promoCodes": {
      "type": [
        "array",
        "null"
      ],
      "description": "Promotion codes to apply. Optional.",
      "items": {
        "type": "string"
      }
    },
    "waiveRetractationPeriod": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "Acknowledgment that the customer waives the legal retractation period. Must be set to true to place the order."
    },
    "zone": {
      "allOf": [
        {
          "$ref": "#/$defs/domain.order.ZoneOptions"
        }
      ],
      "description": "DNS zone options",
      "nullable": true
    }
  },
  "required": [
    "domain"
  ],
  "$defs": {
    "domain.order.ContactOwner": {
      "type": "object",
      "description": "Owner contact reference for a domain order: an OVH contact resource, not a NIC handle.",
      "properties": {
        "id": {
          "type": [
            "integer",
            "null"
          ],
          "description": "Numeric identifier of the OVH contact resource (e.g. obtained from /me/contact). Distinct from a NIC handle such as xxxxx-ovh."
        }
      }
    },
    "domain.order.Contacts": {
      "type": "object",
      "description": "Admin, tech and owner contacts for a domain order. admin and tech are OVH NIC handles (e.g. xxxxx-ovh); owner is an OVH contact resource referenced by its numeric id (see /me/contact), not a NIC handle. Billing is forced to the customer code by the server and is not exposed.",
      "properties": {
        "admin": {
          "type": [
            "string",
            "null"
          ],
          "description": "Administrative contact, given as an OVH NIC handle (e.g. xxxxx-ovh). Defaults to the calling customer's NIC if omitted."
        },
        "owner": {
          "allOf": [
            {
              "$ref": "#/$defs/domain.order.ContactOwner"
            }
          ],
          "description": "Owner contact of the domain. Unlike admin/tech which are NIC handles, the owner is an OVH contact resource referenced by its numeric id.",
          "nullable": true
        },
        "tech": {
          "type": [
            "string",
            "null"
          ],
          "description": "Technical contact, given as an OVH NIC handle (e.g. xxxxx-ovh). Defaults to the admin contact if omitted."
        }
      }
    },
    "domain.order.PriceAcknowledge": {
      "type": "object",
      "description": "Minimal price payload sent by the client to acknowledge the price seen, before placing the actual order",
      "properties": {
        "currencyCode": {
          "allOf": [
            {
              "$ref": "#/$defs/order.CurrencyCodeEnum"
            }
          ],
          "description": "Currency code of the acknowledged price"
        },
        "value": {
          "type": "number",
          "description": "The effective price acknowledged by the client"
        }
      },
      "required": [
        "currencyCode",
        "value"
      ]
    },
    "domain.order.ZoneOptions": {
      "type": "object",
      "description": "DNS zone options for a domain order",
      "properties": {
        "anycast": {
          "type": [
            "boolean",
            "null"
          ],
          "description": "Enable Anycast on the DNS zone. Applied only when a new zone is created (create=true and no existing zone); ignored otherwise."
        },
        "create": {
          "type": [
            "boolean",
            "null"
          ],
          "description": "Whether to create the DNS zone along with the domain. Defaults to true if omitted."
        },
        "dnssec": {
          "type": [
            "boolean",
            "null"
          ],
          "description": "Enable DNSSEC on the DNS zone. Applied only when a new zone is created (create=true and no existing zone); defaults to true in that case when omitted."
        }
      }
    },
    "order.CurrencyCodeEnum": {
      "type": "string",
      "description": "Currency code",
      "enum": [
        "AUD",
        "CAD",
        "CZK",
        "EUR",
        "GBP",
        "INR",
        "LTL",
        "MAD",
        "N/A",
        "PLN",
        "SGD",
        "TND",
        "USD",
        "XOF",
        "points"
      ]
    }
  }
}