Magento - Automatically import invoices/credits through API

2 posts were split to a new topic: How do I set the rate for the Flat Rate scheme?