Tax year 2016 1099-K forms will be available to eligible customers through the tax portal by January 27, 2017. For more information please see our common 1099 and tax related questions.
Welcome to the Forums.
If there is not someone from the this Forum that is able to help you out with code, you can also checkout the PayPal Developer Forums. I hope this helps.
©1999-2017 PayPal, Inc. All rights reserved.