Returns the portout requests according to filters
Portout Response
Array of objects (PortoutDetails) | |
object (Metadata) |
Unauthorized
Resource not found
Unprocessable entity. Check message field in response for details.
import telnyx telnyx.api_key = "YOUR_API_KEY" telnyx.PortOut.list(page: { number: 1, size: 20 })
{- "data": [
- {
- "already_ported": false,
- "authorized_name": "McPortersen",
- "carrier_name": "test",
- "city": "Chicago",
- "created_at": "2018-02-02T22:25:27.521Z",
- "current_carrier": "telnyx",
- "end_user_name": "McPortersen",
- "foc_date": "2018-02-02T22:25:27.521Z",
- "id": "0ccc7b54-4df3-4bca-a65a-3da1ecc777f0",
- "inserted_at": "2018-02-02T22:25:27.521Z",
- "phone_numbers": [
- "+35312345678"
], - "pon": "00000000",
- "reason": null,
- "record_type": "portout",
- "requested_foc_date": "2018-02-02T22:25:27.521Z",
- "service_address": "000 Example Street",
- "spid": "0ccc7b54-4df3-4bca-a65a-3da1ecc777f0",
- "state": "IL",
- "status": "rejected",
- "support_key": "PO_764725",
- "updated_at": "2018-02-02T22:25:27.521Z",
- "user_id": "7865816a-ee85-4e50-b19e-52983dcc6d4a",
- "vendor": "0e66ed3b-37e6-4fed-93d6-a30ce2493661",
- "zip": "00000"
}
], - "meta": {
- "page_number": 3,
- "page_size": 1,
- "total_pages": 13,
- "total_results": 13
}
}
Returns the portout request based on the ID provided
Portout Response
Unauthorized
Resource not found
Unprocessable entity. Check message field in response for details.
import telnyx telnyx.api_key = "YOUR_API_KEY" telnyx.PortOut.retrieve(PORTOUT_ID)
{- "data": {
- "already_ported": false,
- "authorized_name": "McPortersen",
- "carrier_name": "test",
- "city": "Chicago",
- "created_at": "2018-02-02T22:25:27.521Z",
- "current_carrier": "telnyx",
- "end_user_name": "McPortersen",
- "foc_date": "2018-02-02T22:25:27.521Z",
- "id": "0ccc7b54-4df3-4bca-a65a-3da1ecc777f0",
- "inserted_at": "2018-02-02T22:25:27.521Z",
- "phone_numbers": [
- "+35312345678"
], - "pon": "00000000",
- "reason": null,
- "record_type": "portout",
- "requested_foc_date": "2018-02-02T22:25:27.521Z",
- "service_address": "000 Example Street",
- "spid": "0ccc7b54-4df3-4bca-a65a-3da1ecc777f0",
- "state": "IL",
- "status": "rejected",
- "support_key": "PO_764725",
- "updated_at": "2018-02-02T22:25:27.521Z",
- "user_id": "7865816a-ee85-4e50-b19e-52983dcc6d4a",
- "vendor": "0e66ed3b-37e6-4fed-93d6-a30ce2493661",
- "zip": "00000"
}
}
Returns a list of comments for a portout request.
Portout Comments
Array of objects (PortoutComment) | |
object (Metadata) |
Unauthorized
Resource not found
Unprocessable entity. Check message field in response for details.
import telnyx telnyx.api_key = "YOUR_API_KEY" resource = telnyx.PortOut.retrieve(PORTOUT_ID) resource.list_comments()
{- "data": [
- {
- "body": "This is a comment",
- "created_at": "2018-02-02T22:25:27.521Z",
- "id": "0ccc7b54-4df3-4bca-a65a-3da1ecc777f0",
- "portout_id": "0ccc7b54-4df3-4bca-a65a-3da1ecc777f0",
- "record_type": "portout",
- "user_id": "0ccc7b54-4df3-4bca-a65a-3da1ecc777f0"
}
], - "meta": {
- "page_number": 3,
- "page_size": 1,
- "total_pages": 13,
- "total_results": 13
}
}
Creates a comment on a portout request.
Portout Comment Response
object (PortoutComment) | |||||||||||||
|
Unauthorized
Resource not found
Unprocessable entity. Check message field in response for details.
{- "body": "string"
}
{- "data": {
- "body": "This is a comment",
- "created_at": "2018-02-02T22:25:27.521Z",
- "id": "0ccc7b54-4df3-4bca-a65a-3da1ecc777f0",
- "portout_id": "0ccc7b54-4df3-4bca-a65a-3da1ecc777f0",
- "record_type": "portout",
- "user_id": "0ccc7b54-4df3-4bca-a65a-3da1ecc777f0"
}
}
List every supporting documents for a portout request.
Portout Supporting Documents
Array of objects (PortOutSupportingDocument) | |||||||||||||||
Array
|
Unauthorized
Resource not found
import telnyx telnyx.api_key = "YOUR_API_KEY" telnyx.Portouts.retrieve_supporting_document.retrieve("id")
{- "data": [
- {
- "created_at": "2018-02-02T22:25:27.521Z",
- "document_id": "f1c5e079-9d82-4f50-95bc-ae2f6b8d84d7",
- "id": "5a16902a-2ee9-4882-a247-420fc6627b62",
- "portout_id": "0ccc7b54-4df3-4bca-a65a-3da1ecc777f0",
- "record_type": "supporting_document",
- "type": "loa",
- "updated_at": "2018-02-02T22:25:27.521Z"
}
]
}
Creates a list of supporting documents on a portout request.
Portout Supporting Documents
Array of objects (PortOutSupportingDocument) | |||||||||||||||
Array
|
Unauthorized
Resource not found
Unprocessable entity. Check message field in response for details.
{- "documents": [
- {
- "document_id": "0ccc7b54-4df3-4bca-a65a-3da1ecc777f0",
- "type": "loa"
}
]
}
{- "data": [
- {
- "created_at": "2018-02-02T22:25:27.521Z",
- "document_id": "f1c5e079-9d82-4f50-95bc-ae2f6b8d84d7",
- "id": "5a16902a-2ee9-4882-a247-420fc6627b62",
- "portout_id": "0ccc7b54-4df3-4bca-a65a-3da1ecc777f0",
- "record_type": "supporting_document",
- "type": "loa",
- "updated_at": "2018-02-02T22:25:27.521Z"
}
]
}
Authorize or reject portout request
Portout Response
object (PortoutDetails) | |||||||||||||||||||||||||||||||||||||||||||||||||||
|
Unauthorized
Resource not found
Unprocessable entity. Check message field in response for details.
{- "reason": "I do not recognize this transaction"
}
{- "data": {
- "already_ported": false,
- "authorized_name": "McPortersen",
- "carrier_name": "test",
- "city": "Chicago",
- "created_at": "2018-02-02T22:25:27.521Z",
- "current_carrier": "telnyx",
- "end_user_name": "McPortersen",
- "foc_date": "2018-02-02T22:25:27.521Z",
- "id": "0ccc7b54-4df3-4bca-a65a-3da1ecc777f0",
- "inserted_at": "2018-02-02T22:25:27.521Z",
- "phone_numbers": [
- "+35312345678"
], - "pon": "00000000",
- "reason": null,
- "record_type": "portout",
- "requested_foc_date": "2018-02-02T22:25:27.521Z",
- "service_address": "000 Example Street",
- "spid": "0ccc7b54-4df3-4bca-a65a-3da1ecc777f0",
- "state": "IL",
- "status": "rejected",
- "support_key": "PO_764725",
- "updated_at": "2018-02-02T22:25:27.521Z",
- "user_id": "7865816a-ee85-4e50-b19e-52983dcc6d4a",
- "vendor": "0e66ed3b-37e6-4fed-93d6-a30ce2493661",
- "zip": "00000"
}
}