Skip to content

Latest commit

 

History

History
2944 lines (2179 loc) · 107 KB

PortingOrderApi.md

File metadata and controls

2944 lines (2179 loc) · 107 KB

PortingOrderApi

All URIs are relative to https://api.telnyx.com/v2

Method HTTP request Description
activatePortingOrder POST /porting_orders/{id}/actions/activate Activate every number in a porting order asynchronously.
cancelPortingOrder POST /porting_orders/{id}/actions/cancel Cancel a porting order
confirmPortingOrder POST /porting_orders/{id}/actions/confirm Submit a porting order.
createAdditionalDocuments POST /porting_orders/{id}/additional_documents Create a list of additional documents
createComment POST /porting_orders/{id}/comments Create a comment for a porting order
createLoaConfiguration POST /porting/loa_configurations Create a LOA configuration
createPhoneNumberConfigurations POST /porting_orders/phone_number_configurations Create a list of phone number configurations
createPortingOrder POST /porting_orders Create a porting order
createPortingReport POST /porting/reports Create a porting related report
deleteAdditionalDocument DELETE /porting_orders/{id}/additional_documents/{additional_document_id} Delete an additional document
deleteLoaConfiguration DELETE /porting/loa_configurations/{id} Delete a LOA configuration
deletePortingOrder DELETE /porting_orders/{id} Delete a porting order
getLoaConfiguration GET /porting/loa_configurations/{id} Retrieve a LOA configuration
getPortingOrder GET /porting_orders/{id} Retrieve a porting order
getPortingOrderLoaTemplate GET /porting_orders/{id}/loa_template Download a porting order loa template
getPortingOrderSubRequest GET /porting_orders/{id}/sub_request Retrieve the associated V1 sub_request_id and port_request_id
getPortingOrdersActivationJob GET /porting_orders/{id}/activation_jobs/{activationJobId} Retrieve a porting activation job
getPortingReport GET /porting/reports/{id} Retrieve a report
listAdditionalDocuments GET /porting_orders/{id}/additional_documents List additional documents
listAllowedFocWindows GET /porting_orders/{id}/allowed_foc_windows List allowed FOC dates
listExceptionTypes GET /porting_orders/exception_types List all exception types
listLoaConfigurations GET /porting/loa_configurations List LOA configurations
listPhoneNumberConfigurations GET /porting_orders/phone_number_configurations List all phone number configurations
listPortingOrderActivationJobs GET /porting_orders/{id}/activation_jobs List all porting activation jobs
listPortingOrderComments GET /porting_orders/{id}/comments List all comments of a porting order
listPortingOrderRequirements GET /porting_orders/{id}/requirements List porting order requirements
listPortingOrders GET /porting_orders List all porting orders
listPortingPhoneNumbers GET /porting_phone_numbers List all porting phone numbers
listPortingReports GET /porting/reports List porting related reports
listVerificationCodes GET /porting_orders/{id}/verification_codes List verification codes
previewLoaConfiguration GET /porting/loa_configurations/{id}/preview Preview a LOA configuration
previewLoaConfigurationParams POST /porting/loa_configuration/preview Preview the LOA configuration parameters
sendPortingVerificationCodes POST /porting_orders/{id}/verification_codes/send Send the verification codes
sharePortingOrder POST /porting_orders/{id}/actions/share Share a porting order
updateLoaConfiguration PATCH /porting/loa_configurations/{id} Update a LOA configuration
updatePortingOrder PATCH /porting_orders/{id} Edit a porting order
updatePortingOrdersActivationJob PATCH /porting_orders/{id}/activation_jobs/{activationJobId} Update a porting activation job
verifyPortingVerificationCodes POST /porting_orders/{id}/verification_codes/verify Verify the verification code for a list of phone numbers

activatePortingOrder

ActivatePortingOrder202Response activatePortingOrder(id)

Activate every number in a porting order asynchronously.

Activate each number in a porting order asynchronously. This operation is limited to US FastPort orders only.

Example

import java.util.UUID;
// Import classes:
import com.telnyx.sdk.ApiClient;
import com.telnyx.sdk.ApiException;
import com.telnyx.sdk.Configuration;
import com.telnyx.sdk.auth.*;
import com.telnyx.sdk.model.*;
import com.telnyx.sdk.api.PortingOrderApi;

public class Example {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        defaultClient.setBasePath("https://api.telnyx.com/v2");
        
        // Configure HTTP bearer authorization: bearerAuth
        HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
        bearerAuth.setBearerToken("BEARER TOKEN");

        PortingOrderApi apiInstance = new PortingOrderApi(defaultClient);
        UUID id = UUID.randomUUID(); // UUID | Porting Order id
        try {
            ActivatePortingOrder202Response result = apiInstance.activatePortingOrder(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PortingOrderApi#activatePortingOrder");
            System.err.println("Status code: " + e.getCode());
            System.err.println("Reason: " + e.getResponseBody());
            System.err.println("Response headers: " + e.getResponseHeaders());
            e.printStackTrace();
        }
    }
}

Parameters

Name Type Description Notes
id UUID Porting Order id

Return type

ActivatePortingOrder202Response

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
202 Successful response -
401 Unauthorized -
422 Unprocessable entity. Check message field in response for details. -

cancelPortingOrder

CancelPortingOrder200Response cancelPortingOrder(id)

Cancel a porting order

Cancel a porting order

Example

import java.util.UUID;
// Import classes:
import com.telnyx.sdk.ApiClient;
import com.telnyx.sdk.ApiException;
import com.telnyx.sdk.Configuration;
import com.telnyx.sdk.auth.*;
import com.telnyx.sdk.model.*;
import com.telnyx.sdk.api.PortingOrderApi;

public class Example {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        defaultClient.setBasePath("https://api.telnyx.com/v2");
        
        // Configure HTTP bearer authorization: bearerAuth
        HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
        bearerAuth.setBearerToken("BEARER TOKEN");

        PortingOrderApi apiInstance = new PortingOrderApi(defaultClient);
        UUID id = UUID.randomUUID(); // UUID | Porting Order id
        try {
            CancelPortingOrder200Response result = apiInstance.cancelPortingOrder(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PortingOrderApi#cancelPortingOrder");
            System.err.println("Status code: " + e.getCode());
            System.err.println("Reason: " + e.getResponseBody());
            System.err.println("Response headers: " + e.getResponseHeaders());
            e.printStackTrace();
        }
    }
}

Parameters

Name Type Description Notes
id UUID Porting Order id

Return type

CancelPortingOrder200Response

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Successful response -
401 Unauthorized -
422 Unprocessable entity. Check message field in response for details. -

confirmPortingOrder

ConfirmPortingOrder200Response confirmPortingOrder(id)

Submit a porting order.

Confirm and submit your porting order.

Example

import java.util.UUID;
// Import classes:
import com.telnyx.sdk.ApiClient;
import com.telnyx.sdk.ApiException;
import com.telnyx.sdk.Configuration;
import com.telnyx.sdk.auth.*;
import com.telnyx.sdk.model.*;
import com.telnyx.sdk.api.PortingOrderApi;

public class Example {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        defaultClient.setBasePath("https://api.telnyx.com/v2");
        
        // Configure HTTP bearer authorization: bearerAuth
        HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
        bearerAuth.setBearerToken("BEARER TOKEN");

        PortingOrderApi apiInstance = new PortingOrderApi(defaultClient);
        UUID id = UUID.randomUUID(); // UUID | Porting Order id
        try {
            ConfirmPortingOrder200Response result = apiInstance.confirmPortingOrder(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PortingOrderApi#confirmPortingOrder");
            System.err.println("Status code: " + e.getCode());
            System.err.println("Reason: " + e.getResponseBody());
            System.err.println("Response headers: " + e.getResponseHeaders());
            e.printStackTrace();
        }
    }
}

Parameters

Name Type Description Notes
id UUID Porting Order id

Return type

ConfirmPortingOrder200Response

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Successful response -
401 Unauthorized -
422 Unprocessable entity. Check message field in response for details. -

createAdditionalDocuments

CreateAdditionalDocuments201Response createAdditionalDocuments(id, createAdditionalDocumentsRequest)

Create a list of additional documents

Creates a list of additional documents for a porting order.

Example

import java.util.UUID;
// Import classes:
import com.telnyx.sdk.ApiClient;
import com.telnyx.sdk.ApiException;
import com.telnyx.sdk.Configuration;
import com.telnyx.sdk.auth.*;
import com.telnyx.sdk.model.*;
import com.telnyx.sdk.api.PortingOrderApi;

public class Example {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        defaultClient.setBasePath("https://api.telnyx.com/v2");
        
        // Configure HTTP bearer authorization: bearerAuth
        HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
        bearerAuth.setBearerToken("BEARER TOKEN");

        PortingOrderApi apiInstance = new PortingOrderApi(defaultClient);
        UUID id = UUID.randomUUID(); // UUID | Porting Order id
        CreateAdditionalDocumentsRequest createAdditionalDocumentsRequest = new CreateAdditionalDocumentsRequest(); // CreateAdditionalDocumentsRequest | A list of additional document parameters
        try {
            CreateAdditionalDocuments201Response result = apiInstance.createAdditionalDocuments(id, createAdditionalDocumentsRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PortingOrderApi#createAdditionalDocuments");
            System.err.println("Status code: " + e.getCode());
            System.err.println("Reason: " + e.getResponseBody());
            System.err.println("Response headers: " + e.getResponseHeaders());
            e.printStackTrace();
        }
    }
}

Parameters

