Skip to content
cuppa.

Tutorial

Integrate eSIMs into a mobile app.

The app shows the plan and the installation details. It does not hold the Cuppa API key. Your backend does.

Code and responses on this page are illustrative. They show the shape of an integration. Confirm the production schema in your Cuppa account before you ship.

The boundary

The app asks your API whether this user can have connectivity. Your API applies the business rule, calls Cuppa, and returns installation details. Losing a phone then loses an install screen, not your wholesale key.

Installation stays in the app

Show the activation details you stored from the fulfilment. A compatible device installs the eSIM from those details. If provisioning failed, show a pending state rather than an empty code.

What the backend did
HTTP/1.1 201 Created

{
  "id": "ful_example",
  "status": "provisioned",
  "product_id": "example_plan",
  "reference": "booking_4821",
  "esim": {
    "iccid": "8900000000000000000",
    "activation_code": "LPA:1$example$CODE"
  }
}