How to get Invoice as a pdf using API

Originally posted by Ankit

I have used attachment API to get details of invoice agaiinst Job but I just receive file name with extension (invoice1.pdf) but not the path of invoice.

How can I get actual Invoice against jopb?

Thank you.