How do I go about documenting this and is it tax deductible?
First talk with your Tax Preparer.
There are many variables which must considered, which will be specific to your unique situation.
Way better to work out the correct way to do this before you conduct the transaction.