This endpoint comes with a Rate Limit: you can pull specific eSIM history info once every 15 minutes.If you send another request too soon, the server's going to respond with a 429 HTTP code. Please check the 'Retry-After' header, it'll tell you how many seconds to wait before the rate limit resets and you can fetch fresh info.Please, use a caching mechanism on the client side to deal with frequent customer requests.To get and display this eSIM’s data package history, including top-ups:Make a GET request to the endpoint URL https://partners-api.airalo.com/v1/sims/:iccid/packages, replacing :iccid with the ICCID of the eSIM for which you want to retrieve top-up package information.The API will respond with a JSON object containing an array of purchased top-up packages for the eSIM, each of which includes an ID, remaining data amount, activation and expiration dates, and other information.
Request
Path Params
iccid
string
required
eSIM ICCID, used to query a list of purchased packages, including top-ups. Required. Can be obtained by execuring GET to the "eSIMs List" endpoint
Example:
8910300000005271146
Header Params
Accept
string
required
Example:
application/json
Authorization
string
required
Example:
Bearer {{token}}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl--location--request GET '/v1/sims/8910300000005271146/packages' \
--header'Accept: application/json' \
--header'Authorization: Bearer {{token}}'
Responses
🟢200eSIM: List purchased top-up packages (history): 200 OK