CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion »
  • APIs and Hooks (Moderator: Donald Lobo) »
  • search contributions in date range with the REST API
Pages: [1]

Author Topic: search contributions in date range with the REST API  (Read 426 times)

ktate

  • I’m new here
  • *
  • Posts: 4
  • Karma: 0
  • CiviCRM version: 4.3.5
  • CMS version: Drupal 6
  • MySQL version: 5.6.16
  • PHP version: 5.5.3
search contributions in date range with the REST API
July 12, 2014, 03:36:30 pm
Hi all,

One can filter activities by date range using the rest api:

[path to civicrm]/extern/rest.php?entity=activity&action=get&filter.activity_date_time_low=20140101000000&key=[key]&api_key=[api_key]

but this doesn't seem to extend to contributions using filter.receive_date_low=

Is there anyway to get contributions in a date range with the rest api?

Thanks

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: search contributions in date range with the REST API
July 14, 2014, 10:02:11 am
the format we are working on is 'receive_date' => array('>' => 'today');

I patched modified_date in 4.5 - https://issues.civicrm.org/jira/browse/CRM-14743 - but the patch wasn't specific to modified date so it might make it work - here is the patch to apply it to 4.4

https://github.com/fuzionnz/civicrm-core/commit/e2a7ba438e931dd708ff19a441689f9a0c42fb38
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion »
  • APIs and Hooks (Moderator: Donald Lobo) »
  • search contributions in date range with the REST API

This forum was archived on 2017-11-26.