For example, can I use a single api call to get all the contributions from contact a and contact b. My actual need is to get contributions from the contact and any related contacts, but I assume I need to do that as a previous step, which is done.

1 Answer 1


Yes, I just used the new API explorer in 4.6 and got a sample PHP call:

$result = civicrm_api3('Contribution', 'get', array( 
  'sequential' => 1,
  'contact_id' => array('IN' => array(58, 25)),

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.