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
Authenticate and obtain a token
Before calling any endpoint, you must obtain a session token by calling Append the secret key and hash:Make the login request:Response:
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:Tokens are valid for 2 hours. Cache the token locally and refresh it before it expires to avoid unnecessary re-authentication on every request.
Browse available products (SKUs)
Call Example response (truncated):Note the
GET /api_esim/getSkus to retrieve the list of available eSIM products. Include your token and a request signature as query parameters.skuid values — you will need one to fetch packages in the next step.Get packages for a SKU
Call Example response (truncated):Note the
GET /api_esim/getPackages with a skuId to list available data plans and pricing for that product.priceid — you need it to place an order.Place an order
Call Response:Deliver the
POST /api_esim/addEsimOrder with your token, the skuId, priceId, quantity, and backInfo=1 to receive full card details in the response.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.