On my CiviCRM site, I have a v3 API to update the status of a pending contribution (for payments sent offline). The current PHP code for this is the following:

$params = array( 
  'contribution_id' => $contribid,
  'payment_instrument_id' => 4, // check = 4
  'note' => 'Contribution record updated via group updater',
  'contribution_status_id' => 1,
  'version' => 3,

$result = civicrm_api( 'contribution','create',$params );

This works well, but I would like to be able to send a receipt to the person that submitted this contribution via this API call. Is that doable?

1 Answer 1


I found my own answer in this api function:

civicrm_api3('contribution', 'sendconfirmation', array('id' => $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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.