Skip to main content

List all porting orders

GET 
/porting_orders

Returns a list of your porting order.

Request

Query Parameters

    page[number] integer

    Possible values: >= 1

    Default value: 1

    The page number to load

    page[size] integer

    Possible values: >= 1 and <= 250

    Default value: 20

    The size of the page

    include_phone_numbers boolean

    Default value: true

    Include the first 50 phone number objects in the results

    filter[status] string

    Possible values: [draft, in-process, submitted, exception, foc-date-confirmed, cancel-pending, ported, cancelled]

    Filter results by status

    filter[status][in][] string

    Possible values: [draft, in-process, submitted, exception, foc-date-confirmed, cancel-pending, ported, cancelled]

    Filter porting orders by multiple statuses

    filter[customer_reference] string

    Filter results by customer_reference

    Example: 123abc
    filter[parent_support_key] string

    Filter results by parent_support_key

    Example: 123abc
    filter[phone_numbers.country_code] string

    Filter results by country ISO 3166-1 alpha-2 code

    Example: US
    filter[phone_numbers.carrier_name] string

    Filter results by old service provider

    Example: Telnyx
    filter[misc.type] PortingOrderType

    Possible values: [full, partial]

    Filter results by porting order type

    Example: full
    filter[end_user.admin.entity_name] string

    Filter results by person or company name

    Example: Porter McPortersen
    filter[end_user.admin.auth_person_name] string

    Filter results by authorized person

    Example: Admin McPortersen
    filter[activation_settings.fast_port_eligible] boolean

    Filter results by fast port eligible

    Example: false
    filter[activation_settings.foc_datetime_requested][gt] string

    Filter results by foc date later than this value

    Example: 2021-03-25T10:00:00.000Z
    filter[activation_settings.foc_datetime_requested][lt] string

    Filter results by foc date earlier than this value

    Example: 2021-03-25T10:00:00.000Z
    filter[phone_numbers.phone_number][contains] string

    Filter results by full or partial phone_number

    Example: +13038675309
    sort[] string

    Possible values: [created_at, -created_at, activation_settings.foc_datetime_requested, -activation_settings.foc_datetime_requested]

    Specifies the sort order for results. If not given, results are sorted by created_at in descending order.

Responses

200: 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 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'

Response samples


{
"data": [
{
"id": "f1486bae-f067-460c-ad43-73a92848f902",
"customer_reference": "Acct 123abc",
"created_at": "2021-03-19T10:07:15.527Z",
"updated_at": "2021-03-19T10:07:15.527Z",
"status": {
"details": [
{
"code": "ENTITY_NAME_MISMATCH",
"description": "Entity name does not match that on the CSR"
}
],
"value": "ported"
},
"support_key": "sr_123abc",
"parent_support_key": "pr_123abc",
"porting_phone_numbers_count": 1,
"old_service_provider_ocn": "Unreal Communications",
"documents": {
"loa": "64ffb720-04c7-455b-92d6-20fcca92e935",
"invoice": "ce74b771-d23d-4960-81ec-8741b3862146"
},
"misc": {
"type": "full",
"remaining_numbers_action": "disconnect",
"new_billing_phone_number": "string"
},
"end_user": {
"admin": {
"entity_name": "Porter McPortersen",
"auth_person_name": "Porter McPortersen II",
"billing_phone_number": 13035551234,
"account_number": "123abc",
"tax_identifier": "1234abcd",
"pin_passcode": 1234,
"business_identifier": "abc123"
},
"location": {
"street_address": "311 W. Superior St",
"extended_address": "Suite 504",
"locality": "Chicago",
"administrative_area": "IL",
"postal_code": "60654",
"country_code": "US"
}
},
"activation_settings": {
"foc_datetime_requested": "2021-03-19T10:07:15.527Z",
"foc_datetime_actual": "2021-03-19T10:07:15.527Z",
"fast_port_eligible": true,
"activation_status": "Active"
},
"phone_number_configuration": {
"billing_group_id": "f1486bae-f067-460c-ad43-73a92848f902",
"connection_id": "f1486bae-f067-460c-ad43-73a92848f902",
"messaging_profile_id": "f1486bae-f067-460c-ad43-73a92848f901",
"emergency_address_id": "f1486bae-f067-460c-ad43-73a92848f902",
"tags": [
"abc",
"123"
]
},
"phone_number_type": "local",
"description": "FP Telnyx",
"requirements": [
{
"field_type": "document",
"field_value": "9787fb5f-cbe5-4de4-b765-3303774ee9fe",
"requirement_type_id": "59b0762a-b274-4f76-ac32-4d5cf0272e66",
"record_type": "porting_requirement"
}
],
"requirements_met": false,
"user_feedback": {
"user_rating": 5,
"user_comment": "I loved my experience porting numbers with Telnyx"
},
"user_id": "40d68ba2-0847-4df2-be9c-b0e0cb673e75",
"webhook_url": "https://example.com/porting_webhooks",
"record_type": "porting_order"
}
],
"meta": {
"total_pages": 3,
"total_results": 55,
"page_number": 2,
"page_size": 25
}
}