Skip to main content
POST
/
api
/
v1
/
esim
/
purchase
Purchase eSIM
curl --request POST \
  --url https://api.dancity.app/api/v1/esim/purchase \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "packageCode": "NG-1GB-30D",
  "customerRef": "ESIM-REF-001",
  "iccid": "8960000000000000001"
}
'
{
  "success": true,
  "message": "eSIM purchased",
  "data": {
    "transactionId": "TXN-20260506-008",
    "status": "SUCCESS",
    "iccid": "8960000000000000001",
    "activationCode": "LPA:1$smdp.example.com$ACTIVATION-CODE"
  }
}

Authorizations

Authorization
string
header
required

Merchant API key from the Dancity dashboard.

Body

application/json
packageCode
string
required

Package code from GET /api/v1/esim/packages or GET /api/v1/esim/topup-packages.

Example:

"NG-1GB-30D"

customerRef
string

Your internal reference for reconciliation.

Example:

"ESIM-REF-001"

iccid
string

ICCID of the existing eSIM — required when purchasing a TOPUP package.

Example:

"8960000000000000001"

Response

OK