Reactivate Payment Plan
PATCH/rest/payment_plans/:id/reactivate
/rest/payment_plans/:id/reactivateReactivate a canceled payment plan. Only payment plans with canceled status can be reactivated. When a payment plan is reactivated, all canceled installment transactions are set back to scheduled status. If a payment plan has any past scheduled transactions, you can not reactivate a payment plan. Please, contact us for adjustments of the scheduled dates for reactivation.
Request
idIntegerrequiredPayment plan ID in the URL path
Example Request
PATCH /rest/payment_plans/123/reactivate
Authorization: Basic <base64(api_key:api_password)>
Response
On success, returns the updated payment plan object with status changed to active.
errorStringError details (
null on success)messageStringSuccess or error message
payment_planObjectUpdated payment plan object with
status set to activeExample Response (200)
{
"error": null,
"message": "Payment plan has been successfully reactivated.",
"payment_plan": {
"id": 123,
"status": "active",
"plan_type": "six_months",
"installments": 6
}
}
Error response (422)
errorStringError details
messageStringError message describing why the plan cannot be reactivated
Example Response (422)
{
"error": "Cannot reactivate payment plan",
"message": "Only canceled payment plans can be reactivated. Current status: active"
}