'description'=>'If there are a lot of contributions this can be quite intensive. Optionally limit the number to process in a batch and run this API call multiple times',
$params['recalculate_amount']['description']='Recalculate Gift Aid amounts even if they already have the eligible flag set. This will not touch contributions already in a batch.';
You can use the `limit` and `offset` API3 options to control how many entities these APIs will process each run.
### Update Eligible Contributions
GiftAid.updateeligiblecontributions - API to set "Eligible for Gift Aid" on all contributions where
it was not previously set.
...
...
@@ -14,7 +16,19 @@ Note that a contribution's eligibility is based on the financial types of the li
#### Parameters
-`contribution_id` (int): Contribution ID: Optional contribution ID to update.
-`limit` (int): Limit number to process in one go: If there are a lot of contributions this can be quite intensive. Optionally limit the number to process in a batch and run this API call multiple times.
- If missing/false (default), only calculate amounts (and eligibility) for contributions that do not have eligibility known.
- If true, recalculate Gift Aid amounts (but not eligibility) for contributions that have the eligible flag set.
### Update Declarations
GiftAid.updatedeclarations - API to update existing declarations that may be invalid (eg. were imported, missing address etc.).
!! note
This API only updates the first declaration for a contact
#### Parameters
-`contact_id` (int/array): Contact IDs to check and update declarations. Use the API3 ['IN' => [123,223]] format for multiple contact IDs.
-`start_date` (string): Declaration start date - if not set defaults to existing date or contact created_date.
-`given_date` (string): Declaration given date - if not set defaults to existing date or start_date or contact created_date.
-`source` (string): Source text if existing declaration source text is empty.
-`has_start_date` (bool): Existing declaration has start date? Choose whether to update declarations which have/have not a start_date set. This is useful for updating ones with a start_date differently to ones without (eg. adding different source text).