Reactivate a Subscription

A suspended subscription can be reactivated.

In order to reactivate the subscription you must call the endpoint POST /api/v2Payment/Subscriptions/{id}/activate:

Request
POST /api/v2Payment/Subscriptions/SUB_WNFRN9X2ZV8W3411BVM4D8UO6WJUOP/activate HTTP/1.1
Host: connect-testing.secuconnect.com
Authorization: Bearer qb56tjj1bcvo9n2nj4u38k84lo
Content-Type: application/json
Accept: application/json
 
{
"reason": "Reactivating the subscription"
}

The field reason is optional.

If everthing is fine, the API responds with 200 OK, and the representation of the Subscription object:

Request
HTTP/1.1 200 OK
Content-Type: application/json
...
 
{
"object": "payment.subscriptions",
"id": "SUB_WNFRN9X2ZV8W3411BVM4D8UO6WJUOP",
"status": "activated",
"reason": "Reactivating the subscription"
}

The status activated tells about the active contract.