{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/envoisms-ma/json-schema/envoisms-ma-qualified-lead-schema.json",
  "title": "QualifiedLead",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/envoisms-ma-api-openapi.json#/components/schemas/QualifiedLead",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "phone_number_id": {
      "type": "string"
    },
    "contact_phone": {
      "type": "string"
    },
    "contact_name": {
      "type": "string"
    },
    "preset": {
      "type": "string"
    },
    "category": {
      "type": "string"
    },
    "bant_score": {
      "type": "integer",
      "description": "Qualification score, 0–100"
    },
    "urgency": {
      "type": "string"
    },
    "budget": {
      "type": "string"
    },
    "authority": {
      "type": "string"
    },
    "notes": {
      "type": "string"
    },
    "source_type": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "enum": [
        "new",
        "contacted",
        "qualified",
        "Fournisseur",
        "won",
        "lost"
      ]
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time"
    }
  }
}