Skip to main content
This guide walks you through the minimum steps required to go from zero to a placed order: obtain credentials, authenticate, browse the product catalog, and submit an order. By the end you will have a working integration pattern you can extend for your platform.
1

Get your credentials

Contact MIOeSIM to request a reseller account. You will receive:
  • A phone number (your login username)
  • A password
  • A secret key used to sign every request
Keep these credentials secure. Do not commit them to source control.
2

Authenticate and obtain a token

Before calling any endpoint, you must obtain a session token by calling POST /api_order/login. The request requires a sign computed from your credentials (see Authentication for the full algorithm).Compute the sign for the login request:For a login call with phonenumber=13800000000 and password=mypassword, sort the params alphabetically, concatenate, append the secret key, then MD5 hash the result:
Append the secret key and hash:
Make the login request:
Response:
Tokens are valid for 2 hours. Cache the token locally and refresh it before it expires to avoid unnecessary re-authentication on every request.
3

Browse available products (SKUs)

Call GET /api_esim/getSkus to retrieve the list of available eSIM products. Include your token and a request signature as query parameters.
Example response (truncated):
Note the skuid values — you will need one to fetch packages in the next step.
4

Get packages for a SKU

Call GET /api_esim/getPackages with a skuId to list available data plans and pricing for that product.
Example response (truncated):
Note the priceid — you need it to place an order.
Call GET /api_esim/verifyResource before placing an order to confirm that the requested package has sufficient card inventory.
5

Place an order

Call POST /api_esim/addEsimOrder with your token, the skuId, priceId, quantity, and backInfo=1 to receive full card details in the response.
Response:
Deliver the code (LPA string) to your customer — they enter it in their device settings to install the eSIM. On iOS, generate a QR code from the sm_dp_address and activationCode. Use pdfUrl (when present) to send a ready-made PDF with the QR code.