Port In Use Cases
/subscriber-management/actions/port-inSIM LifecycleMoves one or more existing phone numbers (MDNs) from another carrier to Granite.
urn:grt:gemmapplication/jsonhttps://gemmapi2.granitenet.com/v2/api/gemm/v1Uses 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 case | How to request it | Notes |
|---|---|---|
| Port In under an existing child account | activateOption = ExistingAccount and accountNumber | accountNumber is the 8-digit number of the existing child account. Do not pass parentAccountNumber, accountCreationMode or accountInfo. |
| Port In under one new child account | activateOption = NewAccount, parentAccountNumber and accountCreationMode = CreateOneAccountForAllSIMs | Pass 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 account | activateOption = NewAccount, parentAccountNumber and accountCreationMode = CreateSeparateAccountForEachSIM | Pass 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 case | How to request it | Notes |
|---|---|---|
| Port In | A Port In plan, with msisdn, imei and oldServiceProviderDetail on each SIM | Physical 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 SIM | A secondarySims entry on an eSIM Port In SIM, with simType = eSIM, imei and carrier | The 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 carrier | Required | Notes |
|---|---|---|
| ATT | firstName, lastName, businessName and billingAccountNumber | carrier and billingAccountPassword are optional. |
| Granite Wireless - VzW | carrier, billingAccountNumber, and either firstName + lastName or businessName | Send the person's name or the business name, not both. carrier is the name of the old carrier. |
| T-Mobile | billingAccountNumber | On 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-inrequest 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.