Skip to main content
An alternative to Renew Order that uses the package apiCode for the renewal plan. Identify the card by order number or ICCID, just as with the standard renewal endpoint.
POST https://bpm.mioesim.com/api_esim/renewCardByApiCode

Request parameters

token
string
required
Session token.
apiCode
string
required
Package API code for the renewal plan (e.g. "99162-0-3-1-G").
sign
string
required
Request signature.
orderNum
string
Order number to renew. Required if iccid is not provided.
iccid
string
ICCID of the card to renew. Required if orderNum is not provided.
backInfo
string
0/empty = order number; 1 = full details; 2 = PDF URL info.
pdfLanguage
string
PDF language code. See PDF Languages.
otherOrderId
string
Your external order ID.
otherItemId
string
Your external line item ID.
remark
string
Optional notes.

Response

Identical to Renew Order. The renewal field is true and mainOrderNum links back to the original order.

Example

curl -X POST https://bpm.mioesim.com/api_esim/renewCardByApiCode \
  -d "token=YOUR_TOKEN" \
  -d "iccid=934801019851134300" \
  -d "apiCode=40-0-3-1-G" \
  -d "backInfo=1" \
  -d "sign=YOUR_SIGN"