Update a contribution [DEPRECATED: Use transaction routes]
Body
Required
-
The type of contribution. Available options: recurring and adhoc
-
The type of contributor. Available options: self, employer, family, government, salary_sacrifice and other
-
The frequency of the contribution. Required if the contribution type is "recurring". Available options: daily, weekly, fortnightly, four_weekly, monthly, bimonthly, quarterly, biannually, annually, adhoc and one_off
-
The start date of a recurring contribution. Required if the contribution type is "recurring".
-
The end date of a recurring contribution. Required if the contribution type is "recurring".
-
The date the adhoc contribution was paid. Required if the contribution type is "adhoc".
-
The value of the contribution in pennies. For example, £40.00 would be 4000.
-
Optional notes to add to the contribution.
curl \
--request PUT 'https://api.plannrcrm.com/api/v1/plans/6ff8f7f6-1eb3-3525-be4a-3932c805afed/sub-accounts/6ff8f7f6-1eb3-3525-be4a-3932c805afed/contributions/6ff8f7f6-1eb3-3525-be4a-3932c805afed' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{"type":"recurring","contributor_type":"self","frequency":"monthly","started_at":"2025-05-26","ended_at":"2025-06-26","paid_at":"2025-06-26","value":4000,"notes":"Example Notes"}'
{
"type": "recurring",
"contributor_type": "self",
"frequency": "monthly",
"started_at": "2025-05-26",
"ended_at": "2025-06-26",
"paid_at": "2025-06-26",
"value": 4000,
"notes": "Example Notes"
}
{
"uuid": "78bba5f9-449f-4229-8760-810db19b190e",
"value": {
"amount": {
"example": "4000",
"description": "Money amount at their lowest denominator (for example: pennies)"
},
"currency": {
"example": "GBP",
"description": "Currency of the money"
},
"formatted": {
"example": "£40.00",
"description": "Money amount formatted with currency"
}
},
"paid_at": "2025-06-26T11:37:08+01:00",
"created_at": "2025-06-26T11:37:08+01:00",
"updated_at": "2025-06-26T11:37:08+01:00"
}