Provision an eSIM
Step-by-step guide to create a client, allocate an eSIM, assign a data package, and retrieve the activation QR code.
Follow the steps below to provision a new eSIM for an end user.
1. Create a B2C Client
Create a client of type b2c. B2C clients do not have platform access and cannot create packages.
Request
POST /api/v1/clients
curl -X POST "https://esim-api.it-decision.com/api/v1/clients" \
-H "Authorization: Bearer <TOKEN>" \
-F "name=My B2C Client" \
-F "email=b2c-client@example.com" \
-F "type=b2c" \
-F "identifier=my_b2c_client_001" \
-F "platformAccess=false" \
-F "packageCreation=false"Result
A new B2C client is created. The response contains a clientId that is used in the next provisioning steps.
2. Get an Available eSIM
Retrieve a list of eSIMs that are not yet assigned to any client or package.
Request
GET /api/v1/esims?allocated=false
Result
the response contains a list of unallocated eSIMs. Select the required esimId for the next step.
3. Find Compatible Packages
Retrieve a list of data packages that are compatible with the selected eSIM.
Request
POST /api/v1/esims/find-packages
Result
The response contains the data packages available for the selected eSIM. Select the required packageId.
4. Assign eSIM + Package + Client
Assign the selected eSIM and data package to the B2C client.
Request Body
Result
The eSIM becomes allocated to the client, the selected data package is assigned, and the eSIM is ready for activation.
5. Retrieve the QR Code
Once the eSIM is allocated, retrieve its activation QR code or activation data.
Request
Result
The response returns the QR code or activation data for the allocated eSIM.
Last updated