Can I check data usage?

You can check the data usage of any of your purchased eSIM plans via the query plan endpoint.

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 data volume and the remaining data orderUsage.

 "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"
      }
    ]
  }
}
Did this answer your question?