Get subscription state info
curl --request GET \
--url https://api.bondio.co/v2/subscriptions/{xid}/state-info \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.bondio.co/v2/subscriptions/{xid}/state-info"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.bondio.co/v2/subscriptions/{xid}/state-info', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"currentState": "PENDING"
}SubscriptionV2
Get subscription state info
This is used to fetch the subscription state which can be in any of the following states-
PENDING - The subscription is pending on the telco system to be setup and so its not ready to be used.
ACTIVE - The subscription is setup on the telco system and data serivce can be used if there is a valid plan attached to it.
SUSPENDED - The subscription is paused and NO data service can be used, even from a valid active plan attachment.
TERMINATED - The subscription is permanently terminated. No data service can be used and no plan can be attached further.
GET
/
v2
/
subscriptions
/
{xid}
/
state-info
Get subscription state info
curl --request GET \
--url https://api.bondio.co/v2/subscriptions/{xid}/state-info \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.bondio.co/v2/subscriptions/{xid}/state-info"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.bondio.co/v2/subscriptions/{xid}/state-info', 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/json
OK
Available options:
PENDING, ACTIVE, SUSPENDED, TERMINATED 