Name Type Description Notes
id UUID Porting Order id
createAdditionalDocumentsRequest CreateAdditionalDocumentsRequest A list of additional document parameters

Return type

CreateAdditionalDocuments201Response

Authorization

bearerAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status code Description Response headers
201 Successful response -
404 Resource not found -
401 Unauthorized -
422 Unprocessable entity. Check message field in response for details. -

createComment

CreateComment201Response createComment(id, createPortingOrderComment)

Create a comment for a porting order

Creates a new comment for a porting order.

Example

import java.util.UUID;
// Import classes:
import com.telnyx.sdk.ApiClient;
import com.telnyx.sdk.ApiException;
import com.telnyx.sdk.Configuration;
import com.telnyx.sdk.auth.*;
import com.telnyx.sdk.model.*;
import com.telnyx.sdk.api.PortingOrderApi;

public class Example {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        defaultClient.setBasePath("https://api.telnyx.com/v2");
        
        // Configure HTTP bearer authorization: bearerAuth
        HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
        bearerAuth.setBearerToken("BEARER TOKEN");

        PortingOrderApi apiInstance = new PortingOrderApi(defaultClient);
        UUID id = UUID.randomUUID(); // UUID | Porting Order id
        CreatePortingOrderComment createPortingOrderComment = new CreatePortingOrderComment(); // CreatePortingOrderComment | 
        try {
            CreateComment201Response result = apiInstance.createComment(id, createPortingOrderComment);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PortingOrderApi#createComment");
            System.err.println("Status code: " + e.getCode());
            System.err.println("Reason: " + e.getResponseBody());
            System.err.println("Response headers: " + e.getResponseHeaders());
            e.printStackTrace();
        }
    }
}

Parameters

Name Type Description Notes
id UUID Porting Order id
createPortingOrderComment CreatePortingOrderComment

Return type

CreateComment201Response

Authorization

bearerAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status code Description Response headers
201 Successful response -
401 Unauthorized -
422 Unprocessable entity. Check message field in response for details. -

createLoaConfiguration

CreateLoaConfiguration201Response createLoaConfiguration(previewLoaConfigurationParamsRequest)

Create a LOA configuration

Create a LOA configuration.

Example

// Import classes:
import com.telnyx.sdk.ApiClient;
import com.telnyx.sdk.ApiException;
import com.telnyx.sdk.Configuration;
import com.telnyx.sdk.auth.*;
import com.telnyx.sdk.model.*;
import com.telnyx.sdk.api.PortingOrderApi;

public class Example {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        defaultClient.setBasePath("https://api.telnyx.com/v2");
        
        // Configure HTTP bearer authorization: bearerAuth
        HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
        bearerAuth.setBearerToken("BEARER TOKEN");

        PortingOrderApi apiInstance = new PortingOrderApi(defaultClient);
        PreviewLoaConfigurationParamsRequest previewLoaConfigurationParamsRequest = new PreviewLoaConfigurationParamsRequest(); // PreviewLoaConfigurationParamsRequest | 
        try {
            CreateLoaConfiguration201Response result = apiInstance.createLoaConfiguration(previewLoaConfigurationParamsRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PortingOrderApi#createLoaConfiguration");
            System.err.println("Status code: " + e.getCode());
            System.err.println("Reason: " + e.getResponseBody());
            System.err.println("Response headers: " + e.getResponseHeaders());
            e.printStackTrace();
        }
    }
}

Parameters

Name Type Description Notes
previewLoaConfigurationParamsRequest PreviewLoaConfigurationParamsRequest

Return type

CreateLoaConfiguration201Response

Authorization

bearerAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status code Description Response headers
201 Successful response -
422 Unprocessable entity. Check message field in response for details. -
500 Internal server error -

createPhoneNumberConfigurations

CreatePhoneNumberConfigurations201Response createPhoneNumberConfigurations(createPhoneNumberConfigurationsRequest)

Create a list of phone number configurations

Creates a list of phone number configurations.

Example

// Import classes:
import com.telnyx.sdk.ApiClient;
import com.telnyx.sdk.ApiException;
import com.telnyx.sdk.Configuration;
import com.telnyx.sdk.auth.*;
import com.telnyx.sdk.model.*;
import com.telnyx.sdk.api.PortingOrderApi;

public class Example {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        defaultClient.setBasePath("https://api.telnyx.com/v2");
        
        // Configure HTTP bearer authorization: bearerAuth
        HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
        bearerAuth.setBearerToken("BEARER TOKEN");

        PortingOrderApi apiInstance = new PortingOrderApi(defaultClient);
        CreatePhoneNumberConfigurationsRequest createPhoneNumberConfigurationsRequest = new CreatePhoneNumberConfigurationsRequest(); // CreatePhoneNumberConfigurationsRequest | A list of phone number configuration parameters
        try {
            CreatePhoneNumberConfigurations201Response result = apiInstance.createPhoneNumberConfigurations(createPhoneNumberConfigurationsRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PortingOrderApi#createPhoneNumberConfigurations");
            System.err.println("Status code: " + e.getCode());
            System.err.println("Reason: " + e.getResponseBody());
            System.err.println("Response headers: " + e.getResponseHeaders());
            e.printStackTrace();
        }
    }
}

Parameters

Name Type Description Notes
createPhoneNumberConfigurationsRequest CreatePhoneNumberConfigurationsRequest A list of phone number configuration parameters

Return type

CreatePhoneNumberConfigurations201Response

Authorization

bearerAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status code Description Response headers
201 Successful response -
401 Unauthorized -
422 Unprocessable entity. Check message field in response for details. -

createPortingOrder

CreatePortingOrder201Response createPortingOrder(createPortingOrder)

Create a porting order

Creates a new porting order object.

Example

// Import classes:
import com.telnyx.sdk.ApiClient;
import com.telnyx.sdk.ApiException;
import com.telnyx.sdk.Configuration;
import com.telnyx.sdk.auth.*;
import com.telnyx.sdk.model.*;
import com.telnyx.sdk.api.PortingOrderApi;

public class Example {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        defaultClient.setBasePath("https://api.telnyx.com/v2");
        
        // Configure HTTP bearer authorization: bearerAuth
        HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
        bearerAuth.setBearerToken("BEARER TOKEN");

        PortingOrderApi apiInstance = new PortingOrderApi(defaultClient);
        CreatePortingOrder createPortingOrder = new CreatePortingOrder(); // CreatePortingOrder | 
        try {
            CreatePortingOrder201Response result = apiInstance.createPortingOrder(createPortingOrder);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PortingOrderApi#createPortingOrder");
            System.err.println("Status code: " + e.getCode());
            System.err.println("Reason: " + e.getResponseBody());
            System.err.println("Response headers: " + e.getResponseHeaders());
            e.printStackTrace();
        }
    }
}

Parameters

Name Type Description Notes
createPortingOrder CreatePortingOrder

Return type

CreatePortingOrder201Response

Authorization

bearerAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status code Description Response headers
201 Successful response -
401 Unauthorized -
422 Unprocessable entity. Check message field in response for details. -

createPortingReport

CreatePortingReport201Response createPortingReport(createPortingReportRequest)

Create a porting related report

Generate reports about porting operations.

Example

// Import classes:
import com.telnyx.sdk.ApiClient;
import com.telnyx.sdk.ApiException;
import com.telnyx.sdk.Configuration;
import com.telnyx.sdk.auth.*;
import com.telnyx.sdk.model.*;
import com.telnyx.sdk.api.PortingOrderApi;

public class Example {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        defaultClient.setBasePath("https://api.telnyx.com/v2");
        
        // Configure HTTP bearer authorization: bearerAuth
        HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
        bearerAuth.setBearerToken("BEARER TOKEN");

        PortingOrderApi apiInstance = new PortingOrderApi(defaultClient);
        CreatePortingReportRequest createPortingReportRequest = new CreatePortingReportRequest(); // CreatePortingReportRequest | 
        try {
            CreatePortingReport201Response result = apiInstance.createPortingReport(createPortingReportRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PortingOrderApi#createPortingReport");
            System.err.println("Status code: " + e.getCode());
            System.err.println("Reason: " + e.getResponseBody());
            System.err.println("Response headers: " + e.getResponseHeaders());
            e.printStackTrace();
        }
    }
}

Parameters

Name Type Description Notes
createPortingReportRequest CreatePortingReportRequest

Return type

CreatePortingReport201Response

Authorization

bearerAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status code Description Response headers
201 Successful response -
422 Unprocessable entity. Check message field in response for details. -
500 Internal server error -

deleteAdditionalDocument

deleteAdditionalDocument(id, additionalDocumentId)

Delete an additional document

Deletes an additional document for a porting order.

Example

import java.util.UUID;
// Import classes:
import com.telnyx.sdk.ApiClient;
import com.telnyx.sdk.ApiException;
import com.telnyx.sdk.Configuration;
import com.telnyx.sdk.auth.*;
import com.telnyx.sdk.model.*;
import com.telnyx.sdk.api.PortingOrderApi;

public class Example {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        defaultClient.setBasePath("https://api.telnyx.com/v2");
        
        // Configure HTTP bearer authorization: bearerAuth
        HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
        bearerAuth.setBearerToken("BEARER TOKEN");

        PortingOrderApi apiInstance = new PortingOrderApi(defaultClient);
        UUID id = UUID.randomUUID(); // UUID | Porting Order id
        UUID additionalDocumentId = UUID.randomUUID(); // UUID | Additional document identification.
        try {
            apiInstance.deleteAdditionalDocument(id, additionalDocumentId);
        } catch (ApiException e) {
            System.err.println("Exception when calling PortingOrderApi#deleteAdditionalDocument");
            System.err.println("Status code: " + e.getCode());
            System.err.println("Reason: " + e.getResponseBody());
            System.err.println("Response headers: " + e.getResponseHeaders());
            e.printStackTrace();
        }
    }
}

