Cdr Exports API

create new entry

POST /api/rest/admin/cdr/cdr-exports

Parameters

Name Description
data[type] Resource type (cdr-exports)
data[attributes][fields] Fields
data[attributes][filters] Filters
data[attributes][callback-url] Callback url
data[attributes][export-type] Export type

Request

Headers

Version: HTTP/1.0
Accept: application/vnd.api+json
Content-Type: application/vnd.api+json
Authorization: eyJhbGciOiJIUzI1NiJ9.eyJleHAiOjE3MzE1Nzg3NTAsInN1YiI6NTR9.LCzoqhIDsl7t18EWvseoaiyxQpPGO3Q1xtlUGqVceK4
Host: example.org
Cookie: 

Route

POST /api/rest/admin/cdr/cdr-exports

Body

{"data":{"type":"cdr-exports","attributes":{"fields":["id","success"],"filters":{"time_start_gteq":"2018-01-01 00:00:00","time_start_lteq":"2018-01-01 23:59:59.999999","time_start_lt":"2018-01-02 00:00:00","customer_id_eq":1234,"customer_external_id_eq":1235,"customer_acc_id_eq":1236,"customer_acc_external_id_eq":241251,"vendor_id_eq":1237,"vendor_external_id_eq":1238,"vendor_acc_id_eq":1239,"vendor_acc_external_id_eq":1240,"is_last_cdr_eq":true,"success_eq":true,"customer_auth_id_eq":1241,"customer_auth_external_id_eq":2151321,"failed_resource_type_id_eq":25,"src_prefix_in_contains":"1111","src_prefix_in_eq":"1111","dst_prefix_in_contains":"2222","dst_prefix_in_eq":"2222","src_prefix_routing_contains":"3333","src_prefix_routing_eq":"3333","dst_prefix_routing_contains":"4444","dst_prefix_routing_eq":"4444","src_prefix_out_contains":"5555","src_prefix_out_eq":"5555","dst_prefix_out_contains":"6666","dst_prefix_out_eq":"6666","src_country_iso_eq":"AD","dst_country_iso_eq":"AD","routing_tag_ids_include":2,"routing_tag_ids_exclude":5,"routing_tag_ids_empty":false,"orig_gw_id_eq":1242,"orig_gw_external_id_eq":1243,"term_gw_id_eq":1244,"term_gw_external_id_eq":1245,"duration_eq":60,"duration_gteq":0,"duration_lteq":100,"customer_auth_external_type_eq":"term","customer_auth_external_type_not_eq":"em","customer_auth_external_id_in":[1,2,3],"dst_country_iso_in":["AD"],"src_country_iso_in":["AD"]},"callback-url":"test.url.com","export-type":"Base"}}}

Response

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 0
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Permitted-Cross-Domain-Policies: none
Referrer-Policy: strict-origin-when-cross-origin
Content-Type: application/vnd.api+json
Vary: Accept
ETag: W/"e542e346f7f327e5d8b8667ca1300a51"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: e0cbd15d-4c93-44b4-9174-e25cafd7f20a
X-Runtime: 0.027252
Content-Length: 1603

Status

201 Created

Body

{
  "data": {
    "id": "1",
    "type": "cdr-exports",
    "links": {
      "self": "http://example.org/api/rest/admin/cdr/cdr-exports/1"
    },
    "attributes": {
      "fields": [
        "id",
        "success"
      ],
      "filters": {
        "time_start_gteq": "2018-01-01T00:00:00.000Z",
        "time_start_lteq": "2018-01-01T23:59:59.999Z",
        "time_start_lt": "2018-01-02T00:00:00.000Z",
        "customer_id_eq": 1234,
        "customer_external_id_eq": 1235,
        "customer_acc_id_eq": 1236,
        "customer_acc_external_id_eq": 241251,
        "vendor_id_eq": 1237,
        "vendor_external_id_eq": 1238,
        "vendor_acc_id_eq": 1239,
        "vendor_acc_external_id_eq": 1240,
        "is_last_cdr_eq": true,
        "success_eq": true,
        "customer_auth_id_eq": 1241,
        "customer_auth_external_id_eq": 2151321,
        "failed_resource_type_id_eq": 25,
        "src_prefix_in_contains": "1111",
        "src_prefix_in_eq": "1111",
        "dst_prefix_in_contains": "2222",
        "dst_prefix_in_eq": "2222",
        "src_prefix_routing_contains": "3333",
        "src_prefix_routing_eq": "3333",
        "dst_prefix_routing_contains": "4444",
        "dst_prefix_routing_eq": "4444",
        "src_prefix_out_contains": "5555",
        "src_prefix_out_eq": "5555",
        "dst_prefix_out_contains": "6666",
        "dst_prefix_out_eq": "6666",
        "src_country_id_eq": 5,
        "dst_country_id_eq": 5,
        "routing_tag_ids_include": 2,
        "routing_tag_ids_exclude": 5,
        "routing_tag_ids_empty": false,
        "orig_gw_id_eq": 1242,
        "orig_gw_external_id_eq": 1243,
        "term_gw_id_eq": 1244,
        "term_gw_external_id_eq": 1245,
        "duration_eq": 60,
        "duration_gteq": 0,
        "duration_lteq": 100,
        "customer_auth_external_type_eq": "term",
        "customer_auth_external_type_not_eq": "em",
        "customer_auth_external_id_in": [
          1,
          2,
          3
        ],
        "dst_country_iso_in": [
          "AD"
        ],
        "src_country_iso_in": [
          "AD"
        ]
      },
      "status": "Pending",
      "created-at": "2024-11-14T09:55:50.568Z",
      "callback-url": "test.url.com",
      "export-type": "Base"
    }
  }
}