Skip to Content
GEMMSIM LifecycleSecondary SIM ActivationSecondary SIM Activation

Secondary SIM Activation

POST/subscriber-management/actions/activate-secondary-simSIM LifecycleOpenAPI

Activates a secondary eSIM for a primary SIM that is already in service, so that the device can use two carriers.

Auth Scope
urn:grt:gemm
Content-Type
application/json
Base URL
https://gemmapi2.granitenet.com/v2/api/gemm/v1

Uses and Requirements

Use this API to add a secondary SIM to a primary SIM that is already activated or suspended. To activate a primary SIM and a secondary SIM together in one request, use Activation with Secondary SIM instead.

The Secondary SIM Activation API processes requests asynchronously. The immediate response returns a transactionID. After processing begins, Mobility sends a SubscriberService callback with requestType Activate that confirms the secondary SIM was activated or explains why the activation failed.

Each request holds exactly one entry in sims (the primary SIM, identified by its iccid) with exactly one entry in secondarySims. Bulk requests are not supported. The secondary SIM is activated under the same account as the primary SIM, and it takes the primary SIM’s device user.

Note

Mobility checks the request format and the eligibility of the primary SIM before it accepts the request. A request that fails one of these checks is rejected immediately with HTTP 400 and nothing is activated. Failures that happen at the carrier are sent later in a callback. Secondary SIM Activation must be enabled for your account. If it is not, the API returns HTTP 403. Contact your Account Manager to enable it.

Eligibility Rules

RuleRequirement
Primary SIM statusThe primary SIM must be Activated or Suspended.
Primary SIM data planThe primary SIM must be on an Unlimited data plan.
Primary SIM carrierThe primary SIM must be on AT&T APEX, TPR (Granite Wireless - VzW) or T-Mobile for Business.
Secondary SIM carrierThe secondary SIM must be on a different carrier than the primary SIM. See the carrier table below.
Secondary SIM typeThe secondary SIM must be an eSIM. Physical SIMs are not supported.
Device typeThe device must be an iPhone or a Smartphone/Android. Basic phones and M2M/IoT devices are not eligible.
PlanYou choose the carrier and the device type. Mobility selects the secondary SIM plan for that combination. If no plan exists for it, the request is rejected.
IMEIThe IMEI is the device's second IMEI (IMEI2), 15 digits. It is checked with the same rules as an IMEI on Activation.

Carrier Combinations

Primary SIM CarrierSecondary SIM Carrier Options
AT&T APEXGranite Wireless - VzW, T-Mobile
Granite Wireless - VzW (TPR)ATT, T-Mobile
T-Mobile for BusinessATT, Granite Wireless - VzW

How It Works

  1. You send the request. Mobility validates the format, then checks the primary SIM (status, Unlimited plan, carrier) and looks up the secondary SIM plan for the carrier and device type you chose. If anything fails, you get an immediate 400 and nothing is sent to a carrier.
  2. Mobility accepts the request, creates a transaction and returns the transactionID.
  3. Mobility submits an eSIM activation for the device’s IMEI2 to the secondary carrier, under the primary SIM’s account. The secondary SIM has no ICCID until the carrier assigns one.
  4. The carrier completes the activation. How Mobility learns the result depends on the carrier, as shown below.
  5. Mobility sends you one SubscriberService callback with the result. On success, simInfo carries the ICCID and MSISDN of the secondary SIM.
Secondary SIM CarrierWhat Mobility sends to the carrierHow the result comes back
ATTOne activation order for the device IMEI, with the plan and any add-on for the plan.Mobility checks the status of the order until it is complete. An order that stays pending for too long fails.
Granite Wireless - VzWOne activation request to Telispire for the device IMEI and the plan.Telispire sends the result when it finishes. Mobility does not check the status itself.
T-MobileMobility first checks that the device is compatible with eSIM. If it is, it submits one purchase order with the IMEI and the plan.Mobility checks the status of the order until it is completed. An order that stays pending for too long fails.

Note

If the carrier does not answer within the wait time set for that carrier, Mobility fails the request and sends a failure callback. The activation is not retried automatically. Submit a new request after you check the status of the SIM.

HTTP Status Codes