Parameters

Name Type Description Notes
id UUID Porting Order id
additionalDocumentId UUID Additional document identification.

Return type

null (empty response body)

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

HTTP response details

Status code Description Response headers
204 No content -
404 Resource not found -
401 Unauthorized -

deleteLoaConfiguration

deleteLoaConfiguration(id)

Delete a LOA configuration

Delete a specific LOA configuration.

Example

import java.util.UUID;
// Import classes:
import com.telnyx.sdk.ApiClient;
import com.telnyx.sdk.ApiException;
import com.telnyx.sdk.Configuration;
import com.telnyx.sdk.auth.*;
import com.telnyx.sdk.model.*;
import com.telnyx.sdk.api.PortingOrderApi;

public class Example {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        defaultClient.setBasePath("https://api.telnyx.com/v2");
        
        // Configure HTTP bearer authorization: bearerAuth
        HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
        bearerAuth.setBearerToken("BEARER TOKEN");

        PortingOrderApi apiInstance = new PortingOrderApi(defaultClient);
        UUID id = UUID.randomUUID(); // UUID | Identifies a LOA configuration.
        try {
            apiInstance.deleteLoaConfiguration(id);
        } catch (ApiException e) {
            System.err.println("Exception when calling PortingOrderApi#deleteLoaConfiguration");
            System.err.println("Status code: " + e.getCode());
            System.err.println("Reason: " + e.getResponseBody());
            System.err.println("Response headers: " + e.getResponseHeaders());
            e.printStackTrace();
        }
    }
}

Parameters

Name Type Description Notes
id UUID Identifies a LOA configuration.

Return type

null (empty response body)

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

HTTP response details

Status code Description Response headers
204 No content -
404 Resource not found -
500 Internal server error -

deletePortingOrder

deletePortingOrder(id)

Delete a porting order

Deletes an existing porting order. This operation is restrict to porting orders in draft state.

Example

import java.util.UUID;
// Import classes:
import com.telnyx.sdk.ApiClient;
import com.telnyx.sdk.ApiException;
import com.telnyx.sdk.Configuration;
import com.telnyx.sdk.auth.*;
import com.telnyx.sdk.model.*;
import com.telnyx.sdk.api.PortingOrderApi;

public class Example {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        defaultClient.setBasePath("https://api.telnyx.com/v2");
        
        // Configure HTTP bearer authorization: bearerAuth
        HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
        bearerAuth.setBearerToken("BEARER TOKEN");

        PortingOrderApi apiInstance = new PortingOrderApi(defaultClient);
        UUID id = UUID.randomUUID(); // UUID | Porting Order id
        try {
            apiInstance.deletePortingOrder(id);
        } catch (ApiException e) {
            System.err.println("Exception when calling PortingOrderApi#deletePortingOrder");
            System.err.println("Status code: " + e.getCode());
            System.err.println("Reason: " + e.getResponseBody());
            System.err.println("Response headers: " + e.getResponseHeaders());
            e.printStackTrace();
        }
    }
}

Parameters

Name Type Description Notes
id UUID Porting Order id

Return type

null (empty response body)

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

HTTP response details

Status code Description Response headers
204 No content -
401 Unauthorized -
422 Unprocessable entity. Check message field in response for details. -

getLoaConfiguration

CreateLoaConfiguration201Response getLoaConfiguration(id)

Retrieve a LOA configuration

Retrieve a specific LOA configuration.

Example

import java.util.UUID;
// Import classes:
import com.telnyx.sdk.ApiClient;
import com.telnyx.sdk.ApiException;
import com.telnyx.sdk.Configuration;
import com.telnyx.sdk.auth.*;
import com.telnyx.sdk.model.*;
import com.telnyx.sdk.api.PortingOrderApi;

public class Example {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        defaultClient.setBasePath("https://api.telnyx.com/v2");
        
        // Configure HTTP bearer authorization: bearerAuth
        HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
        bearerAuth.setBearerToken("BEARER TOKEN");

        PortingOrderApi apiInstance = new PortingOrderApi(defaultClient);
        UUID id = UUID.randomUUID(); // UUID | Identifies a LOA configuration.
        try {
            CreateLoaConfiguration201Response result = apiInstance.getLoaConfiguration(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PortingOrderApi#getLoaConfiguration");
            System.err.println("Status code: " + e.getCode());
            System.err.println("Reason: " + e.getResponseBody());
            System.err.println("Response headers: " + e.getResponseHeaders());
            e.printStackTrace();
        }
    }
}

Parameters

Name Type Description Notes
id UUID Identifies a LOA configuration.

Return type

CreateLoaConfiguration201Response

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Successful response -
404 Resource not found -
500 Internal server error -

getPortingOrder

GetPortingOrder200Response getPortingOrder(id, includePhoneNumbers)

Retrieve a porting order

Retrieves the details of an existing porting order.

Example

import java.util.UUID;
// Import classes:
import com.telnyx.sdk.ApiClient;
import com.telnyx.sdk.ApiException;
import com.telnyx.sdk.Configuration;
import com.telnyx.sdk.auth.*;
import com.telnyx.sdk.model.*;
import com.telnyx.sdk.api.PortingOrderApi;

public class Example {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        defaultClient.setBasePath("https://api.telnyx.com/v2");
        
        // Configure HTTP bearer authorization: bearerAuth
        HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
        bearerAuth.setBearerToken("BEARER TOKEN");

        PortingOrderApi apiInstance = new PortingOrderApi(defaultClient);
        UUID id = UUID.randomUUID(); // UUID | Porting Order id
        Boolean includePhoneNumbers = true; // Boolean | Include the first 50 phone number objects in the results
        try {
            GetPortingOrder200Response result = apiInstance.getPortingOrder(id, includePhoneNumbers);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PortingOrderApi#getPortingOrder");
            System.err.println("Status code: " + e.getCode());
            System.err.println("Reason: " + e.getResponseBody());
            System.err.println("Response headers: " + e.getResponseHeaders());
            e.printStackTrace();
        }
    }
}

Parameters

Name Type Description Notes
id UUID Porting Order id
includePhoneNumbers Boolean Include the first 50 phone number objects in the results [optional] [default to true]

Return type

GetPortingOrder200Response

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Successful response -
401 Unauthorized -

getPortingOrderLoaTemplate

File getPortingOrderLoaTemplate(id, loaConfigurationId)

Download a porting order loa template

Download a porting order loa template

Example

import java.util.UUID;
// Import classes:
import com.telnyx.sdk.ApiClient;
import com.telnyx.sdk.ApiException;
import com.telnyx.sdk.Configuration;
import com.telnyx.sdk.auth.*;
import com.telnyx.sdk.model.*;
import com.telnyx.sdk.api.PortingOrderApi;

public class Example {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        defaultClient.setBasePath("https://api.telnyx.com/v2");
        
        // Configure HTTP bearer authorization: bearerAuth
        HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
        bearerAuth.setBearerToken("BEARER TOKEN");

        PortingOrderApi apiInstance = new PortingOrderApi(defaultClient);
        UUID id = UUID.randomUUID(); // UUID | Porting Order id
        UUID loaConfigurationId = UUID.fromString("a36c2277-446b-4d11-b4ea-322e02a5c08d"); // UUID | The identifier of the LOA configuration to use for the template. If not provided, the default LOA configuration will be used.
        try {
            File result = apiInstance.getPortingOrderLoaTemplate(id, loaConfigurationId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PortingOrderApi#getPortingOrderLoaTemplate");
            System.err.println("Status code: " + e.getCode());
            System.err.println("Reason: " + e.getResponseBody());
            System.err.println("Response headers: " + e.getResponseHeaders());
            e.printStackTrace();
        }
    }
}

Parameters

Name Type Description Notes
id UUID Porting Order id
loaConfigurationId UUID The identifier of the LOA configuration to use for the template. If not provided, the default LOA configuration will be used. [optional]

Return type

File

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/pdf

HTTP response details

Status code Description Response headers
200 Successful response -
401 Unauthorized -

getPortingOrderSubRequest

GetPortingOrderSubRequest200Response getPortingOrderSubRequest(id)

Retrieve the associated V1 sub_request_id and port_request_id

Retrieve the associated V1 sub_request_id and port_request_id

Example

import java.util.UUID;
// Import classes:
import com.telnyx.sdk.ApiClient;
import com.telnyx.sdk.ApiException;
import com.telnyx.sdk.Configuration;
import com.telnyx.sdk.auth.*;
import com.telnyx.sdk.model.*;
import com.telnyx.sdk.api.PortingOrderApi;

public class Example {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        defaultClient.setBasePath("https://api.telnyx.com/v2");
        
        // Configure HTTP bearer authorization: bearerAuth
        HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
        bearerAuth.setBearerToken("BEARER TOKEN");

        PortingOrderApi apiInstance = new PortingOrderApi(defaultClient);
        UUID id = UUID.randomUUID(); // UUID | Porting Order id
        try {
            GetPortingOrderSubRequest200Response result = apiInstance.getPortingOrderSubRequest(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PortingOrderApi#getPortingOrderSubRequest");
            System.err.println("Status code: " + e.getCode());
            System.err.println("Reason: " + e.getResponseBody());
            System.err.println("Response headers: " + e.getResponseHeaders());
            e.printStackTrace();
        }
    }
}

