Description

Retrieve a single call data record from a CDRUID or CDRRef.

Parameters

int CDRUID optionalThe CDRUID, can be retrieved from a the GetCDRs function.
string CDRRef optionalThe CDRUID, can be retrieved from a the GetCDRs function or sent via a webhook (if configured).

Request

<?xml version="1.0"?>
<NoveroRequest>
  <Request target="NoveroCDR" name="GetCDR" id="TestRequest">
    <CDRRef>!ABCDEF12345678</CDRRef>
  </Request>
</NoveroRequest>
<?php
    require_once('TTNCApi.php');
    $Api = new TTNCApi('<username>', '<password>', '<VKey>');
    $Request = $Api->NewRequest('NoveroCDR', 'GetCDR', 'TestRequest');
    $Request->SetData('CDRRef', '!ABCDEF12345678');
    $Api->MakeRequests();
    $Response = $Api->GetResponseFromId('TestRequest');
?>
require TTNCApi
api = TTNCApi.new('<username>', '<password>', '<vkey>')
request = api.newrequest('NoveroCDR', 'GetCDR', 'TestRequest')
request.setdata('CDRRef', '!ABCDEF12345678')
api.makerequest()
p request.getresponse()
api = TTNCApi('<username>', '<password>', '<vkey>')
request = api.newrequest('NoveroCDR', 'GetCDR', 'TestRequest')
request.setdata('CDRRef', '!ABCDEF12345678')
api.makerequest()
p request.getresponse()
using System;
using TTNCApi;
 
class Program
{
    static void Main(string[] args)
    {
        TTNCApi api = new TTNCApi("<username>", "<password>", "<vkey>");
        TTNCRequest request = api.NewRequest("NoveroCDR", "GetCDR", "TestRequest");
        request.setData("CDRRef", "!ABCDEF12345678");
        api.MakeRequests();
        TTNCParser dic = request.GetResponse();
     }
}

Response

<?xml version="1.0"?>
<NoveroResponse>
  <Response target="NoveroCDR" name="GetCDR" Code="200" RequestId="TestRequest">
      <CDR>
        <uid>106398335</uid>
        <ref>!ABCDEF12345678</ref>
        <calldate>2013-08-03</calldate>
        <calltime>20:48:40</calltime>
        <anumber>7921255043</anumber>
        <anumber_location>UK O2 Mobile</anumber_location>
        <bnumber>1245830144</bnumber>
        <alias></alias>
        <dialled>0</dialled>
        <dialled_location>Unknown</dialled_location>
        <duration>0</duration>
        <ring_time>0</ring_time>
        <user_cost>0.000</user_cost>
        <reason>2</reason>
        <reason_q805>0</reason_q805>
        <HasRecordedCall>1</HasRecordedCall>
        <HasVoicemailRecording>0</HasVoicemailRecording>
        <HasFaxDocument>0</HasFaxDocument>
      </CDR>
  </Response>
</NoveroResponse>