Airalo Developer Platform
  1. eSIMs
Airalo Developer Platform
  • OVERVIEW
    • Introduction
    • Partner with Airalo
    • Attribute descriptions
    • FAQ
    • User journeys
      • Purchase journey
      • Top-up journey
    • Guides
      • How to set up a brand for eSIMs Cloud link sharing
      • How to get the eSIMs Cloud sharing link through API
      • How to generate the QR code for an eSIM
      • eSIM installation methods for API Partners
  • REST API
    • Introduction
    • Rate limits
    • Error handling
    • Guides
      • Step #1 - Authentication
    • Quick start
      • Request access token
      • Get packages
      • Submit order
      • Get installation instructions
    • Endpoints
      • Orders List
        • Get order list
        • Get order
      • Top-up flow
        • Get eSIMs list
        • Get top-up package list
        • Get eSIM package history
      • Notification
        • Understanding Webhooks: Asynchronous Communication for Modern Applications
        • Airalo Webhooks Optin and Flow
        • Async orders
        • Low data notification - opt In
        • Low data notification - opt out
        • Get low data notification
        • Credit limit notification
        • Webhook definition
        • Webhook simulator
      • Balance
        • Get balance
      • Request access token
      • Get compatible device list
      • Get packages
      • Submit order
      • Submit order async
      • Submit top-up order
      • Get eSIM
      • Get data usage
      • Get installation instructions
      • Update eSIM brand
      • eSIM voucher
      • Refund Request
      • Future Orders
      • Cancel future orders
    • Deprecated
      • Authentication
        • Request Access Token
      • Orders
        • Get Order List
        • Get Order
        • Submit Order
        • Submit Top-up Order
      • eSIMs
        • Get eSIMs List
          GET
        • Get eSIM
          GET
        • Get Installation instructions
          GET
        • Get Data Usage
          GET
        • Get Top-up Package List
          GET
        • Get eSIM Package History
          GET
      • Order Statuses
        • Get Order Statuses List
        • Get Order Status Name
      • Packages
        • Get Packages
      • Compatible Devices
        • Get Compatible Device List
      • Notification
        • Low Data Notification
        • Credit Limit Notification
        • Webhook Definition
        • Webhook Simulator
  • SDKs
    • Introduction
    • SDK vs. REST API
    • Technical notes
  • WOOCOMMERCE PLUGIN
    • Introduction
    • Guides
      • How to install the plugin
      • How to setup the Shop price?
      • Customizing "My eSIM" page colors in WooCommerce
      • How to convert prices into local currency
      • How to finalize the shop setup
      • How to test in sandbox
      • How to go live
      • Customizing WooCommerce email templates for eSIM sales
    • Troubleshooting
  • SHOPIFY INTEGRATION
    • Introduction
    • Guides
      • How to install the Airalo Shopify App
      • How to set up prices in Shopify
  1. eSIMs

Get eSIM Package History

GET
/v1/sims/{iccid}/packages
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
application/json
Body
data
array [object {7}] 
required
id
integer 
required
status
string 
required
remaining
integer 
required
activated_at
string 
required
expired_at
string 
required
finished_at
null 
required
package
object 
required
Example
{
  "data": [
    {
      "id": 728,
      "status": "ACTIVE",
      "remaining": 2378,
      "activated_at": "2023-01-09T10:30:45+00:00",
      "expired_at": "2023-02-09T10:30:45+00:00",
      "finished_at": null,
      "package": {
        "id": "bonbon-mobile-30days-3gb-topup",
        "type": "topup",
        "price": 10,
        "amount": 3072,
        "day": 30,
        "is_unlimited": false,
        "title": "3 GB - 30 Days",
        "data": "3 GB",
        "short_info": null
      }
    },
    {
      "id": 725,
      "status": "ACTIVE",
      "remaining": 2496,
      "activated_at": "2023-01-09T10:30:45+00:00",
      "expired_at": "2023-02-09T10:30:45+00:00",
      "finished_at": null,
      "package": {
        "id": "bonbon-mobile-30days-3gb-topup",
        "type": "topup",
        "price": 10,
        "amount": 3072,
        "day": 30,
        "is_unlimited": false,
        "title": "3 GB - 30 Days",
        "data": "3 GB",
        "short_info": null
      }
    }
  ]
}
🟢200eSIM: List purchased top-up packages (history): 404 (Invalid ICCID)
🟠429eSIM: List purchased top-up packages (history): 429 (Rate Limit)
Modified at 2024-11-22 09:33:20
Previous
Get Top-up Package List
Next
Get Order Statuses List
Built with