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
    • uuid string

      uuid of the contribution

    • datetime the contribution was created

    • datetime the contribution was updated

    • paid_at string

      datetime the money was paid

    • value object

      contribution value

      Additional properties are allowed.

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-10-20","ended_at":"2024-11-20","paid_at":"2024-11-20","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-10-20",
  "ended_at": "2024-11-20",
  "paid_at": "2024-11-20",
  "value": 4000,
  "notes": "Example Notes"
}
Response examples (200)
{
  "uuid": "7966320b-cb04-468a-8a03-4cf4f7ad199c",
  "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-11-20T13:24:03+00:00",
  "created_at": "2024-11-20T13:24:03+00:00",
  "updated_at": "2024-11-20T13:24:03+00:00"
}