Airalo Developer Platform
  1. Notification
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
      • How to share eSIM installation instructions with users
      • eSIM installation methods for API Partners
  • REST API
    • Introduction
    • Product updates
    • 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 eSIM
        • Get Installation instructions
        • Get Data Usage
        • Get Top-up Package List
        • Get eSIM Package History
      • Order Statuses
        • Get Order Statuses List
        • Get Order Status Name
      • Packages
        • Get Packages
      • Compatible Devices
        • Get Compatible Device List
      • Notification
        • Low Data Notification
          POST
        • Credit Limit Notification
          POST
        • Webhook Definition
          POST
        • Webhook Simulator
          POST
  • SDKs
    • Introduction
    • SDK vs. REST API
    • Technical notes
  • WOOCOMMERCE PLUGIN
    • Introduction
    • Product updates
    • 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
      • TO DELETE Installation plugin backup
      • Customizing WooCommerce email templates for eSIM sales
    • Troubleshooting
      • Troubleshooting
  • SHOPIFY INTEGRATION
    • Introduction
    • Guides
      • How to install the Airalo Shopify App
      • How to set up prices in Shopify
  1. Notification

Credit Limit Notification

POST
/v1/notifications/opt-in
Receive notifications regarding your credit limit as it reaches specific thresholds. You have
the flexibility to opt-in for various levels based on your requirements. For instance, you can
choose to receive notifications at 90% of your credit limit or select multiple thresholds such
as 50%, 70%, and 90%. These notifications can be delivered either to your webhook or your
company email address.
Parameters
"type": "webhook_credit_limit", - use this value to receive notification via webhook
"email_credit_limit" use this value to receive notification via email
"webhook_url": "https://example.com" - in case of notification to be
delivered via your webhook implementation, provide your webhook
implementation url
“email” – email address is case of notification via company email address
“language” – “en” – in case of email based notification
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/v1/notifications/opt-in' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {{token}}' \
--header 'Content-Type: application/json' \
--data-raw '{
    "type": "webhook_credit_limit",
    "webhook_url": "https://example.com",
    "levels": [
        50,
        70,
        80,
        90
    ]
}'
Response Response Example
200 - Get the webhook based notification - Get the webhook based notification
{
  "data": {
    "notification": {
      "type": "webhook_credit_limit",
      "contact_point": "https://example.com",
      "levels": [
        50,
        70,
        80,
        90
      ]
    }
  },
  "meta": {
    "message": "success"
  }
}

Request

Header Params
Accept
string 
required
Example:
application/json
Authorization
string 
required
Example:
Bearer {{token}}
Body Params application/json
type
string 
required
webhook_url
string 
required
levels
array[integer]
required
Examples

Responses

🟢200Get the webhook based notification
text/plain
Body
data
object 
required
notification
object 
required
meta
object 
required
message
string 
required
🟢200Receive notification via email
Modified at 2024-11-22 09:33:20
Previous
Low Data Notification
Next
Webhook Definition
Built with