{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/customdomain-ai/json-schema/customdomain-ai-sell-order-view-schema.json",
  "title": "SellOrderView",
  "description": "The stable, documented projection of a domain-purchase order.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/customdomain-ai-registrar-api-openapi.yml#/components/schemas/SellOrderView",
  "type": "object",
  "required": [
    "orderId",
    "domain",
    "status"
  ],
  "properties": {
    "orderId": {
      "type": "string"
    },
    "domain": {
      "type": "string"
    },
    "registrar": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "enum": [
        "quoted",
        "purchasing",
        "purchased",
        "transferred",
        "failed",
        "expired"
      ]
    },
    "createdAt": {
      "type": "string",
      "format": "date-time"
    },
    "regOrderId": {
      "type": "string",
      "description": "the registrar's order reference, once purchased."
    },
    "jobId": {
      "type": "string"
    },
    "link": {
      "type": "string",
      "description": "sharing-rail checkout URL, if any."
    },
    "freeDomain": {
      "type": "boolean",
      "description": "promo (first-domain-free) registration."
    }
  }
}