Pause the subscription

Pause the subscription

You can use this API to pause the subscription. The subscription can be paused up to specific duration related to the type of the proxy plan.

AttributesTypeDescription
durationstring

The requested duration to pause the subscription. The shared proxy plan can be paused up to 12 weeks. The deticated proxy plan can be paused up to 4 weeks.

Request & Response

POST https://proxy.webshare.io/api/v2/subscription/pause/
pause.py
import requests
 
response = requests.post(
    "https://proxy.webshare.io/api/v2/subscription/pause/",
    json={
        "duration": "28 days",
    },
    headers={"Authorization": "Token "},
)
 
response.json()

The commands above return JSON structured like this:

response.json
{
  "id": 1,
  "plan": 2,
  "payment_method": 1,
  "free_credits": 13.37,
  "term": "monthly",
  "start_date": "2022-06-14T11:19:14.489458-07:00",
  "end_date": "2022-07-14T11:19:14.489461-07:00",
  "renewals_paid": 0,
  "failed_payment_times": 0,
  "account_discount_percentage": 0,
  "promotion_available_first_time_renewal_25_off": false,
  "customizable": true,
  "paused": true,
  "reactivation_date": "2022-08-14T11:58:10.246406-07:00",
  "reactivation_period_left": "29 23:59:49.627776",
  "throttled": false,
  "created_at": "2022-06-14T11:58:10.246406-07:00",
  "updated_at": "2022-06-14T11:58:10.246406-07:00"
}