Skip to main content

Create a porting order

POST 
/porting_orders

Creates a new porting order object.

Request

Body

required

    phone_numbers string[]required

    The list of +E.164 formatted phone numbers

    customer_reference string

    A customer-specified reference number for customer bookkeeping purposes

Responses

201: Successful response

401: Unauthorized

422: Unprocessable entity. Check message field in response for details.

Request samples


curl -L 'https://api.telnyx.com/v2/porting_orders' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
-d '{
"phone_numbers": [
"+13035550000",
"+13035550001",
"+13035550002"
],
"customer_reference": "Acct 123abc"
}'

Response samples


{
"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,
"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
},
"user_id": "40d68ba2-0847-4df2-be9c-b0e0cb673e75",
"webhook_url": null
}
]
}