Can I check data usage?

Data usage and remaining validity can be checked in several places.

Check Data Usage Via API #

You can check the data usage of any of your purchased eSIM plans via the Query All Allocated Profiles endpoint using the ICCID of the purchased eSIM

Postman Example #

Here we use postman to check the eSIM balance status.

Postman API usage check
Check total usage of an eSIM with ICCID via API with Postman.

API CURL Example #

You will pass the iccid of the eSIM profile you wish to check.

curl --location 'https://api.esimaccess.com/api/v1/open/esim/list' \
--data '{
    "iccid":"89852245280001113019",
    "pager":{
        "pageNum":1,
        "pageSize":20
    }
}

'

The response will give both the total amount of totalVolume and the remaining data orderUsage. totalVolumeorderUsage = remaining

 "esimList": [
      {
        "orderNo": "B23051616050537",
        "imsi": "425019613279052",
        "iccid": "89852245280001113019",
        "ac": "LPA:1$rsp.redteago.com$CDB21D069D3B452F98B3426578A5FD11",
        "qrCodeUrl": "http://static.redtea.io//hedy/qrcodes/image/dc112db2773c4639962f0ba3215261ab.png",
        "smdpStatus": "RELEASED",
        "eid": "",
        "activeType": 0,
        "expiredTime": "2023-06-15T16:56:16+0000",
        "totalVolume": 104857600,
        "totalDuration": 30,
        "durationUnit": "DAY",
        "orderUsage": 0,
        "packageList": [
          {
            "packageCode": "7aa948d363",
            "duration": 30,
            "volume": 104857600,
            "locationCode": "CN"
          }
        ],
        "esimTranNo": "23051616968995",
        "esimStatus": "GOT_RESOURCE"
      }
    ]
  }
}

Learn More #

Webhooks will fire upon low data or low validity.

Did this answer your question?