To purchase a top-up package, you must check the available top-up packages for a given eSIM. The process must follow the steps below.
The complete workflow for buying a top-up package:
- GET https://sandbox-partners-api.airalo.com/v2/sims to see the list of purchased eSIMs.
- GET https://sandbox-partners-api.airalo.com/v2/sims/:iccid/topups to see the list of available top-ups for the eSIMs.
- POST https://sandbox-partners-api.airalo.com/v2/orders/topups with the proper "iccid" and "package_id" values to purchase a top-up.
- GET https://sandbox-partners-api.airalo.com/v2/sims/:iccid/packages to see the list of all packages for the eSIM, including the original package and top-ups.
Learn more here.