Skip to main content

Port-Ins

Bandwidth lets you port US/Canada local, US/Canada toll free, and international phone numbers through a single set of APIs. They build on the existing /portins and /bulkPortins APIs. The URLs are the same, but v2 orders:

  • Use JSON on the /api/v2 base path
  • Accept a mix of countries and number types in one bulk port-in
  • Run the Portability Checker on every number automatically and group portable numbers into child port-ins for you
  • Accept a saved address (addressId) or an inline serviceAddress. See Creating an Address

Eligibility​

Your account must be on the Universal Platform. If it is not, use the Legacy guides instead: Bulk Port-Ins and Stand-Alone Port-Ins.

All requests must be sent to the v2 base path:

https://api.bandwidth.com/api/v2/accounts/{accountId}/...

Orders created through /api/v1 follow the behavior described in the Legacy guides.

Choosing Bulk or Stand-Alone​

UseWhen
Bulk Port-InsYou have many numbers, possibly across countries, carriers, or number types. Bandwidth splits them into child port-ins, and you submit them all together.
Stand-Alone Port-InsYour numbers form a single portable group: the same country, number type, port type, and losing carrier (US/Canada local) or controlling RespOrg (toll free).

End-to-End Flow​

  1. Check portability. Call POST /accounts/{accountId}/porting/portability/phoneNumbers to learn which numbers are portable, how they group, which documents are required, and the earliest estimated port date. See the Portability Checker.
  2. Prepare prerequisites. Create a Voice Configuration Package, plus any addresses and Requirements Packages the numbers need (see below).
  3. Create the order. Create a bulk port-in and attach the numbers, or create a stand-alone port-in for a single group.
  4. Complete each port-in. Fill in subscriber details, the losing carrier (international), and upload the required documents. Use Available FOC Dates to pick a requestedFocDate the port-in will accept and to see which weekend and holiday dates are skipped.
  5. Submit. Submit the bulk port-in (which submits every child) or the stand-alone port-in.
  6. Monitor. Poll the order or subscribe to order notifications until it completes.

Prerequisites​

ItemRequired whenNotes
Sub-account (site)Required to submit (optional on a draft)Passed as subAccountId. locationId is optional.
Voice Configuration PackageRequired to submit when your account uses Voice Configuration Packages (optional on a draft)Passed as voiceConfigurationPackageId. A missing value on submit returns error 7697.
AddressAlways for the subscriber of a US/Canada local or international port-inUse either an addressId from the address service or an inline serviceAddress. Addresses on a bulk port-in must be in the USA or Canada; international child port-ins take their own addressId. See Creating an Address.
Requirements PackageThe country and number type require end-user verification (see complianceRequirements in the portability response)Must be verified before the port-in can proceed. Passed as requirementsPackageId. See Creating a Requirements Package.
Porting documents (LOA, COB, ...)Listed in portingDocuments of the portability responseUS/Canada local and toll free use the /loas endpoint; international port-ins use the /porting/portinOrders/{orderId}/documents endpoint. See Uploading Documents.
Target RespOrgPorting toll free numbersPassed as targetRespOrgId, a 5-character Bandwidth RespOrg ID such as JYT01.

Uploading Documents​

Documents are uploaded to individual port-ins, never to a bulk port-in. Uploading to a bulk port-in returns error 7752: "Documents for bulk port-in orders on the universal platform should be uploaded to the individual child port-ins orders."

Port-in typeEndpoint
US/Canada localPOST /accounts/{accountId}/portins/{orderId}/loas
US/Canada toll freePOST /accounts/{accountId}/portins/{orderId}/loas
International (non-NANP)POST /accounts/{accountId}/porting/portinOrders/{orderId}/documents (see Managing Documents)

Port Type Terms​

Port type terms used in these guides: automated ports are exchanged electronically with the losing carrier, and manual ports are handled by Bandwidth porting agents. Off-net numbers move from another carrier, while on-net and internal numbers are already on Bandwidth. E-bonded wireless carriers have an automated wireless interface.

See Porting Terminology for these and other porting terms.

Limits​

LimitValue
Numbers per portability check5,000
Numbers per bulk port-in TN list20,000
Numbers per international port-in500. A bulk port-in splits larger groups into several child port-ins. A stand-alone port-in is rejected with error 7660.
Draft retentionDraft orders are removed 48 hours after their last update
Requested FOC time, US/Canada11:30 AM Eastern, or a range for triggered and wireless ports. See Available FOC Dates
Requested FOC time, internationalMidnight in the country's port time zone (UTC by default). See Available FOC Dates

Statuses​

Bulk port-in processingStatus​

StatusMeaning
DRAFTCreated, with no child port-ins yet.
VALIDATE_DRAFT_TNSNumbers are being checked for portability and grouped into child port-ins.
VALID_DRAFT_TNSEvery number is portable and child port-ins have been created.
INVALID_DRAFT_TNSAt least one number is not portable, or a toll free child port-in is INVALID_DRAFT_TFNS. Portable numbers still get child port-ins; see errors in the TN list.
IN_PROGRESSSubmitted. Child port-ins are being processed.
NEEDS_ATTENTIONAt least one child port-in is in EXCEPTION, INVALID_TFNS, or MISSING_REQUIREMENTS.
COMPLETEDEvery child port-in is COMPLETE. Terminal.
PARTIALChild port-ins finished in a mix of COMPLETE and CANCELLED. Terminal.
CANCELLEDEvery child port-in is CANCELLED. Terminal.

Port-in processingStatus​

StatusMeaning
DRAFTSaved but not submitted.
VALIDATE_DRAFT_TFNS / VALID_DRAFT_TFNS / INVALID_DRAFT_TFNSDraft toll free port-in whose numbers are being validated, are valid, or are invalid.
VALIDATE_TFNS / INVALID_TFNSSubmitted toll free port-in whose numbers are being validated, or failed validation.
PENDING_DOCUMENTSSubmitted US/Canada port-in waiting for its LOA.
MISSING_REQUIREMENTSSubmitted international port-in waiting on documents or a Requirements Package. See missingRequirements on the order.
SUBMITTEDSent to the losing carrier or porting vendor.
PENDING_CARRIER_APPROVALInternational port-ins only. Waiting for the losing carrier to approve.
FOCThe losing carrier confirmed the port date.
REQUESTED_SUPPAn update (supp) to a submitted order is being processed.
EXCEPTIONThe order needs a correction. See errors on the order.
REQUESTED_CANCELA cancellation is being processed.
COMPLETEThe numbers are ported to Bandwidth. Terminal.
CANCELLEDThe order was cancelled. Terminal.

Notifications​

Instead of polling, create a subscription with Subscriptions v2 (API reference):

  • Order type bulkPortins for bulk port-in status changes
  • Order type portins for port-in (including child port-in) status changes

Next Steps​