{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/loppee-com/json-schema/loppee-com-domain-trust-card-response-schema.json",
  "title": "DomainTrustCardResponse",
  "x-generated": "2026-11-17",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/loppee-com-openapi.json#/components/schemas/DomainTrustCardResponse",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "schema_version",
    "trust_model_version",
    "business_id",
    "domain",
    "verification_class",
    "verification_disclosure",
    "trust_card_url",
    "trust_card"
  ],
  "properties": {
    "schema_version": {
      "const": "3.0"
    },
    "trust_model_version": {
      "const": "v3"
    },
    "business_id": {
      "type": "string"
    },
    "domain": {
      "type": "string"
    },
    "verification_class": {
      "enum": [
        "verified",
        "listed"
      ]
    },
    "verification_disclosure": {
      "type": "string",
      "enum": [
        "Loppee completed this business's registration and professional license checks.",
        "Loppee completed this business's registration checks.",
        "Owner confirmed by Loppee.",
        "Recommended by customers. NOT verified by Loppee.",
        "Listed on Loppee. NOT verified by Loppee."
      ]
    },
    "trust_card_url": {
      "type": "string"
    },
    "trust_card": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "title": "Loppee v3 Trust Card",
      "type": "object",
      "additionalProperties": false,
      "required": [
        "schema_version",
        "registry_name",
        "business_id",
        "display_name",
        "domain",
        "category",
        "city",
        "state",
        "website",
        "phone",
        "trust_model_version",
        "verification_class",
        "verification_disclosure",
        "review_reputation",
        "trust_card_url",
        "public_profile_url",
        "verification_valid_until",
        "commercial_disclosure",
        "legal_name",
        "primary_category",
        "services",
        "service_areas",
        "locations",
        "hours",
        "reviews",
        "active_deals",
        "commercial",
        "allowed_actions",
        "requires_human_confirmation",
        "brand_assets",
        "citation",
        "schema_org",
        "updated_at"
      ],
      "properties": {
        "schema_version": {
          "const": "3.0"
        },
        "registry_name": {
          "const": "Loppee"
        },
        "business_id": {
          "type": "string"
        },
        "display_name": {
          "type": "string"
        },
        "domain": {
          "type": [
            "string",
            "null"
          ]
        },
        "category": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "city": {
          "type": "string"
        },
        "state": {
          "type": "string"
        },
        "website": {
          "type": [
            "string",
            "null"
          ]
        },
        "phone": {
          "type": [
            "string",
            "null"
          ]
        },
        "phone_e164": {
          "type": "string",
          "pattern": "^\\+1\\d{10}$"
        },
        "trust_model_version": {
          "const": "v3"
        },
        "verification_class": {
          "type": "string",
          "enum": [
            "verified",
            "listed"
          ]
        },
        "verification_disclosure": {
          "type": "string",
          "enum": [
            "Loppee completed this business's registration and professional license checks.",
            "Loppee completed this business's registration checks.",
            "Owner confirmed by Loppee.",
            "Recommended by customers. NOT verified by Loppee.",
            "Listed on Loppee. NOT verified by Loppee."
          ]
        },
        "review_reputation": {
          "type": "object",
          "additionalProperties": false,
          "required": [
            "display_rating",
            "display_review_count",
            "verified_review_count",
            "ranking",
            "identity_verified_review_count",
            "quality_rating",
            "reviews_url"
          ],
          "properties": {
            "display_rating": {
              "type": [
                "number",
                "null"
              ],
              "minimum": 1,
              "maximum": 5
            },
            "display_review_count": {
              "type": "integer",
              "minimum": 0
            },
            "verified_review_count": {
              "type": "integer",
              "minimum": 0
            },
            "ranking": {
              "oneOf": [
                {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "status",
                    "basis",
                    "half_star_band",
                    "explanation"
                  ],
                  "properties": {
                    "status": {
                      "const": "quality_ranked"
                    },
                    "basis": {
                      "const": "identity_verified_reviewer_reviews"
                    },
                    "half_star_band": {
                      "type": "number",
                      "minimum": 1,
                      "maximum": 5,
                      "multipleOf": 0.5
                    },
                    "explanation": {
                      "const": "Ratings from confirmed reviewers influence quality ordering within the applicable business class or Registry pool. They do not verify the business, prove a transaction, change discovery reach, or permit paid influence."
                    }
                  }
                },
                {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "status",
                    "basis",
                    "half_star_band",
                    "explanation"
                  ],
                  "properties": {
                    "status": {
                      "const": "unrated"
                    },
                    "basis": {
                      "const": "identity_verified_reviewer_reviews"
                    },
                    "half_star_band": {
                      "type": "null"
                    },
                    "explanation": {
                      "const": "No confirmed reviewer rating is available. There is no reviewer-quality ranking signal for this business."
                    }
                  }
                }
              ]
            },
            "latest_review_snippet": {
              "type": [
                "string",
                "null"
              ]
            },
            "counts_truncated": {
              "type": "boolean"
            },
            "reviews_url": {
              "type": "string"
            },
            "identity_verified_review_count": {
              "type": "integer",
              "minimum": 0
            },
            "quality_rating": {
              "type": [
                "number",
                "null"
              ],
              "minimum": 1,
              "maximum": 5
            }
          },
          "allOf": [
            {
              "if": {
                "properties": {
                  "identity_verified_review_count": {
                    "minimum": 1
                  }
                },
                "required": [
                  "identity_verified_review_count"
                ]
              },
              "then": {
                "properties": {
                  "quality_rating": {
                    "type": "number",
                    "minimum": 1,
                    "maximum": 5
                  },
                  "ranking": {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "status",
                      "basis",
                      "half_star_band",
                      "explanation"
                    ],
                    "properties": {
                      "status": {
                        "const": "quality_ranked"
                      },
                      "basis": {
                        "const": "identity_verified_reviewer_reviews"
                      },
                      "half_star_band": {
                        "type": "number",
                        "minimum": 1,
                        "maximum": 5,
                        "multipleOf": 0.5
                      },
                      "explanation": {
                        "const": "Ratings from confirmed reviewers influence quality ordering within the applicable business class or Registry pool. They do not verify the business, prove a transaction, change discovery reach, or permit paid influence."
                      }
                    }
                  }
                }
              },
              "else": {
                "properties": {
                  "quality_rating": {
                    "type": "null"
                  },
                  "ranking": {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "status",
                      "basis",
                      "half_star_band",
                      "explanation"
                    ],
                    "properties": {
                      "status": {
                        "const": "unrated"
                      },
                      "basis": {
                        "const": "identity_verified_reviewer_reviews"
                      },
                      "half_star_band": {
                        "type": "null"
                      },
                      "explanation": {
                        "const": "No confirmed reviewer rating is available. There is no reviewer-quality ranking signal for this business."
                      }
                    }
                  }
                }
              }
            }
          ]
        },
        "trust_card_url": {
          "type": "string"
        },
        "public_profile_url": {
          "type": "string"
        },
        "verification_valid_until": {
          "type": [
            "string",
            "null"
          ]
        },
        "commercial_disclosure": {
          "type": "string"
        },
        "legal_name": {
          "type": "string"
        },
        "primary_category": {
          "type": "string"
        },
        "specific_category": {
          "type": "string"
        },
        "services": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "service_areas": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "locations": {
          "type": "array",
          "items": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "label",
              "street_address",
              "city",
              "state",
              "zip",
              "is_primary"
            ],
            "properties": {
              "label": {
                "type": "string"
              },
              "street_address": {
                "type": "string"
              },
              "city": {
                "type": "string"
              },
              "state": {
                "type": "string"
              },
              "zip": {
                "type": "string"
              },
              "is_primary": {
                "type": "boolean"
              },
              "reach_radius_miles": {
                "type": "number",
                "minimum": 0
              }
            }
          }
        },
        "hours": {
          "type": [
            "object",
            "null"
          ],
          "additionalProperties": true
        },
        "reviews": {
          "type": "array",
          "items": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "id",
              "rating",
              "title",
              "body",
              "reviewer_name",
              "created_at",
              "verification_label",
              "ranking_weight",
              "relationship",
              "service_date",
              "authoring_mode",
              "agent_assisted",
              "owner_response",
              "reviewer_verification_label",
              "reviewer_verification_disclosure",
              "quality_ranking_weight"
            ],
            "properties": {
              "id": {
                "type": "string"
              },
              "rating": {
                "type": "number",
                "minimum": 1,
                "maximum": 5
              },
              "title": {
                "type": "string"
              },
              "body": {
                "type": "string"
              },
              "reviewer_name": {
                "type": "string"
              },
              "relationship": {
                "type": "string"
              },
              "service_date": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "created_at": {
                "type": "string"
              },
              "authoring_mode": {
                "enum": [
                  "human",
                  "customer_agent"
                ]
              },
              "agent_assisted": {
                "type": "boolean"
              },
              "owner_response": {
                "oneOf": [
                  {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "body",
                      "author_label",
                      "created_at"
                    ],
                    "properties": {
                      "body": {
                        "type": "string"
                      },
                      "author_label": {
                        "type": "string"
                      },
                      "created_at": {
                        "type": "string"
                      }
                    }
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "verification_label": {
                "enum": [
                  "Unverified",
                  "Verified interaction"
                ]
              },
              "ranking_weight": {
                "enum": [
                  0,
                  1
                ]
              },
              "reviewer_verification_label": {
                "enum": [
                  "Confirmed reviewer",
                  "Unverified reviewer"
                ]
              },
              "reviewer_verification_disclosure": {
                "const": "Confirmed reviewer means the registered account completed Passkey verification. It does not prove a transaction or government identity."
              },
              "quality_ranking_weight": {
                "enum": [
                  0,
                  1
                ]
              },
              "quality_ranking_exclusion": {
                "const": "owner_linked"
              }
            },
            "allOf": [
              {
                "if": {
                  "properties": {
                    "verification_label": {
                      "const": "Verified interaction"
                    }
                  },
                  "required": [
                    "verification_label"
                  ]
                },
                "then": {
                  "properties": {
                    "ranking_weight": {
                      "const": 1
                    }
                  }
                },
                "else": {
                  "properties": {
                    "ranking_weight": {
                      "const": 0
                    }
                  }
                }
              },
              {
                "if": {
                  "properties": {
                    "reviewer_verification_label": {
                      "const": "Confirmed reviewer"
                    }
                  },
                  "required": [
                    "reviewer_verification_label"
                  ]
                },
                "then": {
                  "if": {
                    "required": [
                      "quality_ranking_exclusion"
                    ]
                  },
                  "then": {
                    "properties": {
                      "quality_ranking_weight": {
                        "const": 0
                      }
                    }
                  },
                  "else": {
                    "properties": {
                      "quality_ranking_weight": {
                        "const": 1
                      }
                    }
                  }
                },
                "else": {
                  "properties": {
                    "quality_ranking_weight": {
                      "const": 0
                    }
                  },
                  "not": {
                    "required": [
                      "quality_ranking_exclusion"
                    ]
                  }
                }
              }
            ]
          }
        },
        "active_deals": {
          "type": "array",
          "items": {
            "type": "object",
            "additionalProperties": true
          }
        },
        "commercial": {
          "type": "object",
          "additionalProperties": false,
          "required": [
            "status",
            "exposure_tier",
            "plan",
            "sponsored",
            "influence",
            "sponsored_ordering",
            "free_exposure_floor"
          ],
          "properties": {
            "status": {
              "type": "string"
            },
            "exposure_tier": {
              "type": "string"
            },
            "plan": {
              "type": "string"
            },
            "sponsored": {
              "const": false
            },
            "influence": {
              "const": "reach_only"
            },
            "sponsored_ordering": {
              "const": "disabled"
            },
            "free_exposure_floor": {
              "type": "null"
            }
          }
        },
        "allowed_actions": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "requires_human_confirmation": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "insurance": {
          "type": "object",
          "additionalProperties": false,
          "required": [
            "status",
            "carrier_name",
            "stated_expires_at",
            "disclosure"
          ],
          "properties": {
            "status": {
              "const": "owner_provided"
            },
            "carrier_name": {
              "const": "Not publicly disclosed"
            },
            "stated_expires_at": {
              "type": [
                "string",
                "null"
              ]
            },
            "disclosure": {
              "const": "Insurance certificate provided by the business. Not independently confirmed by Loppee."
            }
          }
        },
        "brand_assets": {
          "anyOf": [
            {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "logo_url",
                "hero_image_url",
                "gallery_image_urls",
                "hero_alt",
                "source"
              ],
              "properties": {
                "logo_url": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "hero_image_url": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "gallery_image_urls": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "hero_alt": {
                  "type": "string"
                },
                "source": {
                  "type": "string"
                }
              }
            },
            {
              "type": "null"
            }
          ]
        },
        "citation": {
          "type": "object",
          "additionalProperties": true
        },
        "schema_org": {
          "type": "object",
          "additionalProperties": true
        },
        "updated_at": {
          "type": "string"
        }
      }
    }
  }
}