Airalo Partner API & SDK Documentation

website·Indexed 34 days ago

https://partner-api-airalo.apidog.io

Developer resources for integrating Airalo's eSIM connectivity services. Includes documentation for the REST API and SDK, covering package browsing, order placement, eSIM installation, usage monitoring, and top-ups. Features guides on webhooks, sandbox testing, rate limits, and a dedicated plugin for WooCommerce.

Tokens
113.3K
Snippets
364
Records
541
Agent score
45%

What's inside Airalo

  1. Overview of Airalo Plugin for WooCommerce

    The Airalo Plugin for WooCommerce synchronizes eSIM packages from the Airalo platform to a WooCommerce store and automates order submissions. Key features include automatic product synchronization to keep listings up to date, automatic order submission to the Partner REST API once a payment is completed, and a configuration interface within the WooCommerce admin panel.
  2. Overview of Airalo Webhooks

    Airalo uses webhooks to push real-time data updates to a designated endpoint URL. When performing an opt-in, the system verifies the webhook_url via a HEAD request; the endpoint must respond with 200 OK for the opt-in to be successful.

    Airalo supports three types of webhooks:

    • Async Order
    • Low Data Notification
    • Credit Limit Notification
  3. Overview of the Airalo Partner API

    The Airalo Partner API is a REST API that allows developers to integrate Airalo's eSIM connectivity features into their own applications. Key capabilities include managing eSIM orders, sharing eSIMs with users, and receiving real-time notifications for low data balances.
  4. Overview of White Label platform services

    The White Label solution consists of two primary services:

    1. Partner Platform: A secure administrative backend for partner employees to manage the e-shop, set pricing, control inventory, review support requests, and configure payments. It supports SSO integration.
    2. White Label Storefront: The customer-facing e-shop where end-users browse, purchase, top-up, and manage eSIMs under the partner's brand.
  5. Overview of Airalo Partner API Sandbox mode

    Sandbox mode is a simulation environment for developing and testing integrations with the Airalo Partner API, SDKs, or WooCommerce plugin. It allows developers to validate workflows without incurring real charges, affecting live data, or provisioning real eSIMs. Sandbox and Production modes share the same API credentials and base URL.
  6. Understand the Get Packages response schema

    The Get Packages endpoint returns detailed information about eSIM packages, including pricing across multiple currencies, installation methods, and coverage details.

    Key data fields include:

    • Pricing: Includes price, net_price, and a prices object containing specific values for currencies such as USD, EUR, GBP, AUD, BRL, CAD, AED, INR, IDR, ILS, JPY, MYR, MXN, SGD, KRW, VND, and ZAR.
    • Package Details: id, type, amount (data volume), day (validity period), title, and short_info.
    • Installation: qr_installation and manual_installation strings provide the necessary details for the user to activate the eSIM.
    • Policies: is_unlimited (boolean) and is_fair_usage_policy (boolean) indicate the data limits and usage terms.
    • Technical Specs: apn_type, apn_value, esim_type, and is_roaming.
    • Coverage: The coverages array contains objects with the country name, code, and associated networks.
  7. Understand Airalo package data structure

    Airalo API package objects provide detailed information about eSIM plans, including installation instructions, pricing across multiple currencies, and plan specifications. Key fields include qr_installation and manual_installation (HTML formatted instructions), net_price (base cost), and a prices object containing net_price and recommended_retail_price mapped by currency codes (e.g., USD, EUR, GBP).
    - id: change-plus-7days-3gb-topup
      type: topup
      price: 12
      amount: 3072
      day: 7
      is_unlimited: false
      title: 3 GB - 30 SMS - 30 Mins - 7 days
      net_price: 4.6
      prices:
        net_price:
          USD: 4.6
          EUR: 3.96
          GBP: 3.45
        recommended_retail_price:
          USD: 12
          EUR: 10.32
          GBP: 9
      qr_installation: "<p>...HTML instructions...</p>"
      manual_installation: "<p>...HTML instructions...</p>"
  8. Understand Airalo package data structure

    When retrieving packages from the Airalo API, the response includes detailed information about eSIM plans, including installation instructions, pricing across multiple currencies, and plan specifications. Key fields include qr_installation and manual_installation (HTML formatted instructions), net_price (base cost), and a prices object containing net_price and recommended_retail_price mapped by currency codes (e.g., USD, EUR, GBP).
    {
      "id": "mamma-mia-in-30days-10gb-topup",
      "type": "topup",
      "price": 20.5,
      "amount": 10240,
      "day": 30,
      "is_unlimited": false,
      "title": "10 GB - 30 days",
      "net_price": 5.1,
      "prices": {
        "net_price": {
          "USD": 5.1,
          "EUR": 4.39,
          "GBP": 3.82
        },
        "recommended_retail_price": {
          "USD": 20.5,
          "EUR": 17.63,
          "GBP": 15.38
        }
      },
      "qr_installation": "<p>...</p>",
      "manual_installation": "<p>...</p>"
    }
  9. Benefits of using Airalo SDKs over direct API calls

    Using the Airalo SDKs for B2B Partner API integration provides several technical advantages:

    • Simplified Integration: Abstracts API complexities by providing pre-built methods for authentication, data retrieval, and error handling, reducing boilerplate code.
    • Security: Includes built-in automatic authentication and encryption mechanisms to secure communication with the API.
    • Performance Optimization: Internally manages caching and rate limiting to reduce redundant calls and handle API limits efficiently.
    • Data Management: Supports automatic pagination and bulk operations for handling large datasets.
    • Consistency: Standardizes API responses to improve code readability and data consistency.
  10. Understand the Airalo package data structure

    When retrieving packages from the Airalo API, the response contains detailed information about the eSIM plan, including activation policies, network coverage, and pricing across multiple currencies. Key fields include plan_type (e.g., data-voice-text), activation_policy, install_window_days, and apn settings for both iOS and Android. Each package object contains specific details such as id, type (e.g., 'sim' or 'topup'), amount (data in MB), day (validity period), and HTML-formatted installation instructions (qr_installation and manual_installation).
    plan_type: data-voice-text
    activation_policy: first-usage
    is_kyc_verify: false
    rechargeability: true
    coverages:
      - name: US
        code: US
        networks:
          - name: T-Mobile
            types: ["5G"]
    packages:
      - id: change-plus-3days-1gb
        type: sim
        price: 6
        amount: 1024
        day: 3
        data: 1 GB
        voice: 10
        text: 10
        prices:
          net_price:
            USD: 2.8
            EUR: 2.41
          recommended_retail_price:
            USD: 6
            EUR: 5.16
  11. Retrieve a list of available eSIMs via GET /v2/sims

    The GET /v2/sims endpoint returns a paginated list of eSIMs. Each eSIM record contains critical installation data, including the ICCID, LPA, and QR code information, as well as details about the associated order and package.
    // Example Response Structure
    {
      "data": [
        {
          "id": 11047,
          "created_at": "2023-02-27 14:09:55",
          "iccid": "891000000000009125",
          "lpa": "lpa.airalo.com",
          "imsis": null,
          "matching_id": "TEST",
          "qrcode": "LPA:1$lpa.airalo.com$TEST",
          "qrcode_url": "https://sandbox.airalo.com/qr?expires=...",
          "direct_apple_installation_url": "https://esimsetup.apple.com/esim_qrcode_provisioning?carddata=...",
          "voucher_code": null,
          "airalo_code": null,
          "apn_type": "automatic",
          "apn_value": null,
          "is_roaming": true,
          "confirmation_code": null,
          "order": null,
          "brand_settings_name": "our perfect brand",
          "recycled": true,
          "recycled_at": "2025-05-05 10:52:39",
          "simable": {
            "id": 9666,
            "code": "20230227-009666",
            "package_id": "kallur-digital-7days-1gb",
            "package": "Kallur Digital-1 GB - 7 Days",
            "esim_type": "Prepaid",
            "validity": "7",
            "price": "9.50",
            "currency": "USD",
            "data": "1 GB",
            "manual_installation": "<p>HTML content for manual setup</p>"
          }
        }
      ],
      "links": {
        "first": "...",
        "last": "...",
        "prev": null,
        "next": "..."
      },
      "meta": {
        "current_page": 1,
        "from": 1,
        "last_page": 10,
        "per_page": "15",
        "to": 15,
        "total": 150
      }
    }
  12. Understand Airalo package data structure

    When retrieving packages from the Airalo API, the response contains detailed information about eSIM plans, including installation instructions, pricing across multiple currencies, and network details. Key fields include qr_installation and manual_installation (HTML formatted instructions), net_price and recommended_retail_price (mapped by currency code), and apn_value for manual network configuration.
    {
      "id": "change-in-30days-3gb-topup",
      "type": "topup",
      "title": "3 GB - 30 days",
      "data": "3 GB",
      "net_price": 3,
      "prices": {
        "net_price": {
          "USD": 3,
          "EUR": 2.58,
          "GBP": 2.25
        },
        "recommended_retail_price": {
          "USD": 9,
          "EUR": 7.74,
          "GBP": 6.75
        }
      },
      "qr_installation": "<p>HTML content for QR setup</p>",
      "manual_installation": "<p>HTML content for manual setup</p>",
      "apn_value": "wbdata"
    }