Skip to main content

Create a porting related report

POST 
/porting/reports

Generate reports about porting operations.

Request

Body

required

    report_type stringrequired

    Possible values: [export_porting_orders_csv]

    Identifies the type of report

    params

    object

    required

    oneOf

Responses

201: Successful response

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

500: Internal server error

Request samples


curl -L 'https://api.telnyx.com/v2/porting/reports' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
-d '{
"report_type": "export_porting_orders_csv",
"params": {
"filters": {
"status__in": [
"draft"
],
"customer_reference__in": [
"my-customer-reference"
],
"created_at__lt": "2024-07-29T15:51:28.071Z",
"created_at__gt": "2024-07-29T15:51:28.071Z"
}
}
}'

Response samples


{
"data": {
"id": "eef3340b-8903-4466-b445-89b697315a3a",
"report_type": "export_porting_orders_csv",
"status": "completed",
"params": {},
"document_id": "f1486bae-f067-460c-ad43-73a92848f902",
"record_type": "porting_report",
"created_at": "2021-03-19T10:07:15.527000Z",
"updated_at": "2021-03-19T10:07:15.527000Z"
}
}