The Activation API allows up to 1,000 primary SIMs per request. Each primary SIM can have only one secondary SIM.
Activation with Secondary SIM
Activates a primary SIM and a secondary eSIM in one request, so that they can send and receive data.
urn:grt:gemmapplication/jsonhttps://gemmapi2.granitenet.com/v2/api/gemm/v1Uses 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
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
| Header | Value |
|---|---|
Authorization | Bearer access-token |
Content-Type | application/json |
macnum | Macnum of the top level account for your organization. |
Request Body Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
activateOption | string | Yes | The type of activation that you want. Valid values are
|
accountNumber | string | Conditional | The 8-digit account number for an existing child account. Required when activateOption = ExistingAccount. |
sims | array of simInfo objects | Yes | Up to 1000 SIMs for which you want to activate service, specified by simInfo objects. |
simInfo | object | Yes | SIM information. |
iccid | string | Conditional | 19-20 digits. Not required when simType = eSIM. |
imei | string | Yes | 15 numeric digits. |
deviceUser | string | No | A user-defined descriptive field, limited to 100 characters. |
simType | string | Yes | The type of SIM for the primary activation. Values are Physical or eSIM. Virtual is the earlier name for eSIM and is still accepted. |
tagItem | object | No | An object that holds the information about the tags to be associated with the SIM, where each tag is listed in the addTags array. |
addTags | array of strings | No | An array of strings that represent the tags to be associated with the specified SIM. |
secondarySims | array | No | Array 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. |
imei | string | Yes | IMEI2 of an eSIM-capable device for secondary SIM activation. Must be a 15-digit numeric value. |
simType | string | Yes | Only eSIM secondary SIM activations are supported. Expected value: eSIM Virtual is the earlier name for eSIM and is still accepted. |
carrier | string | Yes | Specifies the carrier for activating the secondary SIM. This must differ from the primary SIM's carrier. Allowed values:
|
accountInfo | object | Conditional | Information 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. |
planName | string | Yes | The plan that you want to assign to all specified SIMs. Set this parameter to one of the plan values provided. |
accountCreationMode | string | Conditional | Passed at the request level (not inside accountInfo). Required when activateOption = NewAccount. Possible values are
|
parentAccountNumber | string | Conditional | The 8-digit account number for an existing parent account. Required when activateOption = NewAccount. |
accountInfo | object | Conditional | Information 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. |
customerName | string | Yes | Customer name. |
contactPhone | string | Yes | A phone number where the customer can be reached. |
genInfoEmail | string | Yes | An email address for the customer. |
billingOption | string | Yes | Billing option for the child account(s). |
serviceAddress | object | Yes | Service address for the child account(s). |
address1 | string | Yes | The street address for the SIM's primary place of use. |
city | string | Yes | The city for the SIM's primary place of use. |
state | string | Yes | The two-letter abbreviation of the state for the primary place of use. |
zip | string | Yes | The ZIP code for the SIM's primary place of use. |
billingAddress | object | No | Billing address for the child account(s). |
address1 | string | Yes | The street address for the SIM's billing address. |
city | string | Yes | The city for the SIM's billing address. |
state | string | Yes | The two-letter abbreviation of the state for the billing address. |
zip | string | Yes | The ZIP code for the SIM's billing address. |
invoiceDeliveryMethod | string | No | Possible values are Paper, Paper+Email and EmailOnly. |
invoiceStyle | string | No | Possible 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
| Parameter | Type | Description |
|---|---|---|
transactionID | string | A 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
| Parameter | Type | Description |
|---|---|---|
requestType | string | Name of the requested action. For activation, the value is Activate. |
transactionID | string | A 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. |
simInfo | object | SIM information. |
eid | string | 32 digits. |
iccid | string | 19-20 digits. |
msisdn | string | 10 digits. |
imei | string | 15 digits. |
secondarySims | Array | Secondary SIM information. |
action | string | Activation. |
carrier | string | Carrier for the secondary SIM. |
simType | string | Physical or Virtual. |
imei | string | 15 digits. |
ipAddress | string | The IP address of the activated device. |
result | object | Result status object. |
status | string | Success or Failed. |
message | string | Result message. |
errors | object | List of errors. |
errorCode | string | Error code. |
errorMessage | string | Error message. |
callbackCount | integer | The number of times this callback message has been sent. |
maxCallbackThreshold | integer | The 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
| Parameter | Type | Description |
|---|---|---|
result | object | Result status object. |
status | string | Success or Failed. |
errors | object | List of errors. |
errorCode | string | Error code. |
errorMessage | string | Error 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
| Parameter | Type | Description |
|---|---|---|
requestType | string | Name of the requested action. For activation, the value is Activate. |
simInfo | object | SIM information. |
action | string | Activation. |
secondarySims | Array | Secondary SIM information. |
carrier | string | Carrier for the secondary SIM. |
simType | string | Physical or Virtual. |
iccid | string | 19-20 digits. |
imei | string | 15 digits. |
deviceUser | string | A user-defined descriptive field, limited to 100 characters. |
zipCode | string | A 5-digit numeric ZIP code. |
callbackCount | integer | The number of times this callback message has been sent. |
maxCallbackThreshold | integer | The maximum number of times this callback message will be sent if it is not correctly acknowledged. |
transactionID | string | A unique string that associates the request with the results that are sent via a callback service. |
result | object | Result status object. |
status | string | Success or Failed. |
errors | object | List of errors. |
errorCode | string | Error code. |
errorMessage | string | Error message. |