{
    "openapi": "3.1.0",
    "info": {
        "title": "Ex2 catalogue API",
        "version": "1",
        "summary": "Plans, prices and domain names of Ex2, web hosting from Québec.",
        "description": "Read-only, public, no authentication. Prices come from the Ex2 billing system (cached for up to 10 minutes), in the currency asked for, excluding taxes. Fields are added, never renamed or removed. A breaking change comes as a new version (/api/v2); the old one then keeps answering for at least 12 months, with Deprecation and Sunset headers (RFC 9745, RFC 8594) and a notice on the developers page. Errors are RFC 9457 problem details. The same data is available to AI assistants through the MCP server at https://www.ex2.com/mcp.",
        "termsOfService": "https://www.ex2.com/en/terms-and-conditions",
        "contact": {
            "name": "Ex2 support",
            "url": "https://www.ex2.com/en/support"
        }
    },
    "externalDocs": {
        "description": "Developers page",
        "url": "https://www.ex2.com/en/developers"
    },
    "servers": [
        {
            "url": "https://www.ex2.com"
        }
    ],
    "paths": {
        "/api/v1": {
            "get": {
                "operationId": "getApiIndex",
                "summary": "What the API offers",
                "description": "The API's parameters and endpoints, and the product lines with their plan ids.",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/lang"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "The index.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Index"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "A parameter is not valid.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "503": {
                        "description": "WHMCS (or, for availability, the registry) is unreachable and nothing is cached. Try again in a few minutes.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/api/v1/plans": {
            "get": {
                "operationId": "listPlans",
                "summary": "List plans and prices",
                "description": "Every plan with its prices per billing cycle, first-year discount, main features and order link. line keeps one product line.",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/line"
                    },
                    {
                        "$ref": "#/components/parameters/currency"
                    },
                    {
                        "$ref": "#/components/parameters/lang"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "The plans.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/PlanList"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "A parameter is not valid.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "503": {
                        "description": "WHMCS (or, for availability, the registry) is unreachable and nothing is cached. Try again in a few minutes.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/api/v1/plans/{id}": {
            "get": {
                "operationId": "getPlan",
                "summary": "Get one plan",
                "description": "One plan, with its full specification table.",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/planId"
                    },
                    {
                        "$ref": "#/components/parameters/currency"
                    },
                    {
                        "$ref": "#/components/parameters/lang"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "The plan.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/PlanDetail"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "A parameter is not valid.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No plan has this id.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "503": {
                        "description": "WHMCS (or, for availability, the registry) is unreachable and nothing is cached. Try again in a few minutes.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/api/v1/compare": {
            "get": {
                "operationId": "comparePlans",
                "summary": "Compare plans",
                "description": "Two to 10 plans side by side, one row per specification label.",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/plans"
                    },
                    {
                        "$ref": "#/components/parameters/currency"
                    },
                    {
                        "$ref": "#/components/parameters/lang"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "The plans and their comparison.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Comparison"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "A parameter is not valid.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "A plan id is unknown.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "503": {
                        "description": "WHMCS (or, for availability, the registry) is unreachable and nothing is cached. Try again in a few minutes.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/api/v1/domains/pricing": {
            "get": {
                "operationId": "getDomainPricing",
                "summary": "Get domain prices",
                "description": "One-year register, transfer and renewal prices per domain extension.",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/tld"
                    },
                    {
                        "$ref": "#/components/parameters/currency"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "The prices.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/DomainPricing"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "A parameter is not valid.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "503": {
                        "description": "WHMCS (or, for availability, the registry) is unreachable and nothing is cached. Try again in a few minutes.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/api/v1/status": {
            "get": {
                "operationId": "getStatus",
                "summary": "Status",
                "description": "Whether the catalogue API, the public MCP server and the account API work right now, and which account actions are on. Cached for a minute.",
                "parameters": [],
                "responses": {
                    "200": {
                        "description": "The status.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Status"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/api/v1/domains/availability": {
            "get": {
                "operationId": "checkDomainAvailability",
                "summary": "Check a domain name",
                "description": "Whether a domain name can be registered at Ex2 now (live WHOIS, results kept 5 minutes), with its extension's one-year prices and the link to order it, or to transfer it when taken. Limited to 30 checks per 10 minutes per address.",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/domain"
                    },
                    {
                        "$ref": "#/components/parameters/currency"
                    },
                    {
                        "$ref": "#/components/parameters/lang"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Free or taken.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/DomainAvailability"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Not a registrable domain name, or an extension Ex2 does not sell (code unsupported_tld).",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "The limit is reached; the Retry-After header says when to try again.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "503": {
                        "description": "WHMCS (or, for availability, the registry) is unreachable and nothing is cached. Try again in a few minutes.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/api/v1/migration": {
            "get": {
                "operationId": "quoteMigration",
                "summary": "Quote a migration",
                "description": "Moving a site to Ex2: free with a hosting plan, done by Ex2's team in 24 hours for a simple site and 48 at most, what moves, what the team needs, what cannot move and how to ask.",
                "parameters": [
                    {
                        "$ref": "#/components/parameters/lang"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "The quote.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Migration"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "A parameter is not valid.",
                        "content": {
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        }
    },
    "components": {
        "parameters": {
            "currency": {
                "name": "currency",
                "in": "query",
                "required": false,
                "description": "Currency of the prices: EUR for France and Europe, CAD for Canada, USD elsewhere.",
                "schema": {
                    "type": "string",
                    "enum": [
                        "CAD",
                        "EUR",
                        "USD"
                    ],
                    "default": "USD"
                }
            },
            "lang": {
                "name": "lang",
                "in": "query",
                "required": false,
                "description": "Language of names, features, specifications and links.",
                "schema": {
                    "type": "string",
                    "enum": [
                        "en",
                        "fr"
                    ],
                    "default": "en"
                }
            },
            "line": {
                "name": "line",
                "in": "query",
                "required": false,
                "description": "Keep the plans of one product line.",
                "schema": {
                    "type": "string",
                    "enum": [
                        "green",
                        "wordpress",
                        "divi",
                        "woocommerce",
                        "ecommerce",
                        "cms",
                        "site-builder",
                        "n8n",
                        "email",
                        "reseller",
                        "vps",
                        "dedicated",
                        "server-management"
                    ]
                }
            },
            "planId": {
                "name": "id",
                "in": "path",
                "required": true,
                "description": "A plan id.",
                "schema": {
                    "type": "string",
                    "enum": [
                        "green-power",
                        "green-expert",
                        "green-ultra",
                        "green-xtreme",
                        "wordpress-editor",
                        "wordpress-professional",
                        "wordpress-agency",
                        "divi-editor",
                        "divi-professional",
                        "divi-agency",
                        "woocommerce-wooboost",
                        "woocommerce-woomax",
                        "woocommerce-wooedge",
                        "ecommerce-prestashop",
                        "ecommerce-magento",
                        "cms-joomla",
                        "cms-moodle",
                        "cms-drupal",
                        "site-builder-website",
                        "site-builder-store",
                        "n8n-ultra",
                        "n8n-xtreme",
                        "email-mini",
                        "email-small",
                        "email-medium",
                        "email-large",
                        "email-xlarge",
                        "email-unlimited",
                        "reseller-start",
                        "reseller-expert",
                        "reseller-mega",
                        "vps-ng1",
                        "vps-ng2",
                        "vps-ng3",
                        "vps-ng4",
                        "vps-ng5",
                        "dedicated-start",
                        "dedicated-pro",
                        "dedicated-advanced",
                        "dedicated-ultimate",
                        "server-management-basic",
                        "server-management-business",
                        "server-management-critical"
                    ]
                }
            },
            "plans": {
                "name": "plans",
                "in": "query",
                "required": true,
                "description": "2 to 10 plan ids, comma-separated, e.g. green-power,green-expert.",
                "schema": {
                    "type": "string",
                    "pattern": "^[a-z0-9-]+(,[a-z0-9-]+)+$"
                }
            },
            "tld": {
                "name": "tld",
                "in": "query",
                "required": false,
                "description": "Keep some extensions, comma-separated, without dots: com,ca. All when absent.",
                "schema": {
                    "type": "string"
                }
            },
            "domain": {
                "name": "domain",
                "in": "query",
                "required": true,
                "description": "The name to check, e.g. mybakery.ca (a URL, capitals or a www. prefix are fine; Unicode names too).",
                "schema": {
                    "type": "string",
                    "minLength": 3,
                    "maxLength": 253
                }
            }
        },
        "schemas": {
            "Error": {
                "type": "object",
                "required": [
                    "type",
                    "title",
                    "status",
                    "detail",
                    "code",
                    "error"
                ],
                "description": "RFC 9457 problem details, sent as application/problem+json; error repeats code and detail as the API first gave them.",
                "properties": {
                    "type": {
                        "type": "string",
                        "description": "urn:ex2:problem:<code>"
                    },
                    "title": {
                        "type": "string"
                    },
                    "status": {
                        "type": "integer"
                    },
                    "detail": {
                        "type": "string",
                        "description": "What to change, in English."
                    },
                    "code": {
                        "type": "string",
                        "description": "The same code as error.code."
                    },
                    "error": {
                        "type": "object",
                        "required": [
                            "code",
                            "message"
                        ],
                        "properties": {
                            "code": {
                                "type": "string",
                                "description": "Stable, e.g. invalid_currency, unknown_plan, invalid_domain, unsupported_tld, rate_limited, unavailable, whois_unavailable."
                            },
                            "message": {
                                "type": "string",
                                "description": "What to change, in English."
                            }
                        }
                    }
                }
            },
            "Status": {
                "type": "object",
                "required": [
                    "status",
                    "updated_at",
                    "components",
                    "account_actions"
                ],
                "properties": {
                    "status": {
                        "type": "string",
                        "enum": [
                            "operational",
                            "degraded"
                        ]
                    },
                    "updated_at": {
                        "type": "string",
                        "format": "date-time"
                    },
                    "components": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "required": [
                                "id",
                                "name",
                                "url",
                                "status",
                                "description"
                            ],
                            "properties": {
                                "id": {
                                    "type": "string",
                                    "enum": [
                                        "catalogue_api",
                                        "mcp",
                                        "account"
                                    ]
                                },
                                "name": {
                                    "type": "string"
                                },
                                "url": {
                                    "type": "string",
                                    "format": "uri"
                                },
                                "status": {
                                    "type": "string",
                                    "enum": [
                                        "operational",
                                        "degraded",
                                        "unavailable"
                                    ]
                                },
                                "description": {
                                    "type": "string"
                                }
                            }
                        }
                    },
                    "account_actions": {
                        "type": "array",
                        "items": {
                            "type": "string"
                        },
                        "description": "The areas of account actions switched on (billing, domains, dns, diagnostics, mail, wordpress, sites)."
                    }
                }
            },
            "Index": {
                "type": "object",
                "required": [
                    "name",
                    "version",
                    "description",
                    "documentation",
                    "mcp_server",
                    "openapi",
                    "parameters",
                    "endpoints",
                    "product_lines"
                ],
                "properties": {
                    "name": {
                        "type": "string"
                    },
                    "version": {
                        "type": "integer"
                    },
                    "description": {
                        "type": "string"
                    },
                    "documentation": {
                        "type": "string",
                        "format": "uri",
                        "description": "The developers page, in the language asked for."
                    },
                    "mcp_server": {
                        "type": "string",
                        "format": "uri"
                    },
                    "openapi": {
                        "type": "string",
                        "format": "uri",
                        "description": "This document."
                    },
                    "parameters": {
                        "type": "object",
                        "additionalProperties": {
                            "type": "object"
                        }
                    },
                    "endpoints": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "required": [
                                "path",
                                "query",
                                "description"
                            ],
                            "properties": {
                                "path": {
                                    "type": "string"
                                },
                                "query": {
                                    "type": "array",
                                    "items": {
                                        "type": "string"
                                    }
                                },
                                "description": {
                                    "type": "string"
                                }
                            }
                        }
                    },
                    "product_lines": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/ProductLine"
                        }
                    }
                }
            },
            "ProductLine": {
                "type": "object",
                "required": [
                    "id",
                    "name",
                    "url",
                    "plans"
                ],
                "properties": {
                    "id": {
                        "type": "string",
                        "enum": [
                            "green",
                            "wordpress",
                            "divi",
                            "woocommerce",
                            "ecommerce",
                            "cms",
                            "site-builder",
                            "n8n",
                            "email",
                            "reseller",
                            "vps",
                            "dedicated",
                            "server-management"
                        ]
                    },
                    "name": {
                        "type": "string"
                    },
                    "url": {
                        "type": "string",
                        "format": "uri",
                        "description": "The product line's page."
                    },
                    "plans": {
                        "type": "array",
                        "items": {
                            "type": "string"
                        },
                        "description": "Its plan ids."
                    }
                }
            },
            "Plan": {
                "type": "object",
                "required": [
                    "id",
                    "line",
                    "name",
                    "url",
                    "featured",
                    "on_quote",
                    "features",
                    "pricing",
                    "order_url"
                ],
                "properties": {
                    "id": {
                        "type": "string",
                        "description": "Stable plan id: <line>-<key>."
                    },
                    "line": {
                        "type": "string",
                        "enum": [
                            "green",
                            "wordpress",
                            "divi",
                            "woocommerce",
                            "ecommerce",
                            "cms",
                            "site-builder",
                            "n8n",
                            "email",
                            "reseller",
                            "vps",
                            "dedicated",
                            "server-management"
                        ]
                    },
                    "name": {
                        "type": "string"
                    },
                    "url": {
                        "type": "string",
                        "format": "uri",
                        "description": "The plan's product page."
                    },
                    "featured": {
                        "type": "boolean",
                        "description": "The plan the page highlights."
                    },
                    "on_quote": {
                        "type": "boolean",
                        "description": "Sold on quote: no price, contact Ex2 through url."
                    },
                    "features": {
                        "type": "array",
                        "items": {
                            "type": "string"
                        },
                        "description": "Main features, as the page lists them."
                    },
                    "mailboxes": {
                        "oneOf": [
                            {
                                "type": "integer",
                                "minimum": 1
                            },
                            {
                                "const": "unlimited"
                            }
                        ],
                        "description": "Email plans only."
                    },
                    "performance_index": {
                        "type": "number",
                        "description": "Resources against green hosting Power = 1, where the catalogue has it."
                    },
                    "pricing": {
                        "oneOf": [
                            {
                                "$ref": "#/components/schemas/Pricing"
                            },
                            {
                                "type": "null"
                            }
                        ],
                        "description": "null when sold on quote or not priced in this currency."
                    },
                    "order_url": {
                        "oneOf": [
                            {
                                "type": "string",
                                "format": "uri"
                            },
                            {
                                "type": "null"
                            }
                        ],
                        "description": "The cart with this plan, or null without pricing."
                    },
                    "specs": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/Spec"
                        },
                        "description": "Single plan and compare only: the plan's column of its page's comparison table."
                    }
                }
            },
            "Pricing": {
                "type": "object",
                "required": [
                    "free",
                    "billing_cycles",
                    "setup_fees",
                    "first_year_discount",
                    "from_per_month"
                ],
                "properties": {
                    "free": {
                        "type": "boolean"
                    },
                    "billing_cycles": {
                        "type": "object",
                        "properties": {
                            "monthly": {
                                "type": "number",
                                "minimum": 0,
                                "description": "In the answer's currency, excluding taxes."
                            },
                            "quarterly": {
                                "type": "number",
                                "minimum": 0,
                                "description": "In the answer's currency, excluding taxes."
                            },
                            "semiannually": {
                                "type": "number",
                                "minimum": 0,
                                "description": "In the answer's currency, excluding taxes."
                            },
                            "annually": {
                                "type": "number",
                                "minimum": 0,
                                "description": "In the answer's currency, excluding taxes."
                            },
                            "biennially": {
                                "type": "number",
                                "minimum": 0,
                                "description": "In the answer's currency, excluding taxes."
                            },
                            "triennially": {
                                "type": "number",
                                "minimum": 0,
                                "description": "In the answer's currency, excluding taxes."
                            }
                        },
                        "additionalProperties": false,
                        "description": "Price of each enabled cycle, which is also the renewal price."
                    },
                    "setup_fees": {
                        "type": "object",
                        "properties": {
                            "monthly": {
                                "type": "number",
                                "minimum": 0,
                                "description": "In the answer's currency, excluding taxes."
                            },
                            "quarterly": {
                                "type": "number",
                                "minimum": 0,
                                "description": "In the answer's currency, excluding taxes."
                            },
                            "semiannually": {
                                "type": "number",
                                "minimum": 0,
                                "description": "In the answer's currency, excluding taxes."
                            },
                            "annually": {
                                "type": "number",
                                "minimum": 0,
                                "description": "In the answer's currency, excluding taxes."
                            },
                            "biennially": {
                                "type": "number",
                                "minimum": 0,
                                "description": "In the answer's currency, excluding taxes."
                            },
                            "triennially": {
                                "type": "number",
                                "minimum": 0,
                                "description": "In the answer's currency, excluding taxes."
                            }
                        },
                        "additionalProperties": false,
                        "description": "Setup fee per cycle, where there is one."
                    },
                    "first_year_discount": {
                        "oneOf": [
                            {
                                "type": "object",
                                "required": [
                                    "percent",
                                    "annually"
                                ],
                                "properties": {
                                    "percent": {
                                        "type": "number",
                                        "minimum": 0,
                                        "maximum": 100
                                    },
                                    "annually": {
                                        "type": "number",
                                        "minimum": 0,
                                        "description": "In the answer's currency, excluding taxes."
                                    }
                                }
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "from_per_month": {
                        "type": "number",
                        "minimum": 0,
                        "description": "In the answer's currency, excluding taxes."
                    }
                }
            },
            "Spec": {
                "type": "object",
                "required": [
                    "label",
                    "value"
                ],
                "properties": {
                    "label": {
                        "type": "string"
                    },
                    "value": {
                        "type": [
                            "string",
                            "boolean"
                        ],
                        "description": "true / false for the table's check marks and crosses."
                    }
                }
            },
            "PlanList": {
                "type": "object",
                "required": [
                    "currency",
                    "lang",
                    "plans"
                ],
                "properties": {
                    "currency": {
                        "type": "string"
                    },
                    "lang": {
                        "type": "string"
                    },
                    "plans": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/Plan"
                        }
                    }
                }
            },
            "PlanDetail": {
                "type": "object",
                "required": [
                    "currency",
                    "lang",
                    "plan"
                ],
                "properties": {
                    "currency": {
                        "type": "string"
                    },
                    "lang": {
                        "type": "string"
                    },
                    "plan": {
                        "$ref": "#/components/schemas/Plan"
                    }
                }
            },
            "Comparison": {
                "type": "object",
                "required": [
                    "currency",
                    "lang",
                    "plans",
                    "comparison"
                ],
                "properties": {
                    "currency": {
                        "type": "string"
                    },
                    "lang": {
                        "type": "string"
                    },
                    "plans": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/Plan"
                        }
                    },
                    "comparison": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "required": [
                                "label",
                                "values"
                            ],
                            "properties": {
                                "label": {
                                    "type": "string"
                                },
                                "values": {
                                    "type": "object",
                                    "additionalProperties": {
                                        "type": [
                                            "string",
                                            "boolean",
                                            "null"
                                        ]
                                    },
                                    "description": "Plan id => value; null where a plan has no such row."
                                }
                            }
                        }
                    }
                }
            },
            "DomainPricing": {
                "type": "object",
                "required": [
                    "currency",
                    "period_years",
                    "order_url",
                    "domains"
                ],
                "properties": {
                    "currency": {
                        "type": "string"
                    },
                    "period_years": {
                        "type": "integer",
                        "const": 1
                    },
                    "order_url": {
                        "type": "string",
                        "format": "uri",
                        "description": "The domain search of the cart."
                    },
                    "domains": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "required": [
                                "tld",
                                "register",
                                "transfer",
                                "renew"
                            ],
                            "properties": {
                                "tld": {
                                    "type": "string",
                                    "description": "With its dot: .com"
                                },
                                "register": {
                                    "oneOf": [
                                        {
                                            "type": "number",
                                            "minimum": 0,
                                            "description": "In the answer's currency, excluding taxes."
                                        },
                                        {
                                            "type": "null"
                                        }
                                    ]
                                },
                                "transfer": {
                                    "oneOf": [
                                        {
                                            "type": "number",
                                            "minimum": 0,
                                            "description": "In the answer's currency, excluding taxes."
                                        },
                                        {
                                            "type": "null"
                                        }
                                    ]
                                },
                                "renew": {
                                    "oneOf": [
                                        {
                                            "type": "number",
                                            "minimum": 0,
                                            "description": "In the answer's currency, excluding taxes."
                                        },
                                        {
                                            "type": "null"
                                        }
                                    ]
                                }
                            }
                        }
                    }
                }
            },
            "Migration": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                    "lang",
                    "free",
                    "price",
                    "duration",
                    "done_by_ex2",
                    "what_moves",
                    "domain_names",
                    "sites",
                    "site_online",
                    "needs",
                    "not_movable",
                    "steps",
                    "plans_url",
                    "request_url",
                    "page_url"
                ],
                "properties": {
                    "lang": {
                        "type": "string"
                    },
                    "free": {
                        "type": "boolean",
                        "const": true
                    },
                    "price": {
                        "type": "number",
                        "const": 0,
                        "description": "What Ex2 charges for the move: nothing (the hosting plan is paid as usual)."
                    },
                    "duration": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                            "simple_site_hours",
                            "max_hours",
                            "note"
                        ],
                        "properties": {
                            "simple_site_hours": {
                                "type": "integer",
                                "description": "A simple site is moved within this many hours."
                            },
                            "max_hours": {
                                "type": "integer",
                                "description": "The most a move takes, for a complex site."
                            },
                            "note": {
                                "type": "string"
                            }
                        }
                    },
                    "done_by_ex2": {
                        "type": "boolean",
                        "const": true,
                        "description": "Ex2's team does the move, from the access it is given."
                    },
                    "what_moves": {
                        "type": "array",
                        "items": {
                            "type": "string"
                        }
                    },
                    "domain_names": {
                        "type": "string",
                        "description": "How domain names come along: transferred (a domain transfer, at its price) or pointed to Ex2."
                    },
                    "sites": {
                        "type": "string"
                    },
                    "site_online": {
                        "type": "string"
                    },
                    "needs": {
                        "type": "array",
                        "items": {
                            "type": "string"
                        },
                        "description": "What Ex2's team needs to do the move."
                    },
                    "not_movable": {
                        "type": "string"
                    },
                    "steps": {
                        "type": "array",
                        "items": {
                            "type": "string"
                        }
                    },
                    "plans_url": {
                        "type": "string",
                        "format": "uri",
                        "description": "The hosting plans."
                    },
                    "request_url": {
                        "type": "string",
                        "format": "uri",
                        "description": "A support ticket in the client area, to ask for the move."
                    },
                    "page_url": {
                        "type": "string",
                        "format": "uri",
                        "description": "The migration page, for the customer."
                    }
                }
            },
            "DomainAvailability": {
                "type": "object",
                "required": [
                    "domain",
                    "available",
                    "currency",
                    "tld",
                    "period_years",
                    "register",
                    "transfer",
                    "renew",
                    "order_url",
                    "transfer_url"
                ],
                "properties": {
                    "domain": {
                        "type": "string",
                        "description": "The name checked, lower case, in its ASCII (xn--) form."
                    },
                    "available": {
                        "type": "boolean",
                        "description": "Free to register now (WHOIS); a premium or reserved name can still fail at checkout."
                    },
                    "currency": {
                        "type": "string"
                    },
                    "tld": {
                        "type": "string"
                    },
                    "period_years": {
                        "type": "integer",
                        "const": 1
                    },
                    "register": {
                        "oneOf": [
                            {
                                "type": "number",
                                "minimum": 0,
                                "description": "In the answer's currency, excluding taxes."
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "transfer": {
                        "oneOf": [
                            {
                                "type": "number",
                                "minimum": 0,
                                "description": "In the answer's currency, excluding taxes."
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "renew": {
                        "oneOf": [
                            {
                                "type": "number",
                                "minimum": 0,
                                "description": "In the answer's currency, excluding taxes."
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "order_url": {
                        "oneOf": [
                            {
                                "type": "string",
                                "format": "uri"
                            },
                            {
                                "type": "null"
                            }
                        ],
                        "description": "The cart, to register it (free names)."
                    },
                    "transfer_url": {
                        "oneOf": [
                            {
                                "type": "string",
                                "format": "uri"
                            },
                            {
                                "type": "null"
                            }
                        ],
                        "description": "The cart, to transfer it to Ex2 (taken names)."
                    }
                }
            }
        }
    }
}