Parameters

Name Type Description Notes
id UUID Porting Order id

Return type

GetPortingOrderSubRequest200Response

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Successful response -
401 Unauthorized -
404 Porting Order not found -

getPortingOrdersActivationJob

ActivatePortingOrder202Response getPortingOrdersActivationJob(id, activationJobId)

Retrieve a porting activation job

Returns a porting activation job.

Example

import java.util.UUID;
// Import classes:
import com.telnyx.sdk.ApiClient;
import com.telnyx.sdk.ApiException;
import com.telnyx.sdk.Configuration;
import com.telnyx.sdk.auth.*;
import com.telnyx.sdk.model.*;
import com.telnyx.sdk.api.PortingOrderApi;

public class Example {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        defaultClient.setBasePath("https://api.telnyx.com/v2");
        
        // Configure HTTP bearer authorization: bearerAuth
        HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
        bearerAuth.setBearerToken("BEARER TOKEN");

        PortingOrderApi apiInstance = new PortingOrderApi(defaultClient);
        UUID id = UUID.randomUUID(); // UUID | Porting Order id
        UUID activationJobId = UUID.randomUUID(); // UUID | Activation Job Identifier
        try {
            ActivatePortingOrder202Response result = apiInstance.getPortingOrdersActivationJob(id, activationJobId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PortingOrderApi#getPortingOrdersActivationJob");
            System.err.println("Status code: " + e.getCode());
            System.err.println("Reason: " + e.getResponseBody());
            System.err.println("Response headers: " + e.getResponseHeaders());
            e.printStackTrace();
        }
    }
}

Parameters

Name Type Description Notes
id UUID Porting Order id
activationJobId UUID Activation Job Identifier

Return type

ActivatePortingOrder202Response

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Successful response -
401 Unauthorized -
422 Unprocessable entity. Check message field in response for details. -

getPortingReport

CreatePortingReport201Response getPortingReport(id)

Retrieve a report

Retrieve a specific report generated.

Example

import java.util.UUID;
// Import classes:
import com.telnyx.sdk.ApiClient;
import com.telnyx.sdk.ApiException;
import com.telnyx.sdk.Configuration;
import com.telnyx.sdk.auth.*;
import com.telnyx.sdk.model.*;
import com.telnyx.sdk.api.PortingOrderApi;

public class Example {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        defaultClient.setBasePath("https://api.telnyx.com/v2");
        
        // Configure HTTP bearer authorization: bearerAuth
        HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
        bearerAuth.setBearerToken("BEARER TOKEN");

        PortingOrderApi apiInstance = new PortingOrderApi(defaultClient);
        UUID id = UUID.randomUUID(); // UUID | Identifies a report.
        try {
            CreatePortingReport201Response result = apiInstance.getPortingReport(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PortingOrderApi#getPortingReport");
            System.err.println("Status code: " + e.getCode());
            System.err.println("Reason: " + e.getResponseBody());
            System.err.println("Response headers: " + e.getResponseHeaders());
            e.printStackTrace();
        }
    }
}

Parameters

Name Type Description Notes
id UUID Identifies a report.

Return type

CreatePortingReport201Response

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Successful response -
404 Resource not found -
500 Internal server error -

listAdditionalDocuments

ListAdditionalDocuments200Response listAdditionalDocuments(id, pageNumber, pageSize, filterDocumentType, filterDocumentTypeIn, sort)

List additional documents

Returns a list of additional documents for a porting order.

Example

import java.util.UUID;
// Import classes:
import com.telnyx.sdk.ApiClient;
import com.telnyx.sdk.ApiException;
import com.telnyx.sdk.Configuration;
import com.telnyx.sdk.auth.*;
import com.telnyx.sdk.model.*;
import com.telnyx.sdk.api.PortingOrderApi;

public class Example {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        defaultClient.setBasePath("https://api.telnyx.com/v2");
        
        // Configure HTTP bearer authorization: bearerAuth
        HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
        bearerAuth.setBearerToken("BEARER TOKEN");

        PortingOrderApi apiInstance = new PortingOrderApi(defaultClient);
        UUID id = UUID.randomUUID(); // UUID | Porting Order id
        Integer pageNumber = 1; // Integer | The page number to load
        Integer pageSize = 20; // Integer | The size of the page
        String filterDocumentType = "loa"; // String | Filter additional documents of a specific document type
        List<String> filterDocumentTypeIn = Arrays.asList(); // List<String> | Filter additional documents by a list of document types
        String sort = "created_at"; // String | Specifies the sort order for results. If not given, results are sorted by created_at in descending order.
        try {
            ListAdditionalDocuments200Response result = apiInstance.listAdditionalDocuments(id, pageNumber, pageSize, filterDocumentType, filterDocumentTypeIn, sort);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PortingOrderApi#listAdditionalDocuments");
            System.err.println("Status code: " + e.getCode());
            System.err.println("Reason: " + e.getResponseBody());
            System.err.println("Response headers: " + e.getResponseHeaders());
            e.printStackTrace();
        }
    }
}

Parameters

Name Type Description Notes
id UUID Porting Order id
pageNumber Integer The page number to load [optional] [default to 1]
pageSize Integer The size of the page [optional] [default to 20]
filterDocumentType String Filter additional documents of a specific document type [optional] [enum: loa, invoice, csr, other]
filterDocumentTypeIn List<String> Filter additional documents by a list of document types [optional] [enum: loa, invoice, csr, other]
sort String Specifies the sort order for results. If not given, results are sorted by created_at in descending order. [optional] [enum: created_at, -created_at]

Return type

ListAdditionalDocuments200Response

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Successful response -
404 Resource not found -
401 Unauthorized -

listAllowedFocWindows

ListAllowedFocWindows200Response listAllowedFocWindows(id)

List allowed FOC dates

Returns a list of allowed FOC dates for a porting order.

Example

import java.util.UUID;
// Import classes:
import com.telnyx.sdk.ApiClient;
import com.telnyx.sdk.ApiException;
import com.telnyx.sdk.Configuration;
import com.telnyx.sdk.auth.*;
import com.telnyx.sdk.model.*;
import com.telnyx.sdk.api.PortingOrderApi;

public class Example {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        defaultClient.setBasePath("https://api.telnyx.com/v2");
        
        // Configure HTTP bearer authorization: bearerAuth
        HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
        bearerAuth.setBearerToken("BEARER TOKEN");

        PortingOrderApi apiInstance = new PortingOrderApi(defaultClient);
        UUID id = UUID.randomUUID(); // UUID | Porting Order id
        try {
            ListAllowedFocWindows200Response result = apiInstance.listAllowedFocWindows(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PortingOrderApi#listAllowedFocWindows");
            System.err.println("Status code: " + e.getCode());
            System.err.println("Reason: " + e.getResponseBody());
            System.err.println("Response headers: " + e.getResponseHeaders());
            e.printStackTrace();
        }
    }
}

Parameters

Name Type Description Notes
id UUID Porting Order id

Return type

ListAllowedFocWindows200Response

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Successful response -
401 Unauthorized -

listExceptionTypes

ListExceptionTypes200Response listExceptionTypes()

List all exception types

Returns a list of all possible exception types for a porting order.

Example

// Import classes:
import com.telnyx.sdk.ApiClient;
import com.telnyx.sdk.ApiException;
import com.telnyx.sdk.Configuration;
import com.telnyx.sdk.auth.*;
import com.telnyx.sdk.model.*;
import com.telnyx.sdk.api.PortingOrderApi;

public class Example {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        defaultClient.setBasePath("https://api.telnyx.com/v2");
        
        // Configure HTTP bearer authorization: bearerAuth
        HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
        bearerAuth.setBearerToken("BEARER TOKEN");

        PortingOrderApi apiInstance = new PortingOrderApi(defaultClient);
        try {
            ListExceptionTypes200Response result = apiInstance.listExceptionTypes();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PortingOrderApi#listExceptionTypes");
            System.err.println("Status code: " + e.getCode());
            System.err.println("Reason: " + e.getResponseBody());
            System.err.println("Response headers: " + e.getResponseHeaders());
            e.printStackTrace();
        }
    }
}

Parameters

This endpoint does not need any parameter.

Return type

ListExceptionTypes200Response

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Successful response -
401 Unauthorized -
422 Unprocessable entity. Check message field in response for details. -

listLoaConfigurations

ListLoaConfigurations200Response listLoaConfigurations(pageNumber, pageSize)

List LOA configurations

List the LOA configurations.

Example

// Import classes:
import com.telnyx.sdk.ApiClient;
import com.telnyx.sdk.ApiException;
import com.telnyx.sdk.Configuration;
import com.telnyx.sdk.auth.*;
import com.telnyx.sdk.model.*;
import com.telnyx.sdk.api.PortingOrderApi;

public class Example {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        defaultClient.setBasePath("https://api.telnyx.com/v2");
        
        // Configure HTTP bearer authorization: bearerAuth
        HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
        bearerAuth.setBearerToken("BEARER TOKEN");

        PortingOrderApi apiInstance = new PortingOrderApi(defaultClient);
        Integer pageNumber = 1; // Integer | The page number to load
        Integer pageSize = 20; // Integer | The size of the page
        try {
            ListLoaConfigurations200Response result = apiInstance.listLoaConfigurations(pageNumber, pageSize);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PortingOrderApi#listLoaConfigurations");
            System.err.println("Status code: " + e.getCode());
            System.err.println("Reason: " + e.getResponseBody());
            System.err.println("Response headers: " + e.getResponseHeaders());
            e.printStackTrace();
        }
    }
}

