{
  "id": "LC-008",
  "name": "Opportunity fields should update after Stage advancement",
  "description": "Opportunity fields like ForecastCategory should be updated when Stage advances.",
  "object": "Opportunity",
  "method": "PATCH",
  "endpoint": "/services/data/v63.0/sobjects/Opportunity/{opportunity_id}",
  "payload": {
    "StageName": "Discovery & Qualification",
    "ForecastCategory": "Pipeline"
  },
  "expects": {
    "status_code": 204
  },
  "setup": [
    {
      "type": "sql",
      "sql": "DELETE FROM `Opportunity` WHERE Name = 'LC008 Test Opp'",
      "expected_status": 200
    },
    {
      "type": "sql",
      "sql": "INSERT INTO `Opportunity` (Id, Name, StageName, CloseDate, AccountId, Amount) VALUES ('lcmrs-lc008-opp-001', 'LC008 Test Opp', 'Prospecting', '2026-12-31', '{seed_Account_0}', 50000)",
      "expected_status": 200,
      "id_var": "opportunity_id",
      "id_value": "lcmrs-lc008-opp-001"
    }
  ],
  "priority": "P0",
  "scene": "lead_convert"
}
