Skip to Content
GEMMSIM LifecycleActivateActivation with Secondary SIM

Activation with Secondary SIM

POSTsubscriber-management/actions/activateSIM LifecycleOpenAPI

Activates a primary SIM and a secondary eSIM in one request, so that they can send and receive data.

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

Uses and Requirements

The Activation API can activate a secondary eSIM in the same request. Mobility starts the secondary SIM activation only after the primary SIM activation succeeds.

After accepting and validating the request, Mobility sends separate callbacks for the primary and secondary SIM activations.

If validation fails for either the primary or the secondary SIM, Mobility rejects the request and sends a single callback that reports the failure.

Info

The Activation API allows up to 1,000 primary SIMs per request. Each primary SIM can have only one secondary SIM.

Available For

The primary and secondary SIMs must be on two different carriers from this list. The secondary SIM is always an eSIM, and the primary SIM’s plan must be an unlimited Mobility Smartphone/Android or iPhone 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
activateOptionstringYesThe type of activation that you want. Valid values are
  • ExistingAccount - Activate the specified SIM(s) under an existing child account. When you select this option, accountNumber is required.
  • NewAccount - Activate the specified SIM(s) under new child account(s). When you select this option, parentAccountNumber, accountCreationMode and accountInfo are required. Depending on accountCreationMode, accountInfo is passed either at the request level or on each SIM.
accountNumberstringConditionalThe 8-digit account number for an existing child account. Required when activateOption = ExistingAccount.
simsarray of simInfo objectsYesUp to 1000 SIMs for which you want to activate service, specified by simInfo objects.
simInfoobjectYesSIM information.
iccidstringConditional19-20 digits. Not required when simType = eSIM.
imeistringYes15 numeric digits.
deviceUserstringNoA user-defined descriptive field, limited to 100 characters.
simTypestringYesThe type of SIM for the primary activation. Values are Physical or eSIM. Virtual is the earlier name for eSIM and is still accepted.
tagItemobjectNoAn object that holds the information about the tags to be associated with the SIM, where each tag is listed in the addTags array.
addTagsarray of stringsNoAn array of strings that represent the tags to be associated with the specified SIM.
secondarySimsarrayNoArray containing details of the secondary SIM. It can hold only one secondary SIM. Secondary SIM activation supports only cellular carriers and requires the primary SIM to be activated on one of these carriers (ATT, T-Mobile, Granite Wireless - VZW) with an unlimited data plan.
imeistringYesIMEI2 of an eSIM-capable device for secondary SIM activation. Must be a 15-digit numeric value.
simTypestringYesOnly eSIM secondary SIM activations are supported.
Expected value: eSIM Virtual is the earlier name for eSIM and is still accepted.
carrierstringYesSpecifies the carrier for activating the secondary SIM. This must differ from the primary SIM's carrier.
Allowed values:
  • ATT
  • T-Mobile
  • Granite Wireless - VZW
accountInfoobjectConditionalInformation to create a separate child account for this SIM. Required on every SIM when activateOption = NewAccount and accountCreationMode = CreateSeparateAccountForEachSIM. Has the same structure as the request-level accountInfo object described below. Not used for CreateOneAccountForAllSIMs.
planNamestringYesThe plan that you want to assign to all specified SIMs. Set this parameter to one of the plan values provided.
accountCreationModestringConditionalPassed at the request level (not inside accountInfo). Required when activateOption = NewAccount.
Possible values are
  • CreateOneAccountForAllSIMs - Using the AccountInfo provided, Mobility creates one child account and activates all SIMs under it.
  • CreateSeparateAccountForEachSIM - Using the AccountInfo provided on each SIM, Mobility creates a separate child account for each SIM.