Parameters

Name Type Description Notes
pageNumber Integer The page number to load [optional] [default to 1]
pageSize Integer The size of the page [optional] [default to 20]

Return type

ListLoaConfigurations200Response

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Successful response -
422 Unprocessable entity. Check message field in response for details. -
500 Internal server error -

listPhoneNumberConfigurations

ListPhoneNumberConfigurations200Response listPhoneNumberConfigurations(pageNumber, pageSize, filterPortingOrderId, filterPortingOrderIdIn, filterUserBundleId, filterUserBundleIdIn, filterPortingPhoneNumber, filterPortingPhoneNumberIn, sort)

List all phone number configurations

Returns a list of phone number configurations paginated.

Example

import java.util.UUID;
// Import classes:
import com.telnyx.sdk.ApiClient;
import com.telnyx.sdk.ApiException;
import com.telnyx.sdk.Configuration;
import com.telnyx.sdk.auth.*;
import com.telnyx.sdk.model.*;
import com.telnyx.sdk.api.PortingOrderApi;

public class Example {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        defaultClient.setBasePath("https://api.telnyx.com/v2");
        
        // Configure HTTP bearer authorization: bearerAuth
        HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
        bearerAuth.setBearerToken("BEARER TOKEN");

        PortingOrderApi apiInstance = new PortingOrderApi(defaultClient);
        Integer pageNumber = 1; // Integer | The page number to load
        Integer pageSize = 20; // Integer | The size of the page
        UUID filterPortingOrderId = UUID.fromString("f3575e15-32ce-400e-a4c0-dd78800c20b0"); // UUID | Filter results by porting order id
        List<UUID> filterPortingOrderIdIn = Arrays.asList(); // List<UUID> | Filter results by a list of porting order ids
        UUID filterUserBundleId = UUID.fromString("5d6f7ede-1961-4717-bfb5-db392c5efc2d"); // UUID | Filter results by a specific user bundle ID
        List<UUID> filterUserBundleIdIn = Arrays.asList(); // List<UUID> | Filter results by a list of user bundle IDs
        UUID filterPortingPhoneNumber = UUID.fromString("5d6f7ede-1961-4717-bfb5-db392c5efc2d"); // UUID | Filter results by a specific porting phone number ID
        List<UUID> filterPortingPhoneNumberIn = Arrays.asList(); // List<UUID> | Filter results by a list of porting phone number IDs
        String sort = "created_at"; // String | Specifies the sort order for results. If not given, results are sorted by created_at in descending order.
        try {
            ListPhoneNumberConfigurations200Response result = apiInstance.listPhoneNumberConfigurations(pageNumber, pageSize, filterPortingOrderId, filterPortingOrderIdIn, filterUserBundleId, filterUserBundleIdIn, filterPortingPhoneNumber, filterPortingPhoneNumberIn, sort);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PortingOrderApi#listPhoneNumberConfigurations");
            System.err.println("Status code: " + e.getCode());
            System.err.println("Reason: " + e.getResponseBody());
            System.err.println("Response headers: " + e.getResponseHeaders());
            e.printStackTrace();
        }
    }
}

Parameters

Name Type Description Notes
pageNumber Integer The page number to load [optional] [default to 1]
pageSize Integer The size of the page [optional] [default to 20]
filterPortingOrderId UUID Filter results by porting order id [optional]
filterPortingOrderIdIn List<UUID> Filter results by a list of porting order ids [optional]
filterUserBundleId UUID Filter results by a specific user bundle ID [optional]
filterUserBundleIdIn List<UUID> Filter results by a list of user bundle IDs [optional]
filterPortingPhoneNumber UUID Filter results by a specific porting phone number ID [optional]
filterPortingPhoneNumberIn List<UUID> Filter results by a list of porting phone number IDs [optional]
sort String Specifies the sort order for results. If not given, results are sorted by created_at in descending order. [optional] [enum: created_at, -created_at]

Return type

ListPhoneNumberConfigurations200Response

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Successful response -
401 Unauthorized -
422 Unprocessable entity. Check message field in response for details. -

listPortingOrderActivationJobs

ListPortingOrderActivationJobs200Response listPortingOrderActivationJobs(id, pageNumber, pageSize)

List all porting activation jobs

Returns a list of your porting activation jobs.

Example

import java.util.UUID;
// Import classes:
import com.telnyx.sdk.ApiClient;
import com.telnyx.sdk.ApiException;
import com.telnyx.sdk.Configuration;
import com.telnyx.sdk.auth.*;
import com.telnyx.sdk.model.*;
import com.telnyx.sdk.api.PortingOrderApi;

public class Example {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        defaultClient.setBasePath("https://api.telnyx.com/v2");
        
        // Configure HTTP bearer authorization: bearerAuth
        HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
        bearerAuth.setBearerToken("BEARER TOKEN");

        PortingOrderApi apiInstance = new PortingOrderApi(defaultClient);
        UUID id = UUID.randomUUID(); // UUID | Porting Order id
        Integer pageNumber = 1; // Integer | The page number to load
        Integer pageSize = 20; // Integer | The size of the page
        try {
            ListPortingOrderActivationJobs200Response result = apiInstance.listPortingOrderActivationJobs(id, pageNumber, pageSize);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PortingOrderApi#listPortingOrderActivationJobs");
            System.err.println("Status code: " + e.getCode());
            System.err.println("Reason: " + e.getResponseBody());
            System.err.println("Response headers: " + e.getResponseHeaders());
            e.printStackTrace();
        }
    }
}

Parameters

Name Type Description Notes
id UUID Porting Order id
pageNumber Integer The page number to load [optional] [default to 1]
pageSize Integer The size of the page [optional] [default to 20]

Return type

ListPortingOrderActivationJobs200Response

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Successful response -
401 Unauthorized -
422 Unprocessable entity. Check message field in response for details. -

listPortingOrderComments

ListPortingOrderComments200Response listPortingOrderComments(id, pageNumber, pageSize)

List all comments of a porting order

Returns a list of all comments of a porting order.

Example

import java.util.UUID;
// Import classes:
import com.telnyx.sdk.ApiClient;
import com.telnyx.sdk.ApiException;
import com.telnyx.sdk.Configuration;
import com.telnyx.sdk.auth.*;
import com.telnyx.sdk.model.*;
import com.telnyx.sdk.api.PortingOrderApi;

public class Example {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        defaultClient.setBasePath("https://api.telnyx.com/v2");
        
        // Configure HTTP bearer authorization: bearerAuth
        HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
        bearerAuth.setBearerToken("BEARER TOKEN");

        PortingOrderApi apiInstance = new PortingOrderApi(defaultClient);
        UUID id = UUID.randomUUID(); // UUID | Porting Order id
        Integer pageNumber = 1; // Integer | The page number to load
        Integer pageSize = 20; // Integer | The size of the page
        try {
            ListPortingOrderComments200Response result = apiInstance.listPortingOrderComments(id, pageNumber, pageSize);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PortingOrderApi#listPortingOrderComments");
            System.err.println("Status code: " + e.getCode());
            System.err.println("Reason: " + e.getResponseBody());
            System.err.println("Response headers: " + e.getResponseHeaders());
            e.printStackTrace();
        }
    }
}

Parameters

Name Type Description Notes
id UUID Porting Order id
pageNumber Integer The page number to load [optional] [default to 1]
pageSize Integer The size of the page [optional] [default to 20]

Return type

ListPortingOrderComments200Response

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Successful response -
401 Unauthorized -
422 Unprocessable entity. Check message field in response for details. -

listPortingOrderRequirements

ListPortingOrderRequirements200Response listPortingOrderRequirements(id, pageNumber, pageSize)

List porting order requirements

Returns a list of all requirements based on country/number type for this porting order.

Example

import java.util.UUID;
// Import classes:
import com.telnyx.sdk.ApiClient;
import com.telnyx.sdk.ApiException;
import com.telnyx.sdk.Configuration;
import com.telnyx.sdk.auth.*;
import com.telnyx.sdk.model.*;
import com.telnyx.sdk.api.PortingOrderApi;

public class Example {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        defaultClient.setBasePath("https://api.telnyx.com/v2");
        
        // Configure HTTP bearer authorization: bearerAuth
        HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
        bearerAuth.setBearerToken("BEARER TOKEN");

        PortingOrderApi apiInstance = new PortingOrderApi(defaultClient);
        UUID id = UUID.randomUUID(); // UUID | Porting Order id
        Integer pageNumber = 1; // Integer | The page number to load
        Integer pageSize = 20; // Integer | The size of the page
        try {
            ListPortingOrderRequirements200Response result = apiInstance.listPortingOrderRequirements(id, pageNumber, pageSize);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PortingOrderApi#listPortingOrderRequirements");
            System.err.println("Status code: " + e.getCode());
            System.err.println("Reason: " + e.getResponseBody());
            System.err.println("Response headers: " + e.getResponseHeaders());
            e.printStackTrace();
        }
    }
}

Parameters

Name Type Description Notes
id UUID Porting Order id
pageNumber Integer The page number to load [optional] [default to 1]
pageSize Integer The size of the page [optional] [default to 20]

Return type

ListPortingOrderRequirements200Response

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Successful response -
401 Unauthorized -
422 Unprocessable entity. Check message field in response for details. -

listPortingOrders

