{
  "id": "VAL-003",
  "name": "Opportunity Amount field should return 400 when string is sent",
  "description": "Opportunity's numeric field Amount receiving string value (e.g. 'fifty thousand') should return 400 type error.",
  "variables": {
    "account_id": "{run_uuid}"
  },
  "object": "Opportunity",
  "method": "POST",
  "endpoint": "/services/data/v63.0/sobjects/Opportunity",
  "payload": {
    "Name": "Opportunity Type Validation Test",
    "AccountId": "{account_id}",
    "Amount": "fifty thousand",
    "StageName": "Prospecting",
    "CloseDate": "2026-12-31"
  },
  "setup": [
    {
      "type": "sql",
      "sql": "INSERT INTO Account (Id, Name, Type, Industry, IsDeleted, CreatedDate, LastModifiedDate, SystemModstamp) VALUES (%s, %s, %s, %s, %s, %s, %s, %s)",
      "params": [
        "{account_id}",
        "VAL-003 Account",
        "Customer - Direct",
        "ISV/SaaS-Software",
        0,
        "{db_timestamp}",
        "{db_timestamp}",
        "{db_timestamp}"
      ]
    }
  ],
  "teardown": [
    {
      "type": "sql",
      "sql": "DELETE FROM Account WHERE Id = %s",
      "params": ["{account_id}"]
    }
  ],
  "expects": {
    "status_code": 400
  },
  "priority": "P1",
  "bug_ref": "#549",
  "scene": "validation"
}