StatusWhen
200The request was accepted and a transactionID was returned. The result is sent later in a callback.
400The request is invalid: the macnum header is missing or is not 8 digits, the body is not valid JSON, sims or secondarySims does not hold exactly one entry, or a field is missing or in the wrong format. Also when the secondary carrier, SIM type or device type is not supported, or the primary SIM is not found, is not Activated or Suspended, is not on an Unlimited plan or an eligible carrier, is on the same carrier as the secondary SIM, or no secondary SIM plan exists for the carrier and device type. Nothing is activated.
401The bearer token is missing, invalid or expired, or you do not have access to the account in the macnum header.
403Your credentials are not permitted to use this API, Secondary SIM Activation is not enabled for your account, or the primary SIM belongs to an account you do not have access to or that is not under the macnum account.
429Too many requests were sent in a short period. Wait briefly and retry.
500An unexpected server error occurred.
503The system is under scheduled maintenance. Retry after the maintenance window.
504A dependent service did not respond in time. Retry the request.

For a complete list of error codes, messages, causes, and resolutions, see Secondary SIM Activation - Sync Error Messages and Secondary SIM Activation - Async Error Messages.

Available For

The primary SIM and the secondary SIM must be on two different carriers from this list. The secondary SIM is always an eSIM, and the primary SIM must be on an Unlimited data plan.

  • ATT
  • Granite Wireless - VzW
  • T-Mobile

Headers

HeaderValue
AuthorizationBearer access-token
Content-Typeapplication/json
macnumMacnum of the top level account for your organization.

Request Body Parameters

ParameterTypeRequiredDescription
simsarray of simInfo objectsYesThe primary SIM and its secondary SIM. The array must hold exactly one simInfo object.
simInfoobjectYesInformation about the primary SIM and the secondary SIM.
iccidstringYesICCID of the existing primary SIM, 19-20 digits. The 20th character can be F. The SIM must be Activated or Suspended and must be under the account in the macnum header.
secondarySimsarrayYesArray containing details of the secondary SIM. It must hold exactly one secondary SIM.
imeistringYesIMEI2 of the eSIM-capable device. Must be a 15-digit numeric value.
deviceTypestringYesThe device type. Mobility uses it to select the secondary SIM plan.
Allowed values:
  • iPhone
  • Smartphone/Android
simTypestringYesOnly eSIM secondary SIM activations are supported.
Expected value: eSIM Virtual is the earlier name for eSIM and is still accepted.
carrierstringYesThe carrier for the secondary SIM. This must differ from the primary SIM's carrier. Not case-sensitive.
Allowed values:
  • ATT
  • T-Mobile
  • Granite Wireless - VzW

Request Examples

Request to activate a secondary SIM on T-Mobile for an iPhone

Request to activate a secondary SIM on ATT for a Smartphone/Android

Responses

Immediate Success Response (200 OK)

Response Fields

ParameterTypeDescription
transactionIDstringA unique string that associates the request with the result that Mobility sends in a callback. All callbacks for the request have the same transactionID.

Callback Success Response

Mobility sends one callback for the secondary SIM when its activation is complete. The callback has requestType Activate, the same as an activation callback, and its simInfo describes the new secondary SIM. The deviceUser is the device user of the primary SIM.

Response Fields

ParameterTypeDescription
requestTypestringName of the requested action. For a secondary SIM activation, the value is Activate.
transactionIDstringThe transactionID returned in the immediate response.
simInfoobjectInformation about the secondary SIM.
iccidstringICCID assigned to the secondary SIM, 19-20 digits.
msisdnstring10 digits.
imeistringIMEI2 of the device, 15 digits.
deviceUserstringThe device user of the primary SIM.
simTypestringVirtual.
resultobjectResult of the operation.
statusstringResult status: success or failure.
messagestringResult message.
errorsarray of objectsList of errors. Included when the operation fails.
errorCodestringError code.
errorMessagestringError message.
callbackCountintegerThe number of times this callback has been sent.
maxCallbackThresholdintegerThe maximum number of times Mobility sends this callback if it is not acknowledged.

Failure Responses

Immediate Error Message

HTTP 400 when the primary SIM does not qualify. Every immediate error uses this format.

Error Response Fields

ParameterTypeDescription
resultobjectResult of the operation.
statusstringResult status: success or failure.
errorsarray of objectsList of errors. Included when the operation fails.
errorCodestringError code.
errorMessagestringError message.

Example Async Error Message

Sent when the carrier could not activate the secondary SIM.

Secondary SIM Activation Options

Before you send a request, you can ask Mobility which carriers and device types have a secondary SIM plan. A carrier or device type is listed only when a plan exists for it. Either list can be empty.

GET/helper/secondary-sim/activation-optionsSIM LifecycleOpenAPI

Send the Authorization and macnum headers. The same account must have Secondary SIM Activation enabled.

ParameterTypeDescription
simCarriersarray of stringsCarriers that you can send in carrier on the secondary SIM.
deviceTypesarray of stringsDevice types that you can send in deviceType.

Code Examples

Last updated on