To submit a top-up order:Make a POST request to the endpoint URL {{url}}/{{version}}/orders/topupsInclude a request body in the form of a FormData object, which contains the following required fields:
1.
package_id: The ID of the top-up package you want to purchase
2.
iccid: The ICCID of the eSIM for which you want to purchase the top-up package.
You can also include an optional description field to provide additional information about the order.The API will respond with a JSON object containing the details of the order, including the package ID, quantity, price, and other information.The complete workflow for buying a top-up package:
1.
GET {{url}}/{{version}}/sims to see the list of purchased eSIMs
2.
GET {{url}}/{{version}}/sims/:iccid/topups to see the list of available top-ups for the eSIMs
3.
POST {{url}}/{{version}}/orders/topups with the proper "iccid" and "package_id" values to purchase a top-up
4.
GET {{url}}/{{version}}/sims/:iccid/packages to see the list of all packages for the eSIM, including the original package and top-ups
curl--location--request POST '/v2/orders/topups' \
--header'Accept: application/json' \
--header'Authorization: Bearer {{token}}' \
--form'package_id="change-7days-1gb-topup"' \
--form'iccid="873000000000042542"' \
--form'description="Example description to identify the order"'
Responses
🟢200Submit Top-up Order: 200 OK
application/json
Body
Example
{"data":{"id":111,"code":"20251118-000111","package_id":"change-7days-1gb-topup","currency":"USD","quantity":1,"type":"topup","description":"Topup (873000000000042542)","esim_type":"local","validity":7,"package":"Change-1 GB - 7 Days","data":"1 GB","price":4.5,"pricing_model":"net_pricing","text":null,"voice":null,"net_price":3.6,"created_at":"2025-11-18 13:37:07","manual_installation":"<p><b>eSIM name:</b> Change</p><p><b>Coverage: </b>United States</p><p><b>To manually activate the eSIM on your eSIM capable device:</b></p><ol><li>Settings > Cellular/Mobile > Add Cellular/Mobile Plan.</li><li>Manually enter the SM-DP+ Address and activation code.</li><li>Confirm eSIM plan details.</li><li>Label the eSIM.</li></ol><p><b>To access Data:</b></p><ol><li>Enable data roaming.</li></ol>","qrcode_installation":"<p><b>eSIM name:</b> Change</p><p><b>Coverage: </b>United States</p><p><b>To activate the eSIM by scanning the QR code on your eSIM capable device you need to print or display this QR code on other device:</b></p><ol><li>Settings > Cellular/Mobile > Add Cellular/Mobile Plan.</li><li>Scan QR code.</li><li>Confirm eSIM plan details.</li><li>Label the eSIM.</li></ol><p><b>To access Data:</b></p><ol><li>Enable data roaming.</li></ol>","installation_guides":{"en":"https://www.airalo.com/help/getting-started-with-airalo"}},"meta":{"message":"success"}}