Skip to content

The eSIM profile lifecycle in practice: from ES2+ order to installed profile

Greg Sikora, CSOeSIM / SM-DP+

Flat illustration of a phone scanning a QR code, an SM-DP+ server and an eUICC chip, with the states Released, Downloaded and Installed.

Part 3 of 4 in the eSIM / SM-DP+ series.

A subscriber buys an eSIM late at night, scans the activation code and loses Wi-Fi halfway through setup.

By morning, the billing system shows a sale and the subscriber remembers seeing a download start. Before anyone issues a replacement, can the support team tell whether the handset actually installed the profile?

Who can answer the subscriber's question?

During the commercial order, the operator's business support system (BSS) sends it over ES2+ to the SM-DP+ (Subscription Manager Data Preparation+). That server prepares and protects the operator profile. The order tells you which profile belongs to the sale. The installation result comes from the other end of the chain.

On the handset, the Local Profile Assistant (LPA) runs the download. It talks to the SM-DP+ over ES9+ and uses local ES10 functions to reach the eUICC, the secure chip that installs the profile. The SM-DP+ protects the profile for that specific eUICC. ES8+ is the logical path between them, carried inside the Bound Profile Package that the LPA passes to the chip.

GSMA SGP.21 defines these roles, and SGP.22 specifies the messages they exchange. An optional discovery service, the SM-DS, can help the handset find a waiting profile. Once the handset knows which SM-DP+ to contact, downloads follow the same path whether the subscriber scanned a code or used discovery.

What the order actually reserves

When the BSS calls DownloadOrder, it can ask for a particular profile by ICCID, its unique identifier, or for any available profile of a given type. A profile starts in inventory as Available. It becomes Allocated when reserved, or Linked if the order already names the target chip by its EID. Save the returned ICCID against the commercial order straight away, so support can link every download attempt to the sale.

ConfirmOrder confirms the reservation. The operator backend can supply the EID at this point, add a confirmation code and obtain the Matching ID for the activation code. If the backend sets the release flag, the profile moves straight to Released. Otherwise it stays Confirmed until a separate ReleaseProfile call makes it available to the handset. That gives the provisioning team time to finish work in the home subscriber server (HSS). If the profile installs before the subscriber record exists there, the first attempt to attach to the network can fail.

ES2+ uses synchronous HTTPS calls, and the SM-DP+ reports subsequent progress back to the operator. Each request carries a function requester identifier and a function call identifier. If the BSS times out while ordering by profile type, the server may already have reserved one. SGP.22 expects graceful handling of resent requests only for orders by ICCID. For orders by profile type, agree the reconciliation method with the SM-DP+ provider, or a single sale can leave two reservations in inventory.

Released, Downloaded and Installed tell you different things

Released means the handset can request the profile. Downloaded is the server's record that it has served the bound package. Only when the eUICC sends a signed success result back does the SM-DP+ record Installed. Until the notification arrives, the server can't confirm what happened on the chip.

The distinction matters outside provisioning. If successful delivery triggers billing or a welcome message, tie that action to the installation result. A release can happen hours before the customer even picks up the phone.

The lifecycle also tells support when to intervene. A profile enters Error when the retry limit for the confirmation code or the download is exceeded. It also enters Error when the subscriber rejects the download or a permanent failure occurs during download and installation. From Error, the only way forward is CancelOrder, which returns the profile to Available or Unavailable. The BSS then places a new order, with a new confirmation code if needed.

State diagram of a profile from Available to Installed, with the Error branch and CancelOrder, and who provides the evidence for each state.
Only the signed result from the eUICC proves installation; Released and Downloaded are records on the operator and server side.

What goes into the subscriber's code?

An activation code contains the SM-DP+ address and usually a Matching ID, which identifies the pending download. A QR code is a convenient way to enter that string. The operator can email it, show it in an app or print it in a shop. If customers can type it by hand, choose a Matching ID alphabet that avoids lookalike characters such as a capital O and a zero.

An optional confirmation code protects the order separately. Deliver it through a different channel so a copy of the activation email alone can't complete the download.

Once the order is cancelled or the profile installed, the SM-DP+ rejects attempts to reuse the activation code. It returns a defined status code that support can find in the download records. That's worth checking before resending anything to a subscriber who says the QR code has stopped working.

One source of friction is easy to test. Open the activation email on the handset that needs the profile. If there's no second screen to scan, can the subscriber still install it using the details in the message?

What happens between the scan and the signed result?

After the scan, the LPA opens a TLS connection to the SM-DP+. In InitiateAuthentication it sends a challenge from the eUICC. The server returns signed data containing its own challenge, along with its certificate. The LPA passes the response to the chip, which verifies the certificate chain and signature and signs its reply. Through AuthenticateClient, the server receives that reply and the eUICC's certificates. It verifies the chip, checks the Matching ID and any EID bound to the order, then returns the profile details for the subscriber to review.

When the subscriber accepts, the LPA calls PrepareDownload on the eUICC. The chip creates a key pair for this download alone and signs the response containing its public key. If the order requires a confirmation code, the subscriber enters it and a hash is included in that exchange. During GetBoundProfilePackage, the SM-DP+ checks the confirmation value, derives session keys through key agreement with the chip and builds the package for that eUICC. It then erases the private key it generated for this download.

