Importing Purchase Invoices with a file

Please provide the documentation for a file import of purchase invoices.

Can this be done?

The API throws an error and I need to provide an alternate method.

Thx,

Jean