parentAccountNumberstringConditionalThe 8-digit account number for an existing parent account. Required when activateOption = NewAccount.
accountInfoobjectConditionalInformation to create new child account(s). Required when activateOption = NewAccount and accountCreationMode = CreateOneAccountForAllSIMs. When accountCreationMode = CreateSeparateAccountForEachSIM, pass this object on each entry in sims instead.
customerNamestringYesCustomer name.
contactPhonestringYesA phone number where the customer can be reached.
genInfoEmailstringYesAn email address for the customer.
billingOptionstringYesBilling option for the child account(s).
serviceAddressobjectYesService address for the child account(s).
address1stringYesThe street address for the SIM's primary place of use.
citystringYesThe city for the SIM's primary place of use.
statestringYesThe two-letter abbreviation of the state for the primary place of use.
zipstringYesThe ZIP code for the SIM's primary place of use.
billingAddressobjectNoBilling address for the child account(s).
address1stringYesThe street address for the SIM's billing address.
citystringYesThe city for the SIM's billing address.
statestringYesThe two-letter abbreviation of the state for the billing address.
zipstringYesThe ZIP code for the SIM's billing address.
invoiceDeliveryMethodstringNoPossible values are Paper, Paper+Email and EmailOnly.
invoiceStylestringNoPossible values are Child-No Bill and Summary Bill.

Request Examples

Request to activate a SIM with a secondary SIM

Request to activate an AT&T primary SIM along with a secondary SIM on Granite Wireless - VzW (Telespire) using an existing child account

Request to activate an AT&T primary SIM and secondary SIM on T-Mobile using a single new account creation method

Request to activate an AT&T primary SIM and secondary SIM on T-Mobile using multiple new accounts creation method

Responses

Immediate Success Response (200 OK)

Response Fields

ParameterTypeDescription
transactionIDstringA unique string that associates the request with the results that are sent via a callback service.
Mobility sends a separate callback for each SIM that matched the request criteria, indicating whether the operation succeeded for that SIM and containing any requested information. All callbacks have the same transactionID.

Callback Success Response

Example Success SubscriberService Callback Response for Primary Activation

Example Success SubscriberService Callback Response for Secondary Activation

Response Fields

ParameterTypeDescription
requestTypestringName of the requested action. For activation, the value is Activate.
transactionIDstringA unique string that associates the request with the results that are sent via a callback service. Mobility sends a separate callback for each SIM that matched the request criteria, indicating whether the operation succeeded for that SIM and containing any requested information. All callbacks have the same transactionID.
simInfoobjectSIM information.
eidstring32 digits.
iccidstring19-20 digits.
msisdnstring10 digits.
imeistring15 digits.
secondarySimsArraySecondary SIM information.
actionstringActivation.
carrierstringCarrier for the secondary SIM.
simTypestringPhysical or Virtual.
imeistring15 digits.
ipAddressstringThe IP address of the activated device.
resultobjectResult status object.
statusstringSuccess or Failed.
messagestringResult message.
errorsobjectList of errors.
errorCodestringError code.
errorMessagestringError message.
callbackCountintegerThe number of times this callback message has been sent.
maxCallbackThresholdintegerThe maximum number of times this callback message will be sent if it is not correctly acknowledged.

Failure Responses

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

Immediate Error Message

Error Response Fields

ParameterTypeDescription
resultobjectResult status object.
statusstringSuccess or Failed.
errorsobjectList of errors.
errorCodestringError code.
errorMessagestringError message.

Example Async Error Message

If the request fails validation and is rejected:

If the request fails because of an internal error or at the carrier:

Callback for the secondary SIM activation linked to the primary activation above:

Error Response Fields

ParameterTypeDescription
requestTypestringName of the requested action. For activation, the value is Activate.
simInfoobjectSIM information.
actionstringActivation.
secondarySimsArraySecondary SIM information.
carrierstringCarrier for the secondary SIM.
simTypestringPhysical or Virtual.
iccidstring19-20 digits.
imeistring15 digits.
deviceUserstringA user-defined descriptive field, limited to 100 characters.
zipCodestringA 5-digit numeric ZIP code.
callbackCountintegerThe number of times this callback message has been sent.
maxCallbackThresholdintegerThe maximum number of times this callback message will be sent if it is not correctly acknowledged.
transactionIDstringA unique string that associates the request with the results that are sent via a callback service.
resultobjectResult status object.
statusstringSuccess or Failed.
errorsobjectList of errors.
errorCodestringError code.
errorMessagestringError message.

Code Examples

Last updated on