Skip to Content
GEMMSIM LifecyclePort-InPort In Use Cases

Port In Use Cases

POST/subscriber-management/actions/port-inSIM Lifecycle

Moves one or more existing phone numbers (MDNs) from another carrier to Granite.

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

Uses and Requirements

Port in up to 100 numbers per request. Each SIM in sims carries the number to port (msisdn), the device imei, and the account details held by the old carrier (oldServiceProviderDetail). Mobility validates the request and returns a transactionID straight away. It then sends an asynchronous SubscriberService callback for each SIM when the port succeeds or fails. All callbacks share the same transactionID.

Available For

  • ATT
  • Granite Wireless - VzW
  • T-Mobile

Use Cases

Every Port In request makes two choices: which child account the numbers are ported into, and which type of Port In to run. Pick one account option and combine it with either Port In type.

Account Options

Use caseHow to request itNotes
Port In under an existing child accountactivateOption = ExistingAccount and accountNumberaccountNumber is the 8-digit number of the existing child account. Do not pass parentAccountNumber, accountCreationMode or accountInfo.
Port In under one new child accountactivateOption = NewAccount, parentAccountNumber and accountCreationMode = CreateOneAccountForAllSIMsPass accountInfo once at the request level. Mobility creates one child account under the parent and ports every number in the request into it. If the account cannot be created, every SIM in the request fails.
Port In each number under its own new child accountactivateOption = NewAccount, parentAccountNumber and accountCreationMode = CreateSeparateAccountForEachSIMPass accountInfo on each entry in sims instead of at the request level. Mobility creates a separate child account for each SIM.

For both new account options, billingAddress, invoiceDeliveryMethod and invoiceStyle are required only when billingOption = ChildPays.

Port In Types

Use caseHow to request itNotes
Port InA Port In plan, with msisdn, imei and oldServiceProviderDetail on each SIMPhysical SIMs also need an iccid. eSIMs do not. All SIMs in one request must be the same SIM type and come from the same old carrier.
Port In with Secondary SIMA secondarySims entry on an eSIM Port In SIM, with simType = eSIM, imei and carrierThe ported number is the primary SIM. One secondary eSIM can be added to each eSIM Port In SIM, on a different carrier from the Port In plan. Each one gets its own callback, and the secondary SIM is cancelled if the port fails.

Old Carrier Details

The fields required in oldServiceProviderDetail depend on the carrier of the Port In plan. They describe the account that holds the number at the old carrier.

Port In plan carrierRequiredNotes
ATTfirstName, lastName, businessName and billingAccountNumbercarrier and billingAccountPassword are optional.
Granite Wireless - VzWcarrier, billingAccountNumber, and either firstName + lastName or businessNameSend the person's name or the business name, not both. carrier is the name of the old carrier.
T-MobilebillingAccountNumberOn T-Mobile for Business plans, the name fields and carrier are optional. Other T-Mobile plans follow the ATT rules.

Optional Settings

These settings can be added to any Port In type:

  • tagItem.addTags - up to 10 tags to associate with each SIM.
  • deviceUser - a descriptive label for the SIM user, up to 100 characters.
  • accountIdentifiers - custom fields, general ledger number, branch number and employer to store on each SIM.
  • features - add-on codes to apply. Plans with the same name can differ by add-on, so the features you pass also select the plan.

Best Practices

  • Send a POST /subscriber-management/actions/port-in request to port in the numbers.
  • Register a URL to receive SubscriberService callback messages and run a callback listening service at that URL. Mobility sends a callback when each number has been ported, or if there was a problem and the number was not ported. With a secondary SIM, a separate callback is sent for it.
  • Check the old carrier details before you submit. Most port failures come from an account number, PIN or name that does not match the old carrier’s records.

Ports usually complete within a few minutes, but the old carrier can take longer to release a number. If you receive a general error in a callback, open a support ticket. Other errors indicate a problem with the request parameters or the old carrier details, so verify them and resend the request.

Last updated on