Using the API
Start working with our eSIM API.
Getting Started
To get started using the API:
View API docs and / or Postman example
Agree to the User Agreement
Fund your account and purchase an eSIM
Sandbox Environment
After login, you will be in the sandbox testing area, with test credit and eSIMs. With in the sandbox account you can:
Make a deposit of funds
Navigate to Billing > Make External Deposit
Make a eSIM purchase
Go to Products and choose one of the available choices
Go to Purchases and review purchase history
Generate your API Key
Make API calls
Calling the sandbox API is done with the follwing endpoint:
Additionally, you can interact with the Swagger API docs in sandbox with your API Key. Click the Authorize button and enter your API key to work with the API within the Swagger doc.
Live Environment
Once satisfied with your process, you can switch to the live environment. You can use the same API or roll a new one. The API key is the same for both Sandbox and Live enviroments.
In the live environment use the following endpoint:
You can interact with the Swagger API docs in live mode with your API Key.
Run In Postman
Postman is a great way to work with our API and you can import our collection into your project.
eSIM Payload
Purchasing an eSIM is possible once you have a positive account balance. When requesting the eSIM, your balance is deducted according to your current monthy tier.
API Delivery
When purchasing via API, you will receive a JSON eSIM payload. This provides both the manual entry data as well as the QR code for adding an eSIM.
Parameters | Description |
manual1 | String for manual entry of SM-DP+ Address |
manual2 | Sring for Activation Code |
optionalCode | Confirmation Code. Used with some eSIM providers |
phone | eSIM phone number |
serial | eSIM Serial number |
expiryDate | eSIM expiry date |
qrCodeString | QR code payload string. Populate your custome QR code with this data. |
qrCodeDataUrl | QR code PNG imag |
Plan by Slug
GET
https://app.dataplans.io/api/v1/plan/{slug}
Fetch plan details with slug
Path Parameters
Name | Type | Description |
---|---|---|
slug | string | Sample value:sim2fly-asia |
Last updated