{
  "id": "LC-CONVERTED-DATE",
  "name": "Successful Lead Convert populates Lead.ConvertedDate",
  "description": "B4 regression: stampConvertedAnchors auto-stamps Lead.ConvertedDate on every successful convert. SF guarantees this field is populated; reports and pipelines depend on it. Without this, converted Lead rows would have IsConverted=true + ConvertedDate=null.",
  "object": "LeadConvert",
  "method": "POST",
  "endpoint": "/services/data/v63.0/actions/standard/convertLead",
  "payload": {
    "inputs": [
      {
        "leadId": "{seed_Lead_0}",
        "convertedStatus": "Converted",
        "accountId": "",
        "doNotCreateOpportunity": true
      }
    ]
  },
  "expects": {
    "status_code": 200
  },
  "query_after": {
    "object": "Lead",
    "record_id": "{seed_Lead_0}",
    "assertions": [
      {"field": "Id",          "operator": "eq",     "value": "{seed_Lead_0}"},
      {"field": "IsConverted", "operator": "eq",     "value": true},
      {"field": "ConvertedDate", "operator": "is_not_null"}
    ]
  },
  "priority": "P0",
  "scene": "lead_convert"
}
