---
title: "Score"
url: "https://real-estate-agency.apim.eu/apis/leads/versions/d1fa19e4-3a7d-4b6b-aac0-9ec016571b4b/schemas/Score"
---

> Full API specification: https://real-estate-agency.apim.eu/apis/leads/versions/d1fa19e4-3a7d-4b6b-aac0-9ec016571b4b.md

# Score

## OpenAPI definition

```yaml
openapi: 3.0.3
info:
  title: Leads & Inquiries
  version: 1.0.0
servers:
  - url: https://api.realestateagency.example/v1
    description: Production
  - url: https://sandbox.api.realestateagency.example/v1
    description: Sandbox
components:
  schemas:
    Criterion:
      type: object
      properties:
        criterion:
          type: string
          example: purchase_price
        met:
          type: boolean
          example: true
        weight:
          type: integer
          example: 30
    Score:
      type: object
      properties:
        inquiry_id:
          type: string
          example: inq_5c02
        lead_id:
          type: string
          example: lead_71ab
        points:
          type: integer
          minimum: 0
          maximum: 100
          example: 82
        rating:
          type: string
          enum:
            - low
            - medium
            - high
        criteria:
          type: array
          items:
            $ref: "#/components/schemas/Criterion"
```