ListPortingOrders200Response listPortingOrders(pageNumber, pageSize, includePhoneNumbers, filterStatus, filterStatusIn, filterCustomerReference, filterParentSupportKey, filterPhoneNumbersCountryCode, filterPhoneNumbersCarrierName, filterMiscType, filterEndUserAdminEntityName, filterEndUserAdminAuthPersonName, filterActivationSettingsFastPortEligible, filterActivationSettingsFocDatetimeRequestedGt, filterActivationSettingsFocDatetimeRequestedLt, filterPhoneNumbersPhoneNumberContains, sort)

List all porting orders

Returns a list of your porting order.

Example

// Import classes:
import com.telnyx.sdk.ApiClient;
import com.telnyx.sdk.ApiException;
import com.telnyx.sdk.Configuration;
import com.telnyx.sdk.auth.*;
import com.telnyx.sdk.model.*;
import com.telnyx.sdk.api.PortingOrderApi;

public class Example {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        defaultClient.setBasePath("https://api.telnyx.com/v2");
        
        // Configure HTTP bearer authorization: bearerAuth
        HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
        bearerAuth.setBearerToken("BEARER TOKEN");

        PortingOrderApi apiInstance = new PortingOrderApi(defaultClient);
        Integer pageNumber = 1; // Integer | The page number to load
        Integer pageSize = 20; // Integer | The size of the page
        Boolean includePhoneNumbers = true; // Boolean | Include the first 50 phone number objects in the results
        String filterStatus = "draft"; // String | Filter results by status
        String filterStatusIn = "draft"; // String | Filter porting orders by multiple statuses
        String filterCustomerReference = "123abc"; // String | Filter results by customer_reference
        String filterParentSupportKey = "123abc"; // String | Filter results by parent_support_key
        String filterPhoneNumbersCountryCode = "US"; // String | Filter results by country ISO 3166-1 alpha-2 code
        String filterPhoneNumbersCarrierName = "Telnyx"; // String | Filter results by old service provider
        PortingOrderType filterMiscType = PortingOrderType.fromValue("full"); // PortingOrderType | Filter results by porting order type
        String filterEndUserAdminEntityName = "Porter McPortersen"; // String | Filter results by person or company name
        String filterEndUserAdminAuthPersonName = "Admin McPortersen"; // String | Filter results by authorized person
        Boolean filterActivationSettingsFastPortEligible = false; // Boolean | Filter results by fast port eligible
        String filterActivationSettingsFocDatetimeRequestedGt = "2021-03-25T10:00:00.000Z"; // String | Filter results by foc date later than this value
        String filterActivationSettingsFocDatetimeRequestedLt = "2021-03-25T10:00:00.000Z"; // String | Filter results by foc date earlier than this value
        String filterPhoneNumbersPhoneNumberContains = "+13038675309"; // String | Filter results by full or partial phone_number
        String sort = "created_at"; // String | Specifies the sort order for results. If not given, results are sorted by created_at in descending order.
        try {
            ListPortingOrders200Response result = apiInstance.listPortingOrders(pageNumber, pageSize, includePhoneNumbers, filterStatus, filterStatusIn, filterCustomerReference, filterParentSupportKey, filterPhoneNumbersCountryCode, filterPhoneNumbersCarrierName, filterMiscType, filterEndUserAdminEntityName, filterEndUserAdminAuthPersonName, filterActivationSettingsFastPortEligible, filterActivationSettingsFocDatetimeRequestedGt, filterActivationSettingsFocDatetimeRequestedLt, filterPhoneNumbersPhoneNumberContains, sort);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PortingOrderApi#listPortingOrders");
            System.err.println("Status code: " + e.getCode());
            System.err.println("Reason: " + e.getResponseBody());
            System.err.println("Response headers: " + e.getResponseHeaders());
            e.printStackTrace();
        }
    }
}

Parameters

Name Type Description Notes
pageNumber Integer The page number to load [optional] [default to 1]
pageSize Integer The size of the page [optional] [default to 20]
includePhoneNumbers Boolean Include the first 50 phone number objects in the results [optional] [default to true]
filterStatus String Filter results by status [optional] [enum: draft, in-process, submitted, exception, foc-date-confirmed, cancel-pending, ported, cancelled]
filterStatusIn String Filter porting orders by multiple statuses [optional] [enum: draft, in-process, submitted, exception, foc-date-confirmed, cancel-pending, ported, cancelled]
filterCustomerReference String Filter results by customer_reference [optional]
filterParentSupportKey String Filter results by parent_support_key [optional]
filterPhoneNumbersCountryCode String Filter results by country ISO 3166-1 alpha-2 code [optional]
filterPhoneNumbersCarrierName String Filter results by old service provider [optional]
filterMiscType PortingOrderType Filter results by porting order type [optional] [enum: full, partial]
filterEndUserAdminEntityName String Filter results by person or company name [optional]
filterEndUserAdminAuthPersonName String Filter results by authorized person [optional]
filterActivationSettingsFastPortEligible Boolean Filter results by fast port eligible [optional]
filterActivationSettingsFocDatetimeRequestedGt String Filter results by foc date later than this value [optional]
filterActivationSettingsFocDatetimeRequestedLt String Filter results by foc date earlier than this value [optional]
filterPhoneNumbersPhoneNumberContains String Filter results by full or partial phone_number [optional]
sort String Specifies the sort order for results. If not given, results are sorted by created_at in descending order. [optional] [enum: created_at, -created_at, activation_settings.foc_datetime_requested, -activation_settings.foc_datetime_requested]

Return type

ListPortingOrders200Response

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Successful response -
401 Unauthorized -
422 Unprocessable entity. Check message field in response for details. -

listPortingPhoneNumbers

ListPortingPhoneNumbers200Response listPortingPhoneNumbers(pageNumber, pageSize, filterPortingOrderId, filterPortingOrderIdIn, filterSupportKeyEq, filterSupportKeyIn, filterPhoneNumber, filterPhoneNumberIn, filterPortingOrderStatus, filterActivationStatus, filterPortabilityStatus)

List all porting phone numbers

Returns a list of your porting phone numbers.

Example

import java.util.UUID;
// Import classes:
import com.telnyx.sdk.ApiClient;
import com.telnyx.sdk.ApiException;
import com.telnyx.sdk.Configuration;
import com.telnyx.sdk.auth.*;
import com.telnyx.sdk.model.*;
import com.telnyx.sdk.api.PortingOrderApi;

public class Example {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        defaultClient.setBasePath("https://api.telnyx.com/v2");
        
        // Configure HTTP bearer authorization: bearerAuth
        HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
        bearerAuth.setBearerToken("BEARER TOKEN");

        PortingOrderApi apiInstance = new PortingOrderApi(defaultClient);
        Integer pageNumber = 1; // Integer | The page number to load
        Integer pageSize = 20; // Integer | The size of the page
        UUID filterPortingOrderId = UUID.fromString("f3575e15-32ce-400e-a4c0-dd78800c20b0"); // UUID | Filter results by porting order id
        List<UUID> filterPortingOrderIdIn = Arrays.asList(); // List<UUID> | Filter results by a list of porting order ids
        String filterSupportKeyEq = "sr_a12345"; // String | Filter results by support key
        List<String> filterSupportKeyIn = Arrays.asList(); // List<String> | Filter results by a list of support keys
        String filterPhoneNumber = "+12003151212"; // String | Filter results by phone number
        List<String> filterPhoneNumberIn = Arrays.asList(); // List<String> | Filter results by a list of phone numbers
        String filterPortingOrderStatus = "draft"; // String | Filter results by porting order status
        PortingOrderActivationStatus filterActivationStatus = PortingOrderActivationStatus.fromValue("New"); // PortingOrderActivationStatus | Filter results by activation status
        PortabilityStatus filterPortabilityStatus = PortabilityStatus.fromValue("pending"); // PortabilityStatus | Filter results by portability status
        try {
            ListPortingPhoneNumbers200Response result = apiInstance.listPortingPhoneNumbers(pageNumber, pageSize, filterPortingOrderId, filterPortingOrderIdIn, filterSupportKeyEq, filterSupportKeyIn, filterPhoneNumber, filterPhoneNumberIn, filterPortingOrderStatus, filterActivationStatus, filterPortabilityStatus);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PortingOrderApi#listPortingPhoneNumbers");
            System.err.println("Status code: " + e.getCode());
            System.err.println("Reason: " + e.getResponseBody());
            System.err.println("Response headers: " + e.getResponseHeaders());
            e.printStackTrace();
        }
    }
}

Parameters

Name Type Description Notes
pageNumber Integer The page number to load [optional] [default to 1]
pageSize Integer The size of the page [optional] [default to 20]
filterPortingOrderId UUID Filter results by porting order id [optional]
filterPortingOrderIdIn List<UUID> Filter results by a list of porting order ids [optional]
filterSupportKeyEq String Filter results by support key [optional]
filterSupportKeyIn List<String> Filter results by a list of support keys [optional]
filterPhoneNumber String Filter results by phone number [optional]
filterPhoneNumberIn List<String> Filter results by a list of phone numbers [optional]
filterPortingOrderStatus String Filter results by porting order status [optional] [enum: draft, in-process, submitted, exception, foc-date-confirmed, cancel-pending, ported, cancelled]
filterActivationStatus PortingOrderActivationStatus Filter results by activation status [optional] [enum: New, Pending, Conflict, Cancel Pending, Failed, Concurred, Activate RDY, Disconnect Pending, Concurrence Sent, Old, Sending, Active, Canceled]
filterPortabilityStatus PortabilityStatus Filter results by portability status [optional] [enum: pending, confirmed, provisional]

Return type

ListPortingPhoneNumbers200Response

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json, text/csv

HTTP response details

