Skip to main content
POST
/
api
/
v1
/
esim
/
order
Купить eSIM
curl --request POST \
  --url https://sand.tranzor.io/api/v1/esim/order \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "planId": "<string>",
  "clientEmail": "jsmith@example.com",
  "clientRef": "<string>"
}
'
{
  "success": true,
  "data": {
    "orderId": "<string>",
    "status": "active",
    "plan": {},
    "esim": {
      "iccid": "<string>",
      "qrcode": "<string>",
      "qrImage": "<string>",
      "iosTapLink": "<string>",
      "dataLeftMb": 123,
      "dataPackageMb": 123,
      "expiresAt": "<string>"
    }
  }
}

Authorizations

Authorization
string
header
required

API ключ в формате trz_...

Body

application/json
planId
string
required

ID тарифа из GET /api/v1/esim

clientEmail
string<email>

Email клиента (опционально)

clientRef
string

Ваш внутренний ID (опционально)

Response

eSIM активирован

success
boolean
data
object