Port-Out Quickstart Guide
Background
When a carrier receives a port-in request they will send the current carrier a port-out notification to let them know that they wish to port-out a number, usually with the authorization of the end-user. When Telnyx receives notice from another carrier for a port-out request, Telnyx will automatically create a port-out order in your account. We typically ask that you respond to our port-out notification within 24 or 48 hours via email. If you do not wish for the numbers to be ported-out, it is important that you notify us as soon as possible in order to prevent the port-out from being processed. If you do not respond within that 24 or 48 hour window, we are required to authorize the port-out order.Managing your port-out orders
First, you need to review your port-out orders to verify that they are valid and all information provided is correct. To do so, you can list all port-out orders using theGET https://api.telnyx.com/v2/portouts request (API reference here) to find the order you are looking for. You can include a filter[status]=pending flag to narrow down the search results. See example request below.
GET https://api.telnyx.com/v2/portouts/:id endpoint (API reference here) to retrieve the order directly:
Authorize the port-out order
To authorize the port-out, make aPATCH https://api.telnyx.com/v2/portouts/:id/authorized request (API reference here), where {id} is the port-out order ID.
Reject a port-out order
To reject a port-out order, first lookup the applicable rejection codes for your port out order using theGET https://api.telnyx.com/v2/portouts/rejections/:portout_id endpoint (API reference here). These are the possible reasons you can provide to reject your port-out order. The rejection codes will vary depending on the phone number(s) porting out. An example request is shown below.
PATCH https://api.telnyx.com/v2/portouts/{{id}}/rejected-pending request (API reference here). And include the rejection code in the body of the request. An example request is shown below.
1001 (“Other”) is eligible for some port-out orders. When you use this code, you will need to provide an additional reason in the body of the API request explaining why you are rejecting the order. See an example request below: