{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/answercheckup-com/json-schema/answercheckup-com-locked-scan-view-schema.json",
  "title": "LockedScanView",
  "x-generated": "2026-11-01",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/answercheckup-com-openapi.json#/components/schemas/LockedScanView",
  "type": "object",
  "properties": {
    "scanId": {
      "type": "string",
      "pattern": "^scan_[a-f0-9]{32}$"
    },
    "url": {
      "type": "string"
    },
    "scannedAt": {
      "type": "string",
      "format": "date-time"
    },
    "score": {
      "type": "integer",
      "minimum": 0,
      "maximum": 100
    },
    "grade": {
      "type": "string"
    },
    "detailsLocked": {
      "type": "boolean",
      "const": true
    },
    "unlock": {
      "type": "object",
      "properties": {
        "priceUsd": {
          "type": "number"
        },
        "currency": {
          "type": "string"
        },
        "url": {
          "type": "string"
        },
        "checkout": {
          "type": "object",
          "description": "How to buy the details: POST to endpoint with body (product_tier and scan_id) plus the consent fields, which are required and given by the buyer (see ScanUnlockCheckoutRequest and consentText). Consent is never prefilled.",
          "properties": {
            "method": {
              "type": "string"
            },
            "endpoint": {
              "type": "string"
            },
            "body": {
              "type": "object"
            },
            "required": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "consentText": {
              "type": "string",
              "format": "uri"
            }
          }
        },
        "consent": {
          "type": "object"
        }
      }
    }
  }
}