{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/silvercar/json-schema/silvercar-admin-customer-insurance-response-schema.json",
  "title": "AdminCustomerInsuranceResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/silvercar-insurance-api-openapi.yml#/components/schemas/AdminCustomerInsuranceResponse",
  "type": "object",
  "properties": {
    "id": {
      "type": "integer"
    },
    "carrier": {
      "type": [
        "string",
        "null"
      ]
    },
    "policy_number": {
      "type": [
        "string",
        "null"
      ]
    },
    "expires_on": {
      "type": "string"
    },
    "customer_id": {
      "type": "integer"
    },
    "is_stale": {
      "type": "boolean",
      "description": "Represents if the insurance account has not been refreshed since a time period determined by business rules"
    },
    "is_verified": {
      "type": "boolean",
      "description": "Represents if the insurance account is verified according to business rules"
    },
    "is_incomplete": {
      "type": "boolean",
      "description": "Indicates if the insurance record is missing required fields (carrier, policy_number, or expires_on)"
    },
    "missing_required_fields": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "carrier",
          "policy_number",
          "expires_on"
        ]
      },
      "description": "List of required fields that are missing from the insurance record"
    },
    "refreshed_at": {
      "type": [
        "string",
        "null"
      ],
      "description": "Timestamp of when the last time the account was verified by the third party."
    },
    "insurance_verification_method": {
      "type": [
        "string",
        "null"
      ],
      "description": "Axle Ignition completion type for how insurance data was obtained (for example link, manual, proxy, or basic).\n"
    },
    "insurance_verification_detail": {
      "type": [
        "string",
        "null"
      ],
      "description": "Axle Ignition completion detail identifying the specific process used (for example user-portal-login, document-ai-declarations-page, or document-ai-id-card).\n"
    },
    "image": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "id": {
          "type": "integer"
        },
        "url": {
          "type": "string"
        }
      }
    },
    "sufficiency": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "loaner": {
          "$ref": "#/$defs/InsuranceSufficiencyLoanerProperties"
        },
        "rental": {
          "$ref": "#/$defs/InsuranceSufficiencyRentalProperties"
        }
      }
    }
  },
  "$defs": {
    "InsuranceSufficiencyLoanerProperties": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "sufficient": {
          "type": "boolean",
          "description": "Represents if the insurance document is sufficient"
        },
        "status": {
          "type": "string",
          "description": "Status of the insurance document sufficiency"
        },
        "valid_until": {
          "type": "string",
          "description": "Timestamp of when the insurance document sufficiency is valid until"
        },
        "checked_at": {
          "type": "string",
          "description": "Timestamp of when the insurance document sufficiency was last checked"
        },
        "details": {
          "type": "object",
          "description": "Additional details about the insurance document sufficiency provided by 3rd party",
          "properties": {
            "collision_coverage_meets_requirements": {
              "type": "string"
            },
            "comprehensive_coverage_meets_requirements": {
              "type": "string"
            },
            "expiration_date_comparison": {
              "type": "string"
            },
            "insureds_match": {
              "type": "string"
            },
            "required_policy_information_is_present": {
              "type": "string"
            }
          }
        }
      }
    },
    "InsuranceSufficiencyRentalProperties": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "sufficient": {
          "type": "boolean",
          "description": "Represents if the insurance document is sufficient"
        },
        "status": {
          "type": "string",
          "description": "Status of the insurance document sufficiency"
        },
        "valid_until": {
          "type": "string",
          "description": "Timestamp of when the insurance document sufficiency is valid until"
        },
        "checked_at": {
          "type": "string",
          "description": "Timestamp of when the insurance document sufficiency was last checked"
        },
        "details": {
          "type": "object",
          "description": "Additional details about the insurance document sufficiency provided by 3rd party",
          "properties": {
            "comprehensive_coverage_meets_requirements": {
              "type": "string"
            },
            "expiration_date_comparison": {
              "type": "string"
            },
            "insureds_match": {
              "type": "string"
            },
            "rental_covered_for_collision": {
              "type": "string"
            },
            "required_policy_information_is_present": {
              "type": "string"
            }
          }
        }
      }
    }
  }
}