Suspend a subscription
curl --request POST \
--url https://api.bondio.co/v2/subscriptions/{xid}/suspend \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.bondio.co/v2/subscriptions/{xid}/suspend"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.bondio.co/v2/subscriptions/{xid}/suspend', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"currentState": "PENDING"
}SubscriptionV2
Suspend a subscription
POST
/
v2
/
subscriptions
/
{xid}
/
suspend
Suspend a subscription
curl --request POST \
--url https://api.bondio.co/v2/subscriptions/{xid}/suspend \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.bondio.co/v2/subscriptions/{xid}/suspend"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.bondio.co/v2/subscriptions/{xid}/suspend', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"currentState": "PENDING"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
iccid or id of the subscription
Response
200 - application/xml
OK
Available options:
PENDING, ACTIVE, SUSPENDED, TERMINATED 