The LPA delivers the package to the chip in segments. Inside it, ES8+ instructions initialise the secure channel, configure the new profile container and store its metadata. Where profile protection keys are used, an instruction replaces the session keys with those keys before the chip loads the profile elements. The LPA can carry the entire package without reading the protected credentials.

Finally, the eUICC signs the installation result. The LPA returns it to the SM-DP+ using HandleNotification, and the server can report the outcome to the BSS over ES2+ as agreed in the integration. If the user declines, or an error occurs while the LPA can still reach the server, the LPA can report the reason with CancelSession. An explicit user rejection takes the profile to Error. A recoverable interruption can leave room for another attempt within the download retry limit. The new session brings a new one-time key from the eUICC (otPK.EUICC), so the SM-DP+ must bind the package again. SGP.22 v3.x makes this rebind mandatory; in v2.x, an SM-DP+ that does not rebind ends the attempt in Error.

Sequence diagram of ten steps between the BSS, SM-DP+, LPA and eUICC, from DownloadOrder to HandleNotification.
The message sequence from the ES2+ order to the signed installation result that reaches the SM-DP+.

Fleets can skip the QR code

If the operator already knows a device's EID, the SM-DP+ can register an event for that EID with an SM-DS over ES12. The LPA checks the SM-DS over ES11, for example when the device starts or when the user adds a profile. For a fleet of organisation phones, that removes the job of distributing individual codes. It also raises a data residency question for a national platform.

Root SM-DS addresses are preconfigured on the eUICC. SGP.22 v2.x allows one; in v3.x there can be several, and the device can hold them too. An Alternative SM-DS can cascade the event to a Root SM-DS with ES15.RegisterEvent. The root then creates its own event record with the EID and the Alternative SM-DS address. In v3.x, that record can also carry service provider or operator identifiers. The root can be outside the country and outside the operator's control. The profile itself stays with the SM-DP+ until download.

An operator can skip that event registration. An activation code points the handset directly to a national SM-DP+. Organisations that issue supported devices have another option. They can set the default SM-DP+ address on the eUICC to the national server, through handset settings or a method from the device vendor. The LPA can then find a profile ordered for its EID without a code. The operator can decide on SM-DS for each user group and leave the retail decision until later.

What support sees the next morning

For the overnight order, the BSS called DownloadOrder, set the release flag in ConfirmOrder and emailed the activation code. The handset authenticated successfully. Wi-Fi dropped during GetBoundProfilePackage, before this attempt completed. Seen alone, that session suggests a replacement.

Once Wi-Fi returned, the LPA started a fresh session with InitiateAuthentication. The order was still eligible for another attempt within the retry limit. In this example, the SM-DP+ rebound the package to the new session key. This time the eUICC installed the profile and its signed success result reached the SM-DP+.

Look up the ICCID on the sale and you find two sessions for one profile. The first stopped during package retrieval. The second has the installation notification. The support agent can confirm the installation without asking the subscriber to swap SIMs. If the handset still can't connect, the network team now has a reason to check subscriber authentication and access.

What the subscriber can change after installation

In the consumer model of SGP.22 v2.x, the subscriber uses the LPA to enable, disable or delete a profile locally. The eUICC deletes only a disabled profile, and SGP.21 requires strong confirmation for the delete operation. The eUICC generates notifications only for operations listed in the profile metadata (notificationConfigurationInfo). The LPA sends them on a best-effort basis. What the agent sees depends on which notifications reach the server and the BSS.

To cancel, check the order state for the ICCID. CancelOrder over ES2+ withdraws a pending order whose profile hasn't been downloaded. An installed profile follows the normal process for ending service. Barring the subscription in the HSS stays under network control, whatever the user does with the profile on the handset.

A replacement handset has a different eUICC, so it needs a new order and a fresh download. The old activation code won't move the profile across.

How OVOO SM-DP+ fits an operator network

An operator that keeps its existing HSS starts with the subscriber provisioning interface it exposes. In an OVOO deployment, HSS subscriber provisioning can trigger profile creation. The management backend places and confirms the order separately over ES2+. We check that sequence with the provisioning team before the operator routes a live order to us.

The operator can test those handoffs by routing a small batch of new orders to OVOO while existing subscribers keep their installed profiles.

OVOO SM-DP+ is built to GSMA SGP.22 v2.5. It prepares, protects and delivers operator profiles along the path described above, from the ES2+ order to the signed installation result.

Summary

A support agent can start with the sale if the BSS links it to the right ICCID. Follow that profile's sessions and look for the eUICC's installation result. If the record ends at download, check for a later attempt or an outstanding notification before offering a replacement. If installation is confirmed and the phone still has no service, take the case to the team responsible for network authentication and access.

More in this series

eSIM / SM-DP+ series, 4 parts.

  1. Sovereign eSIM: why national deployments keep the SM-DP+ in the country
  2. From a closed user group to national scale: phasing a sovereign SM-DP+
  3. The eSIM profile lifecycle in practice: from ES2+ order to installed profile (this article)
  4. Beyond the number: eSIM as a root of trust for verified caller identity
  • eSIM
  • SM-DP+
  • ES2+
  • Customer support