Update a contribution [DEPRECATED: Use transaction routes]

PUT /api/v1/plans/{plan_uuid}/sub-accounts/{subAccount_uuid}/contributions/{uuid}

Path parameters

application/json

Body Required

  • type string 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".

  • value integer

    The value of the contribution in pennies. For example, £40.00 would be 4000.

  • notes string

    Optional notes to add to the contribution.

Responses

  • 200 application/json
    Hide response attributes Show response attributes object
PUT /api/v1/plans/{plan_uuid}/sub-accounts/{subAccount_uuid}/contributions/{uuid}
curl \
 -X PUT https://api.plannrcrm.com/api/v1/plans/plan_uuid/sub-accounts/subAccount_uuid/contributions/uuid \
 -H "Authorization: Bearer {OAUTH_ACCESS_TOKEN or PERSONAL_ACCESS_TOKEN}" \
 -H "Content-Type: application/json" \
 -H "Accept: application/json" \
 -d '{"type":"recurring","contributor_type":"self","frequency":"monthly","started_at":"2024-09-16","ended_at":"2024-10-16","paid_at":"2024-10-16","value":4000,"notes":"Example Notes"}'
Request examples
# Headers
Authorization: Bearer {OAUTH_ACCESS_TOKEN or PERSONAL_ACCESS_TOKEN}
Content-Type: application/json
Accept: application/json

# Payload
{
  "type": "recurring",
  "contributor_type": "self",
  "frequency": "monthly",
  "started_at": "2024-09-16",
  "ended_at": "2024-10-16",
  "paid_at": "2024-10-16",
  "value": 4000,
  "notes": "Example Notes"
}
Response examples (200)
{
  "uuid": "bbe9cb45-b939-4f9b-bb22-919784abe2b2",
  "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": "2024-10-16T11:10:16+01:00",
  "created_at": "2024-10-16T11:10:16+01:00",
  "updated_at": "2024-10-16T11:10:16+01:00"
}