For the complete documentation index, see llms.txt. This page is also available as Markdown.

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.

Save the returned clientId. You will need it when assigning the eSIM to the client.

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.

Save the selected esimId. It will be used to find compatible packages and assign the eSIM.

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.

Save the selected packageId. You will use it together with clientId and esimId in the next step.

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.

Use the clientId, esimId, and packageId returned or selected in the previous steps.

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.

Provide the returned QR code to the end user to activate the eSIM on their device.

Last updated