4,156 questions
4,369 answers
5,718 comments
You should use the following:
getrawtransaction [txid] 1
Then you can see the previous transaction(s) spent within the vin array of the response.