This has been answered on the board, should have searched 😉... Just have the seller send the buyer (you) a copy of the original invoice/receipt.
Then you will have to mail apple the following...
a copy of the receipt and the serial number of the machine and the new owner's name.
I think this is only required with applecare, normal warranty you should not need this.