1. Guides
PressOne eSIM Developer Platform
  • OVERVIEW
    • Introduction
    • Attribute descriptions
    • FAQ
    • User journeys
      • Top-up Journey
      • Purchase Journey
    • Guides
      • eSIM installation methods for API Partners
      • How to generate the QR code for an eSIM
  • REST API
    • Data / Data + Voice + SMS eSIM
      • Introduction
      • Error handling
      • Endpoints
        • Authenticate
          • Get token information
          • Refresh access token
          • Request access token
        • Check balance
          • Get balance
        • Compatible devices
          • Get compatible device lite list
        • Browse packages
          • Get packages
        • Place order
          • Submit order
        • Manage orders
          • Get order list
          • Get order
        • Manage eSIMs
          • Get eSIM by ICCID
          • Get eSIMs list
          • Get eSIM package history
        • Install eSIM
          • Get installation instructions
        • Monitor usage
          • Get usage (data, text & voice)
        • Place top up order
          • Get top-up package list
          • Submit top-up order
    • Voice-only eSIM
      • Getting Started
      • Error handling
      • Endpoints
        • List Available Numbers
        • Claim Number
        • Renew Number
        • List User
    • SMS
      • Introduction
      • Authentication
      • Conventions
        • Response envelope
        • Errors
        • Rate limits
        • Idempotency
        • Date ranges & timezone
        • Pagination
      • Endpoints
        • Send an SMS
          • Send SMS /api/sms/send
        • List message logs
          • List message logs /api/sms/logs
        • Get statistics
          • Get statistics /api/sms/statistics
        • Export logs (CSV)
          • Export logs (CSV) /api/sms/export
        • Analytics
          • Overview
            • Overview /api/sms/analytics/overview
          • Message volume
            • Message volume /api/sms/analytics/message-volume
          • Delivery status distribution
            • Delivery status distribution /api/sms/analytics/delivery-status
          • Delivery report
            • Delivery report - /api/sms/analytics/delivery-report
        • Check wallet balance
          • Check wallet balance /api/sms/balance
        • Send an OTP
          • Send an OTP /api/sms/otp/send
        • Verify an OTP
          • Verify an OTP /api/sms/otp/verify
      • Delivery webhooks
        • Delivery webhooks
      • Message lifecycle & statuses
        • Message lifecycle & statuses
      • Appendix: message object
        • Appendix: message object
  1. Guides

How to generate the QR code for an eSIM

You should generate your own QR code image using the QR code attribute provided by our API endpoint.
When you submit an order using POST /customer/v2/orders, the response includes two options for displaying QR codes:
1.
qrcode: A QR code data string that you can use to generate your own QR code image
Example: "LPA:1$lpa.provider.com$TEST"
This is the raw data that should be encoded into a QR code
2.
qrcode_url: A pre-generated QR code image URL that you can display directly
Example: "https://api.pressone.com/qr?id=61038..."
You can use this URL directly in an <img> tag

Option 1: Generate QR Code Using JavaScript Library#

Here is sample code to generate a QR code on your website directly using the QRCodeJS library:

Option 2: Use Pre-generated QR Code URL#

Alternatively, you can simply display the pre-generated QR code image using the qrcode_url from the API response:
Note: The qrcode attribute contains the LPA (Local Profile Assistant) string that devices use to install the eSIM. The qrcode_url is a convenience option if you prefer not to generate the QR code yourself.
Modified at 2025-11-15 22:40:15
Previous
eSIM installation methods for API Partners
Next
Introduction
Built with