The Activation API allows up to 1000 SIMs in a single API request.
SIM Activations
Activates service for one or more SIMs so that they can send and receive data.
urn:grt:gemmapplication/jsonhttps://gemmapi2.granitenet.com/v2/api/gemm/v1Uses and Requirements
Mobility sends an asynchronous SubscriberService callback for each SIM in the request when service activates or if activation fails.
Info
Available For
- ATT
- Granite Wireless - VzW
- T-Mobile
- Verizon
- Granite Multi Carrier SIM
- Verizon eSIM
- ATT: Some ATT plan types are not supported; contact your Account Manager to confirm plan compatibility.
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. |
eid | string | Conditional | 32 digits. Used for Granite Multi Carrier eSIM QR Code activations instead of iccid. |
imei | string | Conditional | 15 numeric digits. Required for carriers/flows that activate by device, or when no iccid/eid is provided. |
deviceUser | string | No | A user-defined descriptive field, limited to 100 characters. |
simType | string | Conditional | The type of SIM that you want to activate. Values are Physical or eSIM. Virtual is the earlier name for eSIM and is still accepted. Responses and callbacks return Virtual for an eSIM. Required on Granite Multi Carrier SIM, Granite Wireless - VzW, Verizon B2B, AT&T POD19 IOT and T-Mobile Control Center plans, and on AT&T Mobility plans other than Basic Phone. Verizon B2B accepts eSIM only, and AT&T Basic Phone plans accept Physical only. Optional on other plans. A SIM sent without simType is activated as Physical, so its iccid is required. All SIMs in a request must be the same type. |
eSimActivationFlow | string | No | The type of virtual activation you want to process. Valid values are QRCode or Default. If omitted, the system falls back to the default flow. |
zipCode | string | Conditional | A 5-digit numeric ZIP code. Required for Telespire activations; optional for Verizon and Verizon B2B activations. |
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. |
accountIdentifiers | object | No | Account identifiers to record for the SIM. |
customField1 | string | No | Limited to 100 characters. |
customField2 | string | No | Limited to 100 characters. |
generalLedgerNo | string | No | General ledger number. Limited to 50 characters. |
branchNo | string | No | Branch number. Limited to 50 characters. |
employer | string | No | Limited to 50 characters. |
siteAddressInfo | object | Conditional | Site address for Verizon 5G Fixed Wireless activations. Pass it on each SIM when siteAddressMode = DifferentSiteAddressForEachSIM, or once at the request level when siteAddressMode = SameSiteAddressForAllSIMs. |
siteAddress | object | Conditional | Object containing information about the site address. Only required if siteAddressSameAsServiceAddress is false. |
address1 | string | Yes | Street address 1 for the site address. |
address2 | string | No | Street address 2 for the site address. |
city | string | Yes | City for the site address. |
state | string | Yes | State for the site address. |
zip | string | Yes | ZIP code for the site address. |
siteAddressSameAsServiceAddress | boolean | Conditional | If true, siteAddress is not required. |
planName | string | Yes | The plan that you want to assign to all specified SIMs. Set this parameter to one of the plan values provided. |
sku | string | No | Verizon plans only, not Fixed Wireless. The Stock Keeping Unit of a 4G device type, used with ICCIDs in place of an IMEI. It applies to every SIM in the request, so all devices must be of the same type. 2-20 letters, numbers or slashes. |
siteAddressMode | string | Conditional | Only supports two values. 1 = SameSiteAddressForAllSIMs and 2 = DifferentSiteAddressForEachSIM. Only required for activations on the Verizon 5G network. |
networkApn | string | Conditional | Granite Multi Carrier and Verizon plans. Name of a private APN set up for your account, for a private network or static IP. Up to 100 characters. On a Verizon plan it also selects the plan and must be sent together with carrierSubnet. |
carrierSubnet | string | Conditional | Granite Multi Carrier and Verizon plans. Private subnet (IP range) set up for the APN on your parent or grandparent account, for example 156.50.240.0/22. 1-50 characters. On a Verizon plan it must be sent together with networkApn. On a static IP plan sent without networkApn or carrierSubnet, Mobility uses the default APN set up for your account. |
features | array of strings | No | Add-on value(s) to apply while activating the SIM, for example CROSSZONEROAMING. |
contentControl | string | No | Granite Multi Carrier SIMs. Name of the content control policy to apply at activation. Ignored on static IP plans. On a dynamic IP plan, send either contentControl or networkApn, not both. |
throttleControl | string | No | Granite Multi Carrier SIMs. Name of the throttle control policy to apply at activation. |
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. |
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 | Possible values are
|
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. |
address2 | string | No | Optional additional street address information for the 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
The examples below are grouped by use case. Any account option can be combined with any activation type.
Existing Child Account
Pass activateOption = ExistingAccount and the 8-digit accountNumber of the child account. All of the activation type and carrier examples further down use this option.
Request to activate a SIM with tags using an existing child account
New Child Account: One Account for All SIMs
Pass activateOption = NewAccount, parentAccountNumber, accountCreationMode = CreateOneAccountForAllSIMs and a single accountInfo at the request level. Mobility creates one child account under the parent and activates every SIM under it. billingAddress, invoiceDeliveryMethod and invoiceStyle are required only when billingOption = ChildPays.
Request to activate SIMs on a new account with billingOption = ParentPays
Request to activate SIMs on a new account with billingOption = ChildPays
New Child Account: Separate Account for Each SIM
Pass activateOption = NewAccount, parentAccountNumber and accountCreationMode = CreateSeparateAccountForEachSIM, then put an accountInfo on each entry in sims instead of at the request level. Mobility creates a separate child account for each SIM. Each account can use its own billing option.
Request to activate SIMs with a separate new child account for each SIM
Fixed Wireless Activation
Verizon 5G Fixed Wireless plans need a site address for each SIM, and imei is required.
- siteAddressMode = SameSiteAddressForAllSIMs - pass one siteAddressInfo at the request level. It is used for every SIM.
- siteAddressMode = DifferentSiteAddressForEachSIM - pass a siteAddressInfo on each entry in sims and none at the request level.
Set siteAddressSameAsServiceAddress = true to use the child account’s service address instead of sending a siteAddress.
Request to activate Verizon 5G Fixed Wireless SIMs with the same site address for all SIMs
Request to activate Verizon 5G Fixed Wireless SIMs with a different site address for each SIM
QR Code Activation
Pass simType = eSIM and eSimActivationFlow = QRCode, and identify the device by eid (or imei) instead of iccid. All eSIMs in one request must use the same flow. When the activation completes, the callback returns the activationCode (LPA code). Use Get QR-Code through LPA Code to turn it into a QR code that the device scans to download the eSIM profile.
Request to activate a Granite eSIM QRCode (with EID) on an existing child account
Granite Multi Carrier Activation
Granite Multi Carrier SIM plans support Physical SIMs and eSIMs, and add these options:
- contentControl and throttleControl - names of the content and throttle policies to apply at activation.
- carrierSubnet, with networkApn where needed - a private APN / static IP that is configured on the parent or grandparent account.
- features - add-ons such as CROSSZONEROAMING.
An eSIM needs either eid or imei.
Request to activate a SIM on Webbing CAN/MEX Plan using an existing child account
Request to activate a Granite Multi Carrier Physical SIM with content and throttle controls on an existing child account
Request to activate a Physical SIM on Private Static IP using an existing child account
Request to activate a Granite eSIM (with IMEI) on Private Static IP using an existing child account
Request to activate a Webbing eSIM on an existing child account with Cross Zone Roaming enabled
Carrier Examples
Standard Physical SIM and eSIM activations for each carrier. Activation requests can’t mix Physical SIMs and eSIMs.
Request to activate an AT&T (APEX) eSIM on an existing child account
Request to activate an AT&T (APEX) Physical SIM on an existing child account
Request to activate an ATT IoT Physical SIM on an existing child account
Request to activate an ATT ABIR Physical SIM on an existing child account
Request to activate a Granite Wireless - VzW (Telespire) eSIM on an existing child account. zipCode is required.
Request to activate a Granite Wireless - VzW (Telespire) Physical SIM on an existing child account. zipCode is required.
Request to activate a T-Mobile Physical SIM on an existing child account
Request to activate a Verizon Physical SIM on an existing child account
Request to activate a Verizon eSIM on an existing child account
Secondary SIM and SIM360 Activations
- To activate a secondary eSIM along with the primary activation, see Activation with Secondary SIM.
- To activate an EID across AT&T, T-Mobile and Verizon, see SIM360 Activation.
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
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. |
activationCode | string | LPA Code received for QRCode based Activations. |
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:
Error Response Fields
| Parameter | Type | Description |
|---|---|---|
requestType | string | Name of the requested action. For activation, the value is Activate. |
simInfo | object | SIM information. |
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. |