Status code Description Response headers
200 Successful response -
401 Unauthorized -
422 Unprocessable entity. Check message field in response for details. -

listPortingReports

ListPortingReports200Response listPortingReports(pageNumber, pageSize, filterReportType, filterStatus)

List porting related reports

List the reports generated about porting operations.

Example

// Import classes:
import com.telnyx.sdk.ApiClient;
import com.telnyx.sdk.ApiException;
import com.telnyx.sdk.Configuration;
import com.telnyx.sdk.auth.*;
import com.telnyx.sdk.model.*;
import com.telnyx.sdk.api.PortingOrderApi;

public class Example {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        defaultClient.setBasePath("https://api.telnyx.com/v2");
        
        // Configure HTTP bearer authorization: bearerAuth
        HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
        bearerAuth.setBearerToken("BEARER TOKEN");

        PortingOrderApi apiInstance = new PortingOrderApi(defaultClient);
        Integer pageNumber = 1; // Integer | The page number to load
        Integer pageSize = 20; // Integer | The size of the page
        String filterReportType = "export_porting_orders_csv"; // String | Filter reports of a specific type
        String filterStatus = "pending"; // String | Filter reports of a specific status
        try {
            ListPortingReports200Response result = apiInstance.listPortingReports(pageNumber, pageSize, filterReportType, filterStatus);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PortingOrderApi#listPortingReports");
            System.err.println("Status code: " + e.getCode());
            System.err.println("Reason: " + e.getResponseBody());
            System.err.println("Response headers: " + e.getResponseHeaders());
            e.printStackTrace();
        }
    }
}

Parameters

Name Type Description Notes
pageNumber Integer The page number to load [optional] [default to 1]
pageSize Integer The size of the page [optional] [default to 20]
filterReportType String Filter reports of a specific type [optional] [enum: export_porting_orders_csv]
filterStatus String Filter reports of a specific status [optional] [enum: pending, completed]

Return type

ListPortingReports200Response

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Successful response -
422 Unprocessable entity. Check message field in response for details. -
500 Internal server error -

listVerificationCodes

ListVerificationCodes200Response listVerificationCodes(id, pageNumber, pageSize, filterPhoneNumber, filterPhoneNumberIn, filterVerified, sort)

List verification codes

Returns a list of verification codes for a porting order.

Example

import java.util.UUID;
// Import classes:
import com.telnyx.sdk.ApiClient;
import com.telnyx.sdk.ApiException;
import com.telnyx.sdk.Configuration;
import com.telnyx.sdk.auth.*;
import com.telnyx.sdk.model.*;
import com.telnyx.sdk.api.PortingOrderApi;

public class Example {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        defaultClient.setBasePath("https://api.telnyx.com/v2");
        
        // Configure HTTP bearer authorization: bearerAuth
        HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
        bearerAuth.setBearerToken("BEARER TOKEN");

        PortingOrderApi apiInstance = new PortingOrderApi(defaultClient);
        UUID id = UUID.randomUUID(); // UUID | Porting Order id
        Integer pageNumber = 1; // Integer | The page number to load
        Integer pageSize = 20; // Integer | The size of the page
        String filterPhoneNumber = "+12003151212"; // String | Filter results by phone number
        List<String> filterPhoneNumberIn = Arrays.asList(); // List<String> | Filter results by a list of phone numbers
        Boolean filterVerified = true; // Boolean | Filter verification codes that have been verified or not
        String sort = "created_at"; // String | Specifies the sort order for results. If not given, results are sorted by created_at in descending order.
        try {
            ListVerificationCodes200Response result = apiInstance.listVerificationCodes(id, pageNumber, pageSize, filterPhoneNumber, filterPhoneNumberIn, filterVerified, sort);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PortingOrderApi#listVerificationCodes");
            System.err.println("Status code: " + e.getCode());
            System.err.println("Reason: " + e.getResponseBody());
            System.err.println("Response headers: " + e.getResponseHeaders());
            e.printStackTrace();
        }
    }
}

Parameters

Name Type Description Notes
id UUID Porting Order id
pageNumber Integer The page number to load [optional] [default to 1]
pageSize Integer The size of the page [optional] [default to 20]
filterPhoneNumber String Filter results by phone number [optional]
filterPhoneNumberIn List<String> Filter results by a list of phone numbers [optional]
filterVerified Boolean Filter verification codes that have been verified or not [optional]
sort String Specifies the sort order for results. If not given, results are sorted by created_at in descending order. [optional] [enum: created_at, -created_at]

Return type

ListVerificationCodes200Response

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Successful response -
404 Resource not found -
401 Unauthorized -

previewLoaConfiguration

File previewLoaConfiguration(id)

Preview a LOA configuration

Preview a specific LOA configuration.

Example

import java.util.UUID;
// Import classes:
import com.telnyx.sdk.ApiClient;
import com.telnyx.sdk.ApiException;
import com.telnyx.sdk.Configuration;
import com.telnyx.sdk.auth.*;
import com.telnyx.sdk.model.*;
import com.telnyx.sdk.api.PortingOrderApi;

public class Example {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        defaultClient.setBasePath("https://api.telnyx.com/v2");
        
        // Configure HTTP bearer authorization: bearerAuth
        HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
        bearerAuth.setBearerToken("BEARER TOKEN");

        PortingOrderApi apiInstance = new PortingOrderApi(defaultClient);
        UUID id = UUID.randomUUID(); // UUID | Identifies a LOA configuration.
        try {
            File result = apiInstance.previewLoaConfiguration(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PortingOrderApi#previewLoaConfiguration");
            System.err.println("Status code: " + e.getCode());
            System.err.println("Reason: " + e.getResponseBody());
            System.err.println("Response headers: " + e.getResponseHeaders());
            e.printStackTrace();
        }
    }
}

Parameters

Name Type Description Notes
id UUID Identifies a LOA configuration.

Return type

File

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/pdf

HTTP response details

Status code Description Response headers
200 Successful response -
404 Resource not found -
500 Internal server error -

previewLoaConfigurationParams

File previewLoaConfigurationParams(previewLoaConfigurationParamsRequest)

Preview the LOA configuration parameters

Preview the LOA template that would be generated without need to create LOA configuration.

Example

// Import classes:
import com.telnyx.sdk.ApiClient;
import com.telnyx.sdk.ApiException;
import com.telnyx.sdk.Configuration;
import com.telnyx.sdk.auth.*;
import com.telnyx.sdk.model.*;
import com.telnyx.sdk.api.PortingOrderApi;

public class Example {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        defaultClient.setBasePath("https://api.telnyx.com/v2");
        
        // Configure HTTP bearer authorization: bearerAuth
        HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
        bearerAuth.setBearerToken("BEARER TOKEN");

        PortingOrderApi apiInstance = new PortingOrderApi(defaultClient);
        PreviewLoaConfigurationParamsRequest previewLoaConfigurationParamsRequest = new PreviewLoaConfigurationParamsRequest(); // PreviewLoaConfigurationParamsRequest | 
        try {
            File result = apiInstance.previewLoaConfigurationParams(previewLoaConfigurationParamsRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PortingOrderApi#previewLoaConfigurationParams");
            System.err.println("Status code: " + e.getCode());
            System.err.println("Reason: " + e.getResponseBody());
            System.err.println("Response headers: " + e.getResponseHeaders());
            e.printStackTrace();
        }
    }
}

Parameters

Name Type Description Notes
previewLoaConfigurationParamsRequest PreviewLoaConfigurationParamsRequest

Return type

File

Authorization

bearerAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/pdf

HTTP response details

Status code Description Response headers
200 Successful response -
422 Unprocessable entity. Check message field in response for details. -
500 Internal server error -

sendPortingVerificationCodes

sendPortingVerificationCodes(id, sendPortingVerificationCodesRequest)

Send the verification codes

Send the verification code for all porting phone numbers.

Example

import java.util.UUID;
// Import classes:
import com.telnyx.sdk.ApiClient;
import com.telnyx.sdk.ApiException;
import com.telnyx.sdk.Configuration;
import com.telnyx.sdk.auth.*;
import com.telnyx.sdk.model.*;
import com.telnyx.sdk.api.PortingOrderApi;

public class Example {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        defaultClient.setBasePath("https://api.telnyx.com/v2");
        
        // Configure HTTP bearer authorization: bearerAuth
        HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
        bearerAuth.setBearerToken("BEARER TOKEN");

        PortingOrderApi apiInstance = new PortingOrderApi(defaultClient);
        UUID id = UUID.randomUUID(); // UUID | Porting Order id
        SendPortingVerificationCodesRequest sendPortingVerificationCodesRequest = new SendPortingVerificationCodesRequest(); // SendPortingVerificationCodesRequest | A list of phone numbers to send the verification codes to and the method to send them by
        try {
            apiInstance.sendPortingVerificationCodes(id, sendPortingVerificationCodesRequest);
        } catch (ApiException e) {
            System.err.println("Exception when calling PortingOrderApi#sendPortingVerificationCodes");
            System.err.println("Status code: " + e.getCode());
            System.err.println("Reason: " + e.getResponseBody());
            System.err.println("Response headers: " + e.getResponseHeaders());
            e.printStackTrace();
        }
    }
}

Parameters

Name Type Description Notes
id UUID Porting Order id
sendPortingVerificationCodesRequest SendPortingVerificationCodesRequest A list of phone numbers to send the verification codes to and the method to send them by [optional]

Return type

null (empty response body)

Authorization

bearerAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: Not defined

HTTP response details

