Send contribution receipt when updating contribution via API
I found my own answer in this api function: 

civicrm_api3('contribution', 'sendconfirmation', array('id' =&gt; $result['id']));


This triggers the confirmation email to be sent. 

P.S. I wish there was something similar for the Event Participants, that seems to be quite trickier.