Bulk Port-Ins
A bulk port-in takes a list of up to 20,000 phone numbers of any mix of countries and number types, checks their portability, and splits the portable numbers into child port-ins. You complete each child port-in, then submit the bulk port-in to submit every child at once.
Before you start, read the Overview for eligibility, prerequisites, and status definitions. All requests below use the base URL https://api.bandwidth.com/api/v2 and JSON (Content-Type: application/json, Accept: application/json).
High Level Steps
- Create a bulk port-in
- Add phone numbers and wait for validation
- Review the child port-ins
- Complete each child port-in and upload its documents
- Optionally update the bulk port-in or attach and detach port-ins
- Submit the bulk port-in
- Monitor for completion
Creating a Bulk Port-In
Create the bulk port-in with POST /accounts/{accountId}/bulkPortins. Every field is optional when you create the bulk port-in; an empty body ({}) creates an empty draft. Missing fields a child port-in needs are checked when you submit. Before you submit, set subAccountId and, if your account uses Voice Configuration Packages, voiceConfigurationPackageId. Values you set here are copied to each child port-in, which saves you from repeating them.
| Field | Description |
|---|---|
customerOrderId | Your reference for the order. Letters, numbers, spaces, and hyphens, up to 255 characters. |
requestedFocDate | Requested port date, as 2026-11-04, 2026-11-04Z (deprecated), or an ISO 8601 timestamp. If omitted, each child uses its earliest estimated date. To find dates the children will accept, see Available FOC Dates. |
subAccountId | The sub-account (site) the numbers will be placed in. Required to submit. |
locationId | The location (SIP peer) the numbers will be placed in. |
voiceConfigurationPackageId | The Voice Configuration Package to apply to the numbers. Required to submit when your account uses Voice Configuration Packages (error 7697 if missing). |
targetRespOrgId | The Bandwidth RespOrg that toll free numbers will move to, for example JYT01. Can only be changed while the bulk port-in is a draft. |
loaAuthorizingPerson | The person who signed the LOA, up to 100 characters. Copied to US/Canada child port-ins. |
billingTelephoneNumber | The billing telephone number at the losing carrier. Copied to US/Canada local child port-ins. |
subscriber | The end user. subscriberType (BUSINESS or RESIDENTIAL), businessName or firstName/lastName, and either addressId or serviceAddress. Copied to US/Canada local child port-ins. |
tags | Up to 10 name/value tags to apply to the numbers when they port in. Copied to every child port-in. See Tagging Ported Phone Numbers. |
subscriber, loaAuthorizingPerson, and billingTelephoneNumber are only copied to US/Canada child port-ins. International child port-ins need their own subscriber, address, and losing carrier, because those vary by country. The address on a bulk port-in must be in the USA or Canada.
Request with an address ID
{
"customerOrderId": "portin-docs-001",
"requestedFocDate": "2026-11-02",
"subAccountId": 12345,
"locationId": 67890,
"voiceConfigurationPackageId": "d7db032a-d007-43c4-90eb-987741532706",
"targetRespOrgId": "JYT01",
"loaAuthorizingPerson": "Jane Doe",
"subscriber": {
"subscriberType": "BUSINESS",
"businessName": "Acme Corp",
"addressId": "7a6f7e54-6189-4856-a89d-dc49276719c2"
}
}
Request with a service address
{
"customerOrderId": "portin-docs-002",
"subAccountId": 12345,
"locationId": 67890,
"voiceConfigurationPackageId": "d7db032a-d007-43c4-90eb-987741532706",
"loaAuthorizingPerson": "Jane Doe",
"subscriber": {
"subscriberType": "BUSINESS",
"businessName": "Acme Corp",
"serviceAddress": {
"houseNumber": "2230",
"streetName": "Bandmate Way",
"city": "Raleigh",
"stateCode": "NC",
"zip": "27607",
"county": "Wake",
"country": "United States",
"addressType": "Service"
}
}
}
201 Created
The orderId identifies the bulk port-in in every later request.
{
"orderId": "c570de49-26c8-4174-99b1-1aaa0c15a3b4",
"customerOrderId": "portin-docs-001",
"requestedFocDate": "2026-11-02T00:00:00Z",
"subscriber": {
"subscriberType": "BUSINESS",
"businessName": "Acme Corp",
"addressId": "7a6f7e54-6189-4856-a89d-dc49276719c2"
},
"loaAuthorizingPerson": "Jane Doe",
"subAccountId": 12345,
"locationId": 67890,
"processingStatus": "DRAFT",
"accountId": 9900000,
"targetRespOrgId": "JYT01",
"voiceConfigurationPackageId": "d7db032a-d007-43c4-90eb-987741532706",
"childPortinsProcessing": false,
"createdByUser": "jdoe",
"lastModifiedBy": "jdoe",
"lastModifiedDate": "2026-10-19T15:17:00.347Z",
"orderCreateDate": "2026-10-19T15:17:00.322Z"
}
Tagging Ported Phone Numbers
Include tags in the bulk port-in to have tags applied to the phone numbers when they are ported in. Tags are name/value pairs, the same tags you can manage on phone numbers with the Phone Number Tagging API.
{
"customerOrderId": "portin-docs-001",
"tags": [
{
"tagName": "customerId",
"tagValue": "11111111-1111-1111-1111-111111111111"
}
]
}
The tags are written to the bulk port-in and to each of its child port-ins. When a child port-in completes, its tags are applied to the numbers it ported in.
- A maximum of 10 tags can be specified.
- Tag names and values can contain only letters, numbers, dashes, and underscores, and must be 1 to 255 characters long. They are case sensitive.
- Tag names must be unique within the order.
tagscannot be an empty array when you create the bulk port-in. Leave it out if you don't want any tags.
A request with invalid tags is rejected with one of these errors:
| Code | Meaning |
|---|---|
7919 | Invalid tag name or value |
7920 | Duplicate tag names |
7921 | Empty tags on create |
7922 | More than 10 tags |
Changing tags
Tags are metadata and don't affect how the port-in is processed. Unlike most bulk port-in fields, you can change them with PATCH /accounts/{accountId}/bulkPortins/{orderId} after child port-ins exist and after the bulk port-in has been submitted. The one exception is while an earlier PATCH is still being applied to the children (childPortinsProcessing is true): any PATCH, including one that only changes tags, can be rejected until that finishes.
- If
tagsis not in thePATCH, the existing tags are left unchanged. - If
tagsis included, the tags you send replace all existing tags on the bulk port-in and on its child port-ins. This includes tags you gave to an individual child port-in. - To remove all tags, send
"tags": []or"tags": null. - On a
PUT, which is only allowed before child port-ins exist, omittagsto keep the existing tags, or send an empty array to remove them.
{
"tags": [
{
"tagName": "team",
"tagValue": "porting"
}
]
}
Because each child port-in is a regular port-in, you can change its tags on its own with PUT /accounts/{accountId}/portins/{orderId}. That means the tags on a child can differ from the tags on its bulk port-in, so don't assume they match. To see the tags that will be applied to a set of numbers, check the child with GET /accounts/{accountId}/portins/{orderId}.
- Cancelled child port-ins are not updated by a bulk port-in
PATCH. - If any child port-in fails validation for the change, the
PATCHis rejected with a400identifying that child, and nothing is changed. - Children are updated asynchronously after the
PATCHis accepted, so aGETon a child right after may briefly show its old tags. A failure after thePATCHis accepted is not covered by the validation above.
Adding Phone Numbers
Add numbers in E.164 format with PUT /accounts/{accountId}/bulkPortins/{orderId}/tnList. You can mix US/Canada local, toll free, and international numbers in one list of up to 20,000 numbers.
{
"phoneNumbers": [
"+19195550100",
"+19195550101",
"+13125550123",
"+19195550199",
"+19195550150",
"+18335550100",
"+18885550100",
"+442071234567",
"+442071234568"
]
}
Validation runs in the background. The API answers right away with 202 Accepted:
{
"processingStatus": "VALIDATE_DRAFT_TNS",
"orderId": "c570de49-26c8-4174-99b1-1aaa0c15a3b4"
}
Sending a new TN list replaces the previous one: existing child port-ins are discarded and validation starts again. A TN list can only be changed while the bulk port-in is in a draft status (DRAFT, VALIDATE_DRAFT_TNS, VALID_DRAFT_TNS, or INVALID_DRAFT_TNS).
Reviewing the Child Port-Ins
Poll GET /accounts/{accountId}/bulkPortins/{orderId}/tnList until processingStatus is VALID_DRAFT_TNS or INVALID_DRAFT_TNS, or subscribe to notifications.
Numbers are grouped into child port-ins:
- US/Canada local by losing carrier (SPID) and rate center
- US/Canada toll free by controlling RespOrg
- International by country, number type, port type, and area code, with at most 500 numbers per child port-in. Numbers that need different handling are split into separate child port-ins.
{
"processingStatus": "VALID_DRAFT_TNS",
"portablePhoneNumbers": [
"+13125550123",
"+18335550100",
"+18885550100",
"+19195550100",
"+19195550101",
"+19195550150",
"+19195550199",
"+442071234567",
"+442071234568"
],
"childPortinOrders": [
{
"orderId": "6b236a6a-01ce-4779-913c-7096f1188cb1",
"phoneNumbers": ["+442071234567", "+442071234568"],
"phoneNumberType": "GEOGRAPHIC",
"countryCodeA3": "GBR",
"areaCode": "20"
},
{
"orderId": "cce0eb8f-c20e-4c40-b58b-4fbf8c5befdb",
"phoneNumbers": ["+19195550199"],
"phoneNumberType": "GEOGRAPHIC",
"countryCodeA3": "USA",
"losingCarrierSpid": "5678",
"losingCarrierName": "Example Wireless Carrier"
},
{
"orderId": "218b7046-5c96-4c56-a433-dac5a63352b2",
"phoneNumbers": ["+19195550100", "+19195550101"],
"phoneNumberType": "GEOGRAPHIC",
"countryCodeA3": "USA",
"losingCarrierSpid": "1234",
"losingCarrierName": "Example Wireline Carrier"
},
{
"orderId": "7015adb7-4b8d-4329-8251-f1c51fdbd7aa",
"phoneNumbers": ["+13125550123"],
"phoneNumberType": "GEOGRAPHIC",
"countryCodeA3": "USA",
"losingCarrierSpid": "1236",
"losingCarrierName": "Example Wireline Carrier B"
},
{
"orderId": "a6d60737-fea2-4ff8-a522-ecf240e08841",
"phoneNumbers": ["+19195550150"],
"phoneNumberType": "GEOGRAPHIC",
"countryCodeA3": "USA",
"losingCarrierSpid": "1235",
"losingCarrierName": "Example Wireline Carrier C"
},
{
"orderId": "6e1d0bc9-66b2-4bb3-9146-1caa59a1a02d",
"phoneNumbers": ["+18335550100"],
"phoneNumberType": "TOLL_FREE",
"countryCodeA3": "USA",
"respOrgId": "RespOrg 1"
},
{
"orderId": "e5b764dc-3733-4b23-9ae7-e2a2de3e9ca0",
"phoneNumbers": ["+18885550100"],
"phoneNumberType": "TOLL_FREE",
"countryCodeA3": "USA",
"respOrgId": "RespOrg 2"
}
],
"orderId": "c570de49-26c8-4174-99b1-1aaa0c15a3b4"
}
| Field | Description |
|---|---|
portablePhoneNumbers | Numbers that were placed in a child port-in. |
errors | Present when some numbers are not portable (see below). |
childPortinOrders[].orderId | The port-in order ID of the child. Use it with the /portins API. |
childPortinOrders[].countryCodeA3 | ISO 3166-1 alpha-3 country code. |
childPortinOrders[].phoneNumberType | For example GEOGRAPHIC, MOBILE, or TOLL_FREE. |
childPortinOrders[].losingCarrierSpid / losingCarrierName | US/Canada local only. |
childPortinOrders[].respOrgId | Toll free only. The controlling RespOrg. |
RespOrg IDs in responses may be masked and returned as RespOrg 1 through RespOrg N. The same RespOrg gets the same label within a response. targetRespOrgId is the value you send, so it is not masked.
When some numbers are not portable
If any number is not portable, the status is INVALID_DRAFT_TNS. Portable numbers still get child port-ins, and the non-portable numbers are listed in errors. You can submit the bulk port-in as-is (non-portable numbers are left out) or send a corrected TN list.
{
"processingStatus": "INVALID_DRAFT_TNS",
"errors": [
{
"description": "Unable to provide coverage",
"phoneNumbers": ["+17855550123"],
"code": 7004
},
{
"description": "Telephone numbers are non portable",
"phoneNumbers": ["+17855550123"],
"code": 7503
}
],
"portablePhoneNumbers": ["+18335550101"],
"childPortinOrders": [
{
"orderId": "8d79c27a-171e-4c8e-a622-5d58b9c0ae5e",
"phoneNumbers": ["+18335550101"],
"phoneNumberType": "TOLL_FREE",
"countryCodeA3": "USA",
"respOrgId": "RespOrg 1"
}
],
"orderId": "d772df58-0db1-4e80-b18d-9f01a210e78c"
}
To list only the child port-in IDs, use GET /accounts/{accountId}/bulkPortins/{orderId}/portinList:
{
"portinOrderIds": [
"6b236a6a-01ce-4779-913c-7096f1188cb1",
"cce0eb8f-c20e-4c40-b58b-4fbf8c5befdb",
"218b7046-5c96-4c56-a433-dac5a63352b2",
"7015adb7-4b8d-4329-8251-f1c51fdbd7aa",
"a6d60737-fea2-4ff8-a522-ecf240e08841",
"6e1d0bc9-66b2-4bb3-9146-1caa59a1a02d",
"e5b764dc-3733-4b23-9ae7-e2a2de3e9ca0"
]
}
Completing the Child Port-Ins
Each child port-in is a regular draft port-in. Retrieve it with GET /accounts/{accountId}/portins/{orderId} to see what was copied from the bulk port-in, then fill in anything missing with PUT /accounts/{accountId}/portins/{orderId}. The bulkPortinOrderId field links the child to its bulk port-in, and earliestEstimate is the earliest date the numbers can port. To see every requestedFocDate a child will accept, use Available FOC Dates.
PUT /portins/{orderId} can clear fields you leave out. Send every value you want to keep, such as customerOrderId.
What each type of child port-in needs before you submit:
| Child port-in type | Copied from the bulk port-in | You provide |
|---|---|---|
| US/Canada local | customerOrderId, requestedFocDate, subscriber, loaAuthorizingPerson, billingTelephoneNumber, sub-account, location, Voice Configuration Package | An LOA, and a billingTelephoneNumber if the bulk port-in did not set one. Wireless numbers also need wirelessInfo (accountNumber, pinNumber). |
| US/Canada toll free | customerOrderId, requestedFocDate, targetRespOrgId, loaAuthorizingPerson, sub-account, location, Voice Configuration Package | An LOA. |
| International | customerOrderId, requestedFocDate, sub-account, location, Voice Configuration Package | losingCarrierName, a subscriber with an addressId in the same country (plus vatNumber where required), a requirementsPackageId where required, and the documents listed by the portability check. |
Example: US/Canada local child port-in
Response from GET /accounts/{accountId}/portins/{orderId}:
{
"processingStatus": "DRAFT",
"bulkPortinOrderId": "c570de49-26c8-4174-99b1-1aaa0c15a3b4",
"requestedFocDate": "2026-11-02T16:30:00Z",
"earliestEstimate": "2026-10-23T15:30:00Z",
"subscriber": {
"subscriberType": "BUSINESS",
"businessName": "Acme Corp",
"addressId": "7a6f7e54-6189-4856-a89d-dc49276719c2"
},
"loaAuthorizingPerson": "Jane Doe",
"phoneNumbers": ["+19195550100", "+19195550101"],
"accountId": 9900000,
"subAccountId": 12345,
"locationId": 67890,
"errors": [],
"losingCarrierName": "Example Wireline Carrier",
"losingCarrierSpid": "1234",
"losingCarrierIsWireless": "false",
"customerOrderId": "portin-docs-001",
"portType": "AUTOMATED",
"countryCodeA3": "USA",
"phoneNumberType": "GEOGRAPHIC",
"voiceConfigurationPackageId": "d7db032a-d007-43c4-90eb-987741532706"
}
Request. Upload the LOA with POST /accounts/{accountId}/portins/{orderId}/loas, sending the file as the request body:
POST /api/v2/accounts/9900000/portins/218b7046-5c96-4c56-a433-dac5a63352b2/loas?documentType=LOA
Content-Type: application/pdf
<PDF file bytes>
Response:
{
"resultCode": 0,
"resultMessage": "LOA file uploaded successfully for order 218b7046-5c96-4c56-a433-dac5a63352b2",
"fileName": "218b7046-5c96-4c56-a433-dac5a63352b2-1792423121540.pdf"
}
Example: Toll free child port-in
Toll free child port-ins are created in VALID_DRAFT_TFNS once their numbers are validated. controllingRespOrgId is the current RespOrg (it may be masked as RespOrg 1); targetRespOrgId is the RespOrg the numbers will move to.
Response from GET /accounts/{accountId}/portins/{orderId}:
{
"processingStatus": "VALID_DRAFT_TFNS",
"bulkPortinOrderId": "c570de49-26c8-4174-99b1-1aaa0c15a3b4",
"requestedFocDate": "2026-11-02T16:30:00Z",
"earliestEstimate": "2026-10-22T15:30:00Z",
"loaAuthorizingPerson": "Jane Doe",
"phoneNumbers": ["+18335550100"],
"customerOrderId": "portin-docs-001",
"portType": "MANUAL_TOLLFREE",
"controllingRespOrgId": "RespOrg 1",
"targetRespOrgId": "JYT01",
"countryCodeA3": "USA",
"phoneNumberType": "TOLL_FREE",
"voiceConfigurationPackageId": "d7db032a-d007-43c4-90eb-987741532706"
}
Example: International child port-in
International child port-ins start with no subscriber or losing carrier.
Response from GET /accounts/{accountId}/portins/{orderId}:
{
"processingStatus": "DRAFT",
"bulkPortinOrderId": "c570de49-26c8-4174-99b1-1aaa0c15a3b4",
"requestedFocDate": "2026-11-02T00:00:00Z",
"earliestEstimate": "2026-10-28T00:00:00Z",
"phoneNumbers": ["+442071234567", "+442071234568"],
"customerOrderId": "portin-docs-001",
"portType": "MANUAL",
"countryCodeA3": "GBR",
"phoneNumberType": "GEOGRAPHIC",
"voiceConfigurationPackageId": "d7db032a-d007-43c4-90eb-987741532706"
}
Add the losing carrier and a subscriber with an address in the same country.
Request body for PUT /accounts/{accountId}/portins/{orderId}:
{
"customerOrderId": "portin-docs-001",
"losingCarrierName": "Example UK Carrier",
"subscriber": {
"subscriberType": "BUSINESS",
"businessName": "Acme UK Ltd",
"vatNumber": "GB123456789",
"addressId": "aa2cc3af-1444-43f0-a35f-1ab8504e09cc"
}
}
Response:
{
"orderId": "6b236a6a-01ce-4779-913c-7096f1188cb1",
"processingStatus": "DRAFT",
"errors": [],
"losingCarrierName": "Example UK Carrier",
"status": {
"description": "Supp request received. Please use the order id to check the status of your order later.",
"code": 200
}
}
Updating a draft returns the same Supp request received message as updating a submitted port-in. The port-in stays in DRAFT.
Then upload the required documents with POST /accounts/{accountId}/porting/portinOrders/{orderId}/documents. See Managing Documents on a Port-In Order for the request format, supported document types, and how to find valid losing carrier names.
Updating the Bulk Port-In
Use PATCH /accounts/{accountId}/bulkPortins/{orderId} to change bulk-level values. Fields you omit stay the same, and fields you set to null are removed, except targetRespOrgId, which cannot be cleared. A new targetRespOrgId only applies to US/Canada toll free child port-ins, and it can only be changed while the bulk port-in is a draft (7535). Once child port-ins exist, the change is applied to every child port-in and replaces any value set on the child itself. Bandwidth validates every child first: if any child fails, you get a 400 with per-child errors and nothing is applied. Cancelled children are skipped. When you PATCH requestedFocDate, only the date is kept: any time you send is dropped and the value is stored as midnight UTC. Like other bulk-level values, a PATCH overwrites any port-specific changes you made to child port-ins, and that includes tags. Tags are also the one value you can change after submission. See Tagging Ported Phone Numbers.
{
"requestedFocDate": "2026-11-04"
}
{
"customerOrderId": "portin-docs-001",
"requestedFocDate": "2026-11-04T00:00:00Z",
"processingStatus": "VALID_DRAFT_TNS",
"childPortinsProcessing": true,
"orderId": "c570de49-26c8-4174-99b1-1aaa0c15a3b4"
}
childPortinsProcessing: true means the change is still being applied to the child port-ins. The flag turns back to false once every child port-in has been updated. While it is true, Bandwidth can reject another PATCH to the same bulk port-in with error 7756 ("The bulk port-in order has an on-going patch operation. Please try again later."). Check childPortinsProcessing with GET /accounts/{accountId}/bulkPortins/{orderId} and retry once it is false. A new requested FOC date keeps each child's activation time: US/Canada children stay at 11:30 AM Eastern (for example 2026-11-04T16:30:00Z), and international children stay at midnight in their country's port time zone.
To choose a target date for the child port-ins, call GET /accounts/{accountId}/portins/{orderId}/availableFocDates for each child and pick a date that falls in as many of their windows as possible. See Available FOC Dates.
PUT /accounts/{accountId}/bulkPortins/{orderId} replaces the whole bulk port-in, and is only allowed before child port-ins exist. Afterwards it returns:
{
"errorCode": 7703,
"description": "Put is not allowed for bulk portin with subtending portins assigned"
}
Attaching and Detaching Port-Ins
You can attach existing draft port-ins to a bulk port-in, or detach child port-ins, with PUT /accounts/{accountId}/bulkPortins/{orderId}/portinList. The list you send replaces the current list: include the IDs to keep and leave out the IDs to detach. The example below sends one ID, so on a bulk port-in with other children it would detach all of them.
{
"portinList": ["d416df96-bce6-43c8-af22-3359b5fc3638"]
}
{
"portinOrderIds": ["d416df96-bce6-43c8-af22-3359b5fc3638"]
}
Send an empty list to detach every port-in. The bulk port-in goes back to DRAFT.
{
"portinList": []
}
Attaching port-ins changes their requested date. If the bulk port-in has a requestedFocDate, every attached port-in gets it. If it doesn't, the update clears the requested date on every attached port-in.
Rules:
-
While the bulk port-in is a draft, only draft port-ins can be attached. Attaching a submitted port-in returns
7712:{"description": "Please check your input parameters.","portinOrderIds": ["d3502ce6-65a7-45d2-90c4-02fc1c62d938"],"errors": [{"description": "Only draft subtending portins are allowed for draft bulk portin.","code": 7712,"portinOrderId": "d3502ce6-65a7-45d2-90c4-02fc1c62d938"}]} -
A port-in can belong to only one bulk port-in (
7701), and port-ins in a terminal status cannot be attached (7714). -
The list can be changed while the bulk port-in is a draft,
IN_PROGRESS, orNEEDS_ATTENTION(7711). After submission you can detach port-ins but not add new ones (7716). -
Duplicate IDs are rejected.
-
A port-in is rejected if its earliest estimate is later than the bulk port-in's
requestedFocDate(7715), if its numbers are already on the bulk port-in or duplicated across port-ins (7718,7719), or if it is a legacy port-in (7888).
Submitting the Bulk Port-In
When every child port-in is complete, submit them all by setting processingStatus to IN_PROGRESS with PATCH /accounts/{accountId}/bulkPortins/{orderId}:
{
"processingStatus": "IN_PROGRESS"
}
Every child port-in is validated first. If any child port-in fails, nothing is submitted and the response lists the errors for each child port-in:
{
"description": "Please check your input parameters.",
"errors": [
{
"portinOrderId": "6b236a6a-01ce-4779-913c-7096f1188cb1",
"description": "Subscriber information is required",
"code": 7104
},
{
"portinOrderId": "6b236a6a-01ce-4779-913c-7096f1188cb1",
"description": "The losing carrier name is required for international port-ins.",
"code": 7666
}
]
}
Fix the listed child port-ins and submit again. When validation passes, the response is 200 OK with processingStatus IN_PROGRESS, and the child port-ins are submitted in the background:
{
"customerOrderId": "portin-docs-001",
"requestedFocDate": "2026-11-04T00:00:00Z",
"processingStatus": "IN_PROGRESS",
"childPortinsProcessing": true,
"orderId": "c570de49-26c8-4174-99b1-1aaa0c15a3b4"
}
A bulk port-in with no child port-ins cannot be submitted:
{
"errorCode": 7653,
"description": "This bulk port-in cannot transition to IN_PROGRESS because there are no portable TNs in the TN list."
}
Monitoring the Bulk Port-In
After submission, each child port-in moves through its own lifecycle. For example, US/Canada port-ins without an LOA go to PENDING_DOCUMENTS, international port-ins with outstanding documents go to MISSING_REQUIREMENTS, and others go to SUBMITTED or FOC. The bulk port-in status follows its children:
IN_PROGRESSwhile child port-ins are being processedNEEDS_ATTENTIONwhen any child port-in is inEXCEPTION,INVALID_TFNS, orMISSING_REQUIREMENTSCOMPLETED,PARTIAL, orCANCELLEDonce every child port-in has finished
To find out which child port-in needs attention, get the child IDs from GET /bulkPortins/{orderId}/portinList and check each with GET /portins/{orderId}. The errors and missingRequirements fields explain what to fix. Correct the child port-in with PUT /portins/{orderId}.
Instead of polling, use Subscriptions v2 (API reference) with order type bulkPortins for the bulk port-in and portins for its children. The bulk port-in's history is available from GET /accounts/{accountId}/bulkPortins/{orderId}/history.
Deleting and Cancelling
-
Draft bulk port-ins can be deleted with DELETE /accounts/{accountId}/bulkPortins/{orderId}. Deleting a draft bulk port-in also deletes its draft child port-ins. Drafts are also removed automatically 48 hours after their last update.
-
Submitted bulk port-ins cannot be deleted:
{"errorCode": 7709,"description": "Bulk port-in with id c570de49-26c8-4174-99b1-1aaa0c15a3b4 cannot be deleted since it is not in draft status."}Cancel each child port-in instead with DELETE /accounts/{accountId}/portins/{orderId}. The bulk port-in becomes
CANCELLEDwhen every child is cancelled, orPARTIALif some completed.
Common Errors
| Code | Description |
|---|---|
7004 | Bandwidth cannot provide coverage for the number. |
7104 | Subscriber information is required (international child port-ins). |
7316 | The TN list is empty. |
7339 | A number is not a valid E.164 number. |
7502 | The TN list contains duplicate numbers. |
7503 | The number is not portable. |
7648 | The bulk port-in can only move from DRAFT or VALID_DRAFT_TNS to IN_PROGRESS, so it cannot be submitted while numbers are still being validated. |
7653 | The bulk port-in has no portable numbers to submit. |
7666 | The losing carrier name is required for international port-ins. |
7683 | Your account is not enabled to port numbers from that country or number type. |
7701 | The port-in already belongs to another bulk port-in. |
7703 | PUT is not allowed once child port-ins exist. Use PATCH. |
7709 | Only draft bulk port-ins can be deleted. |
7711 | The port-in list cannot be changed in the bulk port-in's current status. |
7712 | Only draft port-ins can be attached to a draft bulk port-in. |
7714 | Port-ins in a terminal status cannot be attached. |
7715 | The port-in's earliest estimate is later than the bulk port-in's requested FOC date. |
7716 | New port-ins cannot be added to a bulk port-in that is no longer a draft. |
7718 | The port-in's numbers already exist on the bulk port-in. |
7719 | The port-ins being attached contain duplicate numbers. |
7752 | Documents must be uploaded to the child port-ins, not the bulk port-in. |
7756 | The bulk port-in has a PATCH still being applied to its children. Retry when childPortinsProcessing is false. |
7888 | Legacy port-ins cannot be attached to a bulk port-in. |