Skip to main content

Generate QR Code for eSIM Activation

This endpoint generates a QR code for eSIM activation, containing the necessary activation information for the eSIM profile.

Configure the API Endpoint

https://esim.betatel.com/api/v1/esim/euicc-profiles/{{iccid}}/qrcode
  • Method: GET

Set Up the Headers

ParamValueDescription
Content-Typeapplication/jsonSpecifies the payload format.
x-api-key{{x-api-key}}Your unique API key for secure access.
x-user-id{{x-user-id}}Your user identifier for added security and tracking.

Path Parameters

ParamTypeRequiredDescription
iccidstringrequiredThe ICCID of the eSIM

Example Response

Use-Case: QR codes are essential for seamless eSIM activation, decreasing the time-to-activate valuable mobile services.

Note: The QR code response is an image file. Ensure your client application can handle binary data properly.

Status Code: 200 OK
Content-Type: image/png

Response: Binary PNG image data containing the QR code

The response returns a PNG image containing the QR code that can be scanned by compatible devices to activate the eSIM profile.

Code Snippets

Integration Tip: Ensure your application gracefully handles image saving and corrects any encoding format issues to maintain a smooth activation process.

Hint: Download the QR code promptly and display it using the appropriate tools or libraries in your system.

Example - cURL
curl --location 'https://esim.betatel.com/api/v1/esim/euicc-profiles/{{iccid}}/qrcode' \
--header 'Accept: application/json' \
--header 'x-api-key: {{x-api-key}}' \
--header 'x-user-id: {{x-user-id}}' \
--output qr-code.png