Update a withdrawal [DEPRECATED: Use transaction routes]
Body
Required
-
The type of withdrawal. Available options: recurring and adhoc
-
The frequency of the withdrawal. Available options: daily, weekly, fortnightly, four_weekly, monthly, bimonthly, quarterly, biannually, annually, adhoc and one_off
-
The start date of a recurring withdrawal. Required if the withdrawal type is "recurring".
-
The end date of a recurring withdrawal. Required if the withdrawal type is "recurring".
-
The date the withdrawal was made. Required if the withdrawal type is "adhoc".
-
The value of the withdrawal.
-
Notes about the withdrawal.
PUT
/api/v1/plans/{plan_uuid}/sub-accounts/{subAccount_uuid}/withdrawals/{uuid}
curl \
--request PUT 'https://api.plannrcrm.com/api/v1/plans/6ff8f7f6-1eb3-3525-be4a-3932c805afed/sub-accounts/6ff8f7f6-1eb3-3525-be4a-3932c805afed/withdrawals/6ff8f7f6-1eb3-3525-be4a-3932c805afed' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{"type":"recurring","frequency":"monthly","started_at":"2025-05-26","ended_at":"2025-06-26","withdrawn_at":"2025-06-26","value":50000,"notes":"Example Notes"}'
Request examples
{
"type": "recurring",
"frequency": "monthly",
"started_at": "2025-05-26",
"ended_at": "2025-06-26",
"withdrawn_at": "2025-06-26",
"value": 50000,
"notes": "Example Notes"
}
Response examples (200)
{
"uuid": "9ce20b39-93d9-4d2c-8a2e-51fab5a6c4af",
"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"
}
},
"created_at": "2025-06-26T11:37:08+01:00",
"updated_at": "2025-06-26T11:37:08+01:00",
"withdrawn_at": "2025-06-26T11:37:08+01:00"
}