{
 "openapi": "3.1.0",
 "info": {
  "title": "CuriosDomain API",
  "version": "1.0.0",
  "description": "Search, buy, transfer, renew and manage domains. Authenticate with `Authorization: Bearer cd_live_...`. Purchases are two-step: create a quote, then confirm it as an order. Prices are in USD. Send an `Idempotency-Key` header on POST /v1/orders to make retries safe. Also sells SSL certificates, ACME subscriptions, SiteLock and Premium DNS through the same quote/order flow."
 },
 "servers": [
  {
   "url": "https://api.curiosdomain.com"
  }
 ],
 "security": [
  {
   "bearer": []
  }
 ],
 "paths": {
  "/v1/pricing": {
   "get": {
    "summary": "Price list for every extension",
    "tags": [
     "Catalogue"
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Pricing"
        }
       }
      }
     },
     "default": {
      "description": "Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    },
    "security": []
   }
  },
  "/v1/domains/check": {
   "get": {
    "summary": "Check availability",
    "tags": [
     "Catalogue"
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Search"
        }
       }
      }
     },
     "default": {
      "description": "Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    },
    "parameters": [
     {
      "name": "name",
      "in": "query",
      "required": true,
      "schema": {
       "type": "string"
      },
      "description": "Bare name or full domain"
     },
     {
      "name": "tlds",
      "in": "query",
      "schema": {
       "type": "string"
      },
      "description": "Comma-separated extensions, e.g. com,io"
     }
    ],
    "security": []
   }
  },
  "/v1/account": {
   "get": {
    "summary": "Account overview",
    "tags": [
     "Account"
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Account"
        }
       }
      }
     },
     "default": {
      "description": "Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/v1/account/contact": {
   "put": {
    "summary": "Set registrant contact (required before buying)",
    "tags": [
     "Account"
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Object"
        }
       }
      }
     },
     "default": {
      "description": "Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    },
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/Contact"
       }
      }
     }
    }
   }
  },
  "/v1/account/keys": {
   "get": {
    "summary": "List API keys",
    "tags": [
     "Account"
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Object"
        }
       }
      }
     },
     "default": {
      "description": "Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   },
   "post": {
    "summary": "Create an API key (shown once)",
    "tags": [
     "Account"
    ],
    "responses": {
     "201": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Object"
        }
       }
      }
     },
     "default": {
      "description": "Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    },
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "properties": {
         "label": {
          "type": "string"
         }
        }
       }
      }
     }
    }
   }
  },
  "/v1/account/keys/{prefix}": {
   "delete": {
    "summary": "Revoke an API key",
    "tags": [
     "Account"
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Object"
        }
       }
      }
     },
     "default": {
      "description": "Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    },
    "parameters": [
     {
      "name": "prefix",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string"
      }
     }
    ]
   }
  },
  "/v1/quotes": {
   "post": {
    "summary": "Quote a registration, transfer or renewal",
    "tags": [
     "Orders"
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Quote"
        }
       }
      }
     },
     "default": {
      "description": "Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    },
    "description": "Returns a single-use confirmationToken valid for 15 minutes. Nothing is bought.",
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/QuoteRequest"
       }
      }
     }
    }
   }
  },
  "/v1/orders": {
   "post": {
    "summary": "Confirm a quote and buy",
    "tags": [
     "Orders"
    ],
    "responses": {
     "201": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Order"
        }
       }
      }
     },
     "default": {
      "description": "Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    },
    "description": "Charges your prepaid balance. 402 insufficient_balance if it's too low; 409 price_changed if the registry price rose since the quote.",
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "required": [
         "confirmationToken"
        ],
        "properties": {
         "confirmationToken": {
          "type": "string"
         }
        }
       }
      }
     }
    },
    "parameters": [
     {
      "name": "Idempotency-Key",
      "in": "header",
      "schema": {
       "type": "string"
      }
     }
    ]
   }
  },
  "/v1/domains": {
   "get": {
    "summary": "List your domains",
    "tags": [
     "Domains"
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Object"
        }
       }
      }
     },
     "default": {
      "description": "Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/v1/domains/{domain}": {
   "get": {
    "summary": "Domain details",
    "tags": [
     "Domains"
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Domain"
        }
       }
      }
     },
     "default": {
      "description": "Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    },
    "parameters": [
     {
      "name": "domain",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string"
      },
      "example": "example.com"
     }
    ]
   },
   "patch": {
    "summary": "Change nameservers, auto-renew, privacy or transfer lock",
    "tags": [
     "Domains"
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Domain"
        }
       }
      }
     },
     "default": {
      "description": "Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    },
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/DomainPatch"
       }
      }
     }
    },
    "parameters": [
     {
      "name": "domain",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string"
      },
      "example": "example.com"
     }
    ]
   }
  },
  "/v1/domains/{domain}/authcode": {
   "get": {
    "summary": "Get the transfer authorisation (EPP) code",
    "tags": [
     "Domains"
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Object"
        }
       }
      }
     },
     "default": {
      "description": "Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    },
    "parameters": [
     {
      "name": "domain",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string"
      },
      "example": "example.com"
     }
    ]
   }
  },
  "/v1/domains/{domain}/dns": {
   "get": {
    "summary": "List DNS records",
    "tags": [
     "DNS"
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Dns"
        }
       }
      }
     },
     "default": {
      "description": "Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    },
    "parameters": [
     {
      "name": "domain",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string"
      },
      "example": "example.com"
     }
    ]
   },
   "put": {
    "summary": "Replace all DNS records",
    "tags": [
     "DNS"
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Dns"
        }
       }
      }
     },
     "default": {
      "description": "Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    },
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "required": [
         "records"
        ],
        "properties": {
         "records": {
          "type": "array",
          "items": {
           "$ref": "#/components/schemas/Record"
          }
         }
        }
       }
      }
     }
    },
    "parameters": [
     {
      "name": "domain",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string"
      },
      "example": "example.com"
     }
    ]
   }
  },
  "/v1/domains/{domain}/dns/records": {
   "post": {
    "summary": "Add a DNS record",
    "tags": [
     "DNS"
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Dns"
        }
       }
      }
     },
     "default": {
      "description": "Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    },
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/Record"
       }
      }
     }
    },
    "parameters": [
     {
      "name": "domain",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string"
      },
      "example": "example.com"
     }
    ]
   },
   "delete": {
    "summary": "Delete a DNS record",
    "tags": [
     "DNS"
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Dns"
        }
       }
      }
     },
     "default": {
      "description": "Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    },
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "required": [
         "name",
         "type"
        ],
        "properties": {
         "name": {
          "type": "string"
         },
         "type": {
          "type": "string"
         },
         "content": {
          "type": "string",
          "description": "Needed when several records match"
         }
        }
       }
      }
     }
    },
    "parameters": [
     {
      "name": "domain",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string"
      },
      "example": "example.com"
     }
    ]
   }
  },
  "/v1/products": {
   "get": {
    "summary": "SSL, ACME, SiteLock, Premium DNS and DNSSEC catalogue with prices",
    "tags": [
     "Add-ons"
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "type": "object"
        }
       }
      }
     },
     "default": {
      "description": "Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    },
    "security": []
   }
  },
  "/v1/ssl": {
   "get": {
    "summary": "List SSL certificates",
    "tags": [
     "Add-ons"
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "type": "object"
        }
       }
      }
     },
     "default": {
      "description": "Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/v1/ssl/{id}": {
   "get": {
    "summary": "Certificate status and validation steps",
    "tags": [
     "Add-ons"
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "type": "object"
        }
       }
      }
     },
     "default": {
      "description": "Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    },
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string"
      }
     }
    ]
   },
   "delete": {
    "summary": "Revoke a certificate",
    "tags": [
     "Add-ons"
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "type": "object"
        }
       }
      }
     },
     "default": {
      "description": "Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    },
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "properties": {
         "reason": {
          "type": "string"
         }
        }
       }
      }
     }
    }
   }
  },
  "/v1/ssl/{id}/download": {
   "get": {
    "summary": "Download certificate files",
    "tags": [
     "Add-ons"
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/x-pem-file": {},
       "application/zip": {}
      }
     },
     "default": {
      "description": "Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    },
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "format",
      "in": "query",
      "schema": {
       "type": "string",
       "enum": [
        "crt",
        "ca_bundle",
        "ca",
        "pkcs7",
        "zip"
       ]
      }
     }
    ]
   }
  },
  "/v1/ssl/{id}/reissue": {
   "post": {
    "summary": "Reissue with a new CSR (free)",
    "tags": [
     "Add-ons"
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "type": "object"
        }
       }
      }
     },
     "default": {
      "description": "Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    },
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "required": [
         "csr"
        ],
        "properties": {
         "csr": {
          "type": "string"
         },
         "validationMethod": {
          "type": "string",
          "enum": [
           "DNS",
           "EMAIL",
           "FILE"
          ]
         },
         "validationEmail": {
          "type": "string"
         }
        }
       }
      }
     }
    }
   }
  },
  "/v1/acme": {
   "get": {
    "summary": "List ACME subscriptions",
    "tags": [
     "Add-ons"
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "type": "object"
        }
       }
      }
     },
     "default": {
      "description": "Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/v1/acme/{id}": {
   "get": {
    "summary": "ACME subscription details",
    "tags": [
     "Add-ons"
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "type": "object"
        }
       }
      }
     },
     "default": {
      "description": "Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    },
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string"
      }
     }
    ]
   },
   "delete": {
    "summary": "Cancel an ACME subscription",
    "tags": [
     "Add-ons"
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "type": "object"
        }
       }
      }
     },
     "default": {
      "description": "Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    },
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string"
      }
     }
    ]
   }
  },
  "/v1/acme/{id}/credentials": {
   "post": {
    "summary": "Generate new EAB credentials",
    "tags": [
     "Add-ons"
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "type": "object"
        }
       }
      }
     },
     "default": {
      "description": "Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    },
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string"
      }
     }
    ]
   }
  },
  "/v1/sitelock": {
   "get": {
    "summary": "List SiteLock sites",
    "tags": [
     "Add-ons"
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "type": "object"
        }
       }
      }
     },
     "default": {
      "description": "Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/v1/sitelock/{domain}/login": {
   "post": {
    "summary": "Single-use SiteLock dashboard link",
    "tags": [
     "Add-ons"
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "type": "object"
        }
       }
      }
     },
     "default": {
      "description": "Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    },
    "parameters": [
     {
      "name": "domain",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string"
      }
     }
    ]
   }
  },
  "/v1/sitelock/{domain}": {
   "delete": {
    "summary": "Remove SiteLock from a site",
    "tags": [
     "Add-ons"
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "type": "object"
        }
       }
      }
     },
     "default": {
      "description": "Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    },
    "parameters": [
     {
      "name": "domain",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string"
      }
     }
    ]
   }
  }
 },
 "components": {
  "securitySchemes": {
   "bearer": {
    "type": "http",
    "scheme": "bearer"
   }
  },
  "schemas": {
   "Object": {
    "type": "object"
   },
   "Money": {
    "type": "object",
    "properties": {
     "amount": {
      "type": "number"
     },
     "currency": {
      "type": "string",
      "example": "USD"
     }
    }
   },
   "Error": {
    "type": "object",
    "properties": {
     "error": {
      "type": "object",
      "properties": {
       "code": {
        "type": "string",
        "example": "domain_not_found"
       },
       "message": {
        "type": "string"
       },
       "details": {
        "type": "object"
       }
      }
     }
    }
   },
   "Pricing": {
    "type": "object",
    "properties": {
     "currency": {
      "type": "string"
     },
     "tlds": {
      "type": "array",
      "items": {
       "type": "object",
       "properties": {
        "tld": {
         "type": "string"
        },
        "register": {
         "type": "number"
        },
        "renew": {
         "type": "number"
        },
        "transfer": {
         "type": [
          "number",
          "null"
         ]
        },
        "promo": {
         "type": "boolean"
        }
       }
      }
     }
    }
   },
   "Search": {
    "type": "object",
    "properties": {
     "currency": {
      "type": "string"
     },
     "results": {
      "type": "array",
      "items": {
       "type": "object",
       "properties": {
        "domain": {
         "type": "string"
        },
        "available": {
         "type": [
          "boolean",
          "null"
         ]
        },
        "premium": {
         "type": "boolean"
        },
        "price": {
         "type": "number"
        },
        "renewalPrice": {
         "type": "number"
        }
       }
      }
     }
    }
   },
   "Account": {
    "type": "object",
    "properties": {
     "id": {
      "type": "string"
     },
     "email": {
      "type": "string"
     },
     "balance": {
      "$ref": "#/components/schemas/Money"
     },
     "testMode": {
      "type": "boolean"
     },
     "registrantContact": {
      "type": [
       "object",
       "null"
      ]
     },
     "domains": {
      "type": "integer"
     }
    }
   },
   "Contact": {
    "type": "object",
    "required": [
     "firstName",
     "lastName",
     "email",
     "phone",
     "address",
     "city",
     "postcode",
     "country"
    ],
    "properties": {
     "firstName": {
      "type": "string"
     },
     "lastName": {
      "type": "string"
     },
     "organization": {
      "type": "string"
     },
     "email": {
      "type": "string"
     },
     "phone": {
      "type": "string"
     },
     "address": {
      "type": "string"
     },
     "city": {
      "type": "string"
     },
     "state": {
      "type": "string"
     },
     "postcode": {
      "type": "string"
     },
     "country": {
      "type": "string"
     }
    }
   },
   "QuoteRequest": {
    "type": "object",
    "required": [
     "action"
    ],
    "properties": {
     "action": {
      "type": "string",
      "enum": [
       "register",
       "transfer",
       "renew",
       "ssl",
       "ssl_renew",
       "acme",
       "acme_renew",
       "sitelock",
       "premium_dns"
      ]
     },
     "domain": {
      "type": "string"
     },
     "years": {
      "type": "integer",
      "minimum": 1,
      "maximum": 10
     },
     "authcode": {
      "type": "string",
      "description": "Transfers only"
     },
     "product": {
      "type": "string"
     },
     "csr": {
      "type": "string"
     },
     "san": {
      "type": "array",
      "items": {
       "type": "string"
      }
     },
     "validationMethod": {
      "type": "string",
      "enum": [
       "DNS",
       "EMAIL",
       "FILE"
      ]
     },
     "validationEmail": {
      "type": "string"
     },
     "domainNames": {
      "type": "array",
      "items": {
       "type": "string"
      }
     },
     "plan": {
      "type": "string"
     },
     "id": {
      "type": "string",
      "description": "ssl_renew/acme_renew"
     }
    }
   },
   "Quote": {
    "type": "object",
    "properties": {
     "confirmationToken": {
      "type": "string"
     },
     "action": {
      "type": "string"
     },
     "domain": {
      "type": "string"
     },
     "years": {
      "type": "integer"
     },
     "total": {
      "$ref": "#/components/schemas/Money"
     },
     "renewalPricePerYear": {
      "$ref": "#/components/schemas/Money"
     },
     "premium": {
      "type": "boolean"
     },
     "expiresAt": {
      "type": "string",
      "format": "date-time"
     },
     "description": {
      "type": "string"
     }
    }
   },
   "Order": {
    "type": "object",
    "properties": {
     "reference": {
      "type": "string"
     },
     "action": {
      "type": "string"
     },
     "domain": {
      "type": "string"
     },
     "status": {
      "type": "string",
      "enum": [
       "registered",
       "renewed",
       "pending",
       "transferred",
       "transfer_pending"
      ]
     },
     "charged": {
      "$ref": "#/components/schemas/Money"
     },
     "price": {
      "$ref": "#/components/schemas/Money"
     },
     "expiresAt": {
      "type": [
       "string",
       "null"
      ]
     }
    }
   },
   "Domain": {
    "type": "object",
    "properties": {
     "domain": {
      "type": "string"
     },
     "status": {
      "type": "array",
      "items": {
       "type": "string"
      }
     },
     "expiresAt": {
      "type": "string"
     },
     "autoRenew": {
      "type": "boolean"
     },
     "privacyProtect": {
      "type": "boolean"
     },
     "transferLock": {
      "type": "boolean"
     },
     "nameservers": {
      "type": "array",
      "items": {
       "type": "string"
      }
     },
     "dnsHostedHere": {
      "type": "boolean"
     }
    }
   },
   "DomainPatch": {
    "type": "object",
    "properties": {
     "nameservers": {
      "type": "array",
      "items": {
       "type": "string"
      }
     },
     "autoRenew": {
      "type": "boolean"
     },
     "privacyProtect": {
      "type": "boolean"
     },
     "transferLock": {
      "type": "boolean"
     },
     "dnssec": {
      "type": "boolean"
     },
     "premiumDns": {
      "type": "boolean",
      "description": "false to switch back to free DNS; upgrading needs a premium_dns quote"
     }
    }
   },
   "Record": {
    "type": "object",
    "required": [
     "name",
     "type",
     "content"
    ],
    "properties": {
     "name": {
      "type": "string",
      "description": "\"@\", \"www\" or fully qualified"
     },
     "type": {
      "type": "string",
      "example": "A"
     },
     "content": {
      "type": "string"
     },
     "ttl": {
      "type": "integer"
     },
     "priority": {
      "type": "integer"
     }
    }
   },
   "Dns": {
    "type": "object",
    "properties": {
     "domain": {
      "type": "string"
     },
     "records": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/Record"
      }
     },
     "defaultRecords": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/Record"
      }
     }
    }
   }
  }
 }
}