What is required to post a payment via the API?

I am wanting to simply mark an invoice as quick paid via the API. It looks like I need to post to Payments, but which variables are required?