Status code Description Response headers
204 No content -
401 Unauthorized -
404 Resource not found -
422 Unprocessable entity. Check message field in response for details. -

sharePortingOrder

SharePortingOrder201Response sharePortingOrder(id, sharePortingOrderRequest)

Share a porting order

Creates a sharing token for a porting order. The token can be used to share the porting order with non-Telnyx users.

Example

import java.util.UUID;
// Import classes:
import com.telnyx.sdk.ApiClient;
import com.telnyx.sdk.ApiException;
import com.telnyx.sdk.Configuration;
import com.telnyx.sdk.auth.*;
import com.telnyx.sdk.model.*;
import com.telnyx.sdk.api.PortingOrderApi;

public class Example {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        defaultClient.setBasePath("https://api.telnyx.com/v2");
        
        // Configure HTTP bearer authorization: bearerAuth
        HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
        bearerAuth.setBearerToken("BEARER TOKEN");

        PortingOrderApi apiInstance = new PortingOrderApi(defaultClient);
        UUID id = UUID.randomUUID(); // UUID | Porting Order id
        SharePortingOrderRequest sharePortingOrderRequest = new SharePortingOrderRequest(); // SharePortingOrderRequest | 
        try {
            SharePortingOrder201Response result = apiInstance.sharePortingOrder(id, sharePortingOrderRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PortingOrderApi#sharePortingOrder");
            System.err.println("Status code: " + e.getCode());
            System.err.println("Reason: " + e.getResponseBody());
            System.err.println("Response headers: " + e.getResponseHeaders());
            e.printStackTrace();
        }
    }
}

Parameters

Name Type Description Notes
id UUID Porting Order id
sharePortingOrderRequest SharePortingOrderRequest

Return type

SharePortingOrder201Response

Authorization

bearerAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status code Description Response headers
201 Successful response -
401 Unauthorized -
404 Porting Order not found -

updateLoaConfiguration

CreateLoaConfiguration201Response updateLoaConfiguration(id, previewLoaConfigurationParamsRequest)

Update a LOA configuration

Update a specific LOA configuration.

Example

import java.util.UUID;
// Import classes:
import com.telnyx.sdk.ApiClient;
import com.telnyx.sdk.ApiException;
import com.telnyx.sdk.Configuration;
import com.telnyx.sdk.auth.*;
import com.telnyx.sdk.model.*;
import com.telnyx.sdk.api.PortingOrderApi;

public class Example {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        defaultClient.setBasePath("https://api.telnyx.com/v2");
        
        // Configure HTTP bearer authorization: bearerAuth
        HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
        bearerAuth.setBearerToken("BEARER TOKEN");

        PortingOrderApi apiInstance = new PortingOrderApi(defaultClient);
        UUID id = UUID.randomUUID(); // UUID | Identifies a LOA configuration.
        PreviewLoaConfigurationParamsRequest previewLoaConfigurationParamsRequest = new PreviewLoaConfigurationParamsRequest(); // PreviewLoaConfigurationParamsRequest | 
        try {
            CreateLoaConfiguration201Response result = apiInstance.updateLoaConfiguration(id, previewLoaConfigurationParamsRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PortingOrderApi#updateLoaConfiguration");
            System.err.println("Status code: " + e.getCode());
            System.err.println("Reason: " + e.getResponseBody());
            System.err.println("Response headers: " + e.getResponseHeaders());
            e.printStackTrace();
        }
    }
}

Parameters

Name Type Description Notes
id UUID Identifies a LOA configuration.
previewLoaConfigurationParamsRequest PreviewLoaConfigurationParamsRequest

Return type

CreateLoaConfiguration201Response

Authorization

bearerAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Successful response -
404 Resource not found -
422 Unprocessable entity. Check message field in response for details. -
500 Internal server error -

updatePortingOrder

UpdatePortingOrder200Response updatePortingOrder(id, updatePortingOrder)

Edit a porting order

Edits the details of an existing porting order.

Any or all of a porting orders attributes may be included in the resource object included in a PATCH request.

If a request does not include all of the attributes for a resource, the system will interpret the missing attributes as if they were included with their current values. To explicitly set something to null, it must be included in the request with a null value.

Example

import java.util.UUID;
// Import classes:
import com.telnyx.sdk.ApiClient;
import com.telnyx.sdk.ApiException;
import com.telnyx.sdk.Configuration;
import com.telnyx.sdk.auth.*;
import com.telnyx.sdk.model.*;
import com.telnyx.sdk.api.PortingOrderApi;

public class Example {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        defaultClient.setBasePath("https://api.telnyx.com/v2");
        
        // Configure HTTP bearer authorization: bearerAuth
        HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
        bearerAuth.setBearerToken("BEARER TOKEN");

        PortingOrderApi apiInstance = new PortingOrderApi(defaultClient);
        UUID id = UUID.randomUUID(); // UUID | Porting Order id
        UpdatePortingOrder updatePortingOrder = new UpdatePortingOrder(); // UpdatePortingOrder | 
        try {
            UpdatePortingOrder200Response result = apiInstance.updatePortingOrder(id, updatePortingOrder);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PortingOrderApi#updatePortingOrder");
            System.err.println("Status code: " + e.getCode());
            System.err.println("Reason: " + e.getResponseBody());
            System.err.println("Response headers: " + e.getResponseHeaders());
            e.printStackTrace();
        }
    }
}

Parameters

Name Type Description Notes
id UUID Porting Order id
updatePortingOrder UpdatePortingOrder

Return type

UpdatePortingOrder200Response

Authorization

bearerAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Successful response -
401 Unauthorized -
422 Unprocessable entity. Check message field in response for details. -

updatePortingOrdersActivationJob

ActivatePortingOrder202Response updatePortingOrdersActivationJob(id, activationJobId, updatePortingOrdersActivationJobRequest)

Update a porting activation job

Updates the activation time of a porting activation job.

Example

import java.util.UUID;
// Import classes:
import com.telnyx.sdk.ApiClient;
import com.telnyx.sdk.ApiException;
import com.telnyx.sdk.Configuration;
import com.telnyx.sdk.auth.*;
import com.telnyx.sdk.model.*;
import com.telnyx.sdk.api.PortingOrderApi;

public class Example {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        defaultClient.setBasePath("https://api.telnyx.com/v2");
        
        // Configure HTTP bearer authorization: bearerAuth
        HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
        bearerAuth.setBearerToken("BEARER TOKEN");

        PortingOrderApi apiInstance = new PortingOrderApi(defaultClient);
        UUID id = UUID.randomUUID(); // UUID | Porting Order id
        UUID activationJobId = UUID.randomUUID(); // UUID | Activation Job Identifier
        UpdatePortingOrdersActivationJobRequest updatePortingOrdersActivationJobRequest = new UpdatePortingOrdersActivationJobRequest(); // UpdatePortingOrdersActivationJobRequest | 
        try {
            ActivatePortingOrder202Response result = apiInstance.updatePortingOrdersActivationJob(id, activationJobId, updatePortingOrdersActivationJobRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PortingOrderApi#updatePortingOrdersActivationJob");
            System.err.println("Status code: " + e.getCode());
            System.err.println("Reason: " + e.getResponseBody());
            System.err.println("Response headers: " + e.getResponseHeaders());
            e.printStackTrace();
        }
    }
}

Parameters

Name Type Description Notes
id UUID Porting Order id
activationJobId UUID Activation Job Identifier
updatePortingOrdersActivationJobRequest UpdatePortingOrdersActivationJobRequest

Return type

ActivatePortingOrder202Response

Authorization

bearerAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Successful response -
422 Unprocessable entity. Check message field in response for details. -
404 Not found -

verifyPortingVerificationCodes

VerifyPortingVerificationCodes200Response verifyPortingVerificationCodes(id, verifyPortingVerificationCodesRequest)

Verify the verification code for a list of phone numbers

Verifies the verification code for a list of phone numbers.

Example

import java.util.UUID;
// Import classes:
import com.telnyx.sdk.ApiClient;
import com.telnyx.sdk.ApiException;
import com.telnyx.sdk.Configuration;
import com.telnyx.sdk.auth.*;
import com.telnyx.sdk.model.*;
import com.telnyx.sdk.api.PortingOrderApi;

public class Example {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        defaultClient.setBasePath("https://api.telnyx.com/v2");
        
        // Configure HTTP bearer authorization: bearerAuth
        HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
        bearerAuth.setBearerToken("BEARER TOKEN");

        PortingOrderApi apiInstance = new PortingOrderApi(defaultClient);
        UUID id = UUID.randomUUID(); // UUID | Porting Order id
        VerifyPortingVerificationCodesRequest verifyPortingVerificationCodesRequest = new VerifyPortingVerificationCodesRequest(); // VerifyPortingVerificationCodesRequest | A list of phone numbers and their verification codes
        try {
            VerifyPortingVerificationCodes200Response result = apiInstance.verifyPortingVerificationCodes(id, verifyPortingVerificationCodesRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PortingOrderApi#verifyPortingVerificationCodes");
            System.err.println("Status code: " + e.getCode());
            System.err.println("Reason: " + e.getResponseBody());
            System.err.println("Response headers: " + e.getResponseHeaders());
            e.printStackTrace();
        }
    }
}

Parameters

Name Type Description Notes
id UUID Porting Order id
verifyPortingVerificationCodesRequest VerifyPortingVerificationCodesRequest A list of phone numbers and their verification codes

Return type

VerifyPortingVerificationCodes200Response

Authorization

bearerAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Successful response -
401 Unauthorized -
404 Resource not found -
422 Unprocessable entity. Check message field in response for details. -