In this article
Learn how to check your order history and download the QR codes and CSV file for an existing order, in the Portal or with the API, so you can resend install details to your customer when they need them. You'll also learn which API endpoint replaces the deprecated QR and CSV calls.
Before you start
- Log in to the Portal.
- For the API, you need your API key. API keys are only visible when generated. If you no longer have yours, refresh it in the Portal at Settings > Developer > API; the old key stops working. Send it in a header named X-API-Key. Related guides: Log in to your account and Find, copy and refresh your API key.
- Only orders that have been assigned to an eSIM can return QR codes or CSVs through the API (they show "assigned : true").
- If a bundle has been ordered but not applied to an eSIM, it sits in your bundle inventory. To view it, go to Inventory > Bundles. To get a QR code for an inventory bundle, apply it to a new eSIM; see Apply a bundle from inventory to a new eSIM.
Check your order history in the Portal
- Log in to your account.
- Go to Billing > Transactions.
- To narrow the list, use the Month and Type filters.
Download the QR code or CSV in the Portal
- Go to Billing > Transactions.
- Find the Bundle Order row you need. To find an eSIM by ICCID, MSISDN or reference instead, go to Inventory > eSIMs and type it in the search box.
- In the Actions column, click the CSV icon (Download CSV) or the QR icon, depending on which you need.
If you open the CSV in Microsoft Excel, Excel can alter the format of the ICCID. See Opening eSIM CSV files without losing ICCID digits for how to avoid this.
Check your order history with the API
You can also check your order history through the API. Call GET /orders to get details on all previous orders, including total cost and contents. The response is paginated. Use the includeIccids, page, limit and createdAt parameters (createdAt takes an lte: prefix). Docs: https://docs.esim-go.com/api/v2_5/operations/orders/get
The v2.5 docs have no "Try" request runner on the orders, assignments or catalogue pages. Docs: https://docs.esim-go.com/api/
Download QR codes and CSVs with the API
- Find the order you need in your order history and copy its order reference.
- Request GET /esims/assignments with that order reference in the reference query parameter, and choose the format you need. GET /esims/qr/{reference} and GET /esims/csv/{reference} are deprecated in v2.5, so use GET /esims/assignments.
Endpoint |
What it does |
|---|---|
GET /esims/assignments |
Retrieves eSIM SM-DP+ details for an Order Reference or Apply Reference. The reference query parameter is required. |
GET /esims/qr/{reference} |
Deprecated in v2.5. Use GET /esims/assignments. |
GET /esims/csv/{reference} |
Deprecated in v2.5. Use GET /esims/assignments. |
Formats for GET /esims/assignments
Format |
Result |
|---|---|
text/csv (default) |
CSV |
application/json |
JSON |
application/zip |
A ZIP file containing the QR code images in PNG format |
GET /esims/assignments replaces the deprecated endpoints. It returns CSV by default, or JSON, or a ZIP of PNG QR codes.
If the eSIM has been deactivated, GET /esims/assignments returns 410 (Gone). An eSIM is deactivated, for example, after 180 days without bundle activity; order a new eSIM for your customer.
Tip: Store the order reference with each customer's purchase in your own system. When a customer loses their install details, you can then pull the QR code or CSV again with GET /esims/assignments straight away, instead of searching your whole order history.
Troubleshooting
- ICCID looks wrong in the CSV: if you opened the CSV in Microsoft Excel, Excel can alter the ICCID format. See Opening eSIM CSV files without losing ICCID digits.
- No QR code or CSV returned for an order: check the order is assigned to an eSIM ("assigned : true").