Skip to main content
POST
/
porting_orders
JavaScript
import Telnyx from 'telnyx';

const client = new Telnyx({
  apiKey: 'My API Key',
});

const portingOrder = await client.portingOrders.create({
  phone_numbers: ['+13035550000', '+13035550001', '+13035550002'],
});

console.log(portingOrder.data);
{
  "data": [
    {
      "activation_settings": {
        "activation_status": null,
        "fast_port_eligible": true,
        "foc_datetime_actual": null,
        "foc_datetime_requested": null
      },
      "created_at": "2022-03-17T18:01:01Z",
      "customer_reference": null,
      "customer_group_reference": null,
      "description": "FP Telnyx",
      "documents": {
        "loa": null,
        "invoice": null
      },
      "end_user": {
        "admin": {
          "account_number": null,
          "auth_person_name": null,
          "billing_phone_number": null,
          "business_identifier": null,
          "entity_name": null,
          "pin_passcode": null,
          "tax_identifier": null
        },
        "location": {
          "administrative_area": null,
          "country_code": null,
          "extended_address": null,
          "locality": null,
          "postal_code": null,
          "street_address": null
        }
      },
      "id": "b0ea6d6f-de31-4079-a536-992e0c98b037",
      "misc": null,
      "old_service_provider_ocn": "Unreal Communications",
      "parent_support_key": null,
      "phone_number_configuration": {
        "billing_group_id": null,
        "connection_id": null,
        "emergency_address_id": null,
        "messaging_profile_id": null,
        "tags": []
      },
      "phone_number_type": "local",
      "phone_numbers": [
        {
          "activation_status": null,
          "phone_number": "{e.164 TN}",
          "phone_number_type": "local",
          "portability_status": "confirmed",
          "porting_order_id": "b0ea6d6f-de31-4079-a536-992e0c98b037",
          "porting_order_status": "draft",
          "record_type": "porting_phone_number",
          "requirements_status": "requirement-info-pending",
          "support_key": null
        }
      ],
      "porting_phone_numbers_count": 1,
      "record_type": "porting_order",
      "requirements": [],
      "requirements_met": false,
      "status": {
        "details": [],
        "value": "draft"
      },
      "support_key": null,
      "updated_at": "2022-03-17T18:01:01Z",
      "user_feedback": {
        "user_comment": null,
        "user_rating": null
      },
      "messaging": {
        "messaging_capable": true,
        "enable_messaging": false,
        "messaging_port_status": "not_applicable",
        "messaging_port_completed": false
      },
      "user_id": "40d68ba2-0847-4df2-be9c-b0e0cb673e75",
      "webhook_url": null
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
phone_numbers
string[]
required

The list of +E.164 formatted phone numbers

Example:
[
"+13035550000",
"+13035550001",
"+13035550002"
]
customer_reference
string

A customer-specified reference number for customer bookkeeping purposes

Example:

"Acct 123abc"

customer_group_reference
string

A customer-specified group reference for customer bookkeeping purposes

Example:

"Group-456"

Response

Successful response

data
object[]