Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Added export of the latest version for downloading.
Tip

This document provides API integration details regarding Phonon’s Click-to-Call product. For any query, more information or suggestions, write to us at help@phonon.io, or contact your Customer Success Manager.

Expand
titleClick here to download the Doc or PDF Version:

View file
nameClick-to-Call_+HTTP_HTTPS+API+Integration+-+including+Interactive+Applications.doc
View file
nameCore - Click2Call APi Document - 31082021.pdf

...

Table of Content:

Table of Contents

...

Code Block
languagexml
<CallReport>

   <NumberOfRecords>1<	<NumberOfRecords>1</NumberOfRecords>

   <CallDetails>

       <referenceID	<CallDetails>
		<referenceID id="10000000000011488966">

           <advertiser>917043337901<			<advertiser>917043337901</advertiser>

           <visitor>919687939393<			<visitor>919687939393</visitor>

           <duration>0<			<duration>0</duration>

           <visitorstarttime>2014			<visitorstarttime>2014-08-04 00:44:04</visitorstarttime>

           <visitorconnecttime>2014			<visitorconnecttime>2014-08-04 00:44:06</visitorconnecttime>

           <visitorendtime>2014			<visitorendtime>2014-08-04 00:44:13</visitorendtime>

           <advertiserstarttime><			<advertiserstarttime></advertiserstarttime>

           <advertiserconnecttime><			<advertiserconnecttime></advertiserconnecttime>

           <advertiserendtime><			<advertiserendtime></advertiserendtime>

           <UDF1>255187<			<UDF1>255187</UDF1>

           <UDF2>415861<			<UDF2>415861</UDF2>

           <UDF3>CallPatch<			<UDF3>CallPatch</UDF3>

           <UDF5>919341221626<			<UDF5>919341221626</UDF5>

           <UDF6>917043337901<			<UDF6>917043337901</UDF6>

           <UDF7>India<			<UDF7>India</UDF7>

           <UDF8><			<UDF8>
			</UDF7>

           <UDF9><			<UDF9></UDF9>

           <UDF10><			<UDF10></UDF10>

           <UDF11><			<UDF11></UDF11>

           <UDF12><			<UDF12></UDF12>

           <UDF13><			<UDF13></UDF13>

           <UDF14><			<UDF14></UDF14>

           <UDF15><			<UDF15></UDF15>

           <referrer> <			<referrer></referrer>

           <advertiserCDRID><			<advertiserCDRID></advertiserCDRID>

           <visitorCDRID>53DD7C5200000530<			<visitorCDRID>53DD7C5200000530</visitorCDRID>

           <NACK>ACK<			<NACK>ACK</NACK>

           <connection			<connection_status>Not Connected</connection_status>

           <visitor			<visitor_call_status>Success</visitor_call_status>

           <advertiser			<advertiser_call_status>Not Called</advertiser_call_status>

       <		</referenceID>

	</CallDetails>

</CallReport>

Option 3: Pull CDRs based on Date Filter

...

Code Block
languagexml
<CallReport>
  	<Customer>
		<!--Sent when customer_details=true-->
        		<CustomerName>phonon</CustomerName>
        <Balance>1000</Balance>
        		<Balance>1000</Balance>
		<ExpiryDate>07082014</ExpiryDate>
    	</Customer>
    	<NumberOfRecords>1</NumberOfRecords>
    	<CallDetails>
        		<referenceID id="10000000000011488966">
            			<advertiser>919898989877</advertiser>
            			<visitor>919897124134</visitor>
            			<visitorlocation>delhi</visitorlocation>
            			<visitorIP>159.90.163.27</visitorIP>
            			<duration>0</duration>
			<!-- duration in seconds-->
    			<visitorcost>1</visitorcost>
			<!--Sent when customer_details=true-->
    			<advertisercost>2</advertisercost>
			<!--Sent when customer_details=true-->
            			<visitorstarttime>2014-08-04 00:44:04</visitorstarttime>
             00:44:04</visitorstarttime>
			<visitorconnecttime>2014-08-04 00:44:06</visitorconnecttime>
            			<visitorendtime>2014-08-04 00:44:13</visitorendtime>
            			<advertiserstarttime></advertiserstarttime>
            			<advertiserconnecttime></advertiserconnecttime>
            			<advertiserendtime></advertiserendtime>
            <UDF1>2150</UDF1>
            <UDF2>31253</UDF2>
            <UDF3>SELLER</UDF3>
            <UDF4>1234567890</UDF4>
            <UDF5>919725098056</UDF5>
  			<UDF1>2150</UDF1>
			<UDF2>31253</UDF2>
			<UDF3>SELLER</UDF3>
			<UDF4>1234567890</UDF4>
			<UDF5>919725098056</UDF5>
			<UDF6>BUY/SELL</UDF6>
  			<UDF7></UDF7>
            			<UDF8></UDF8>
            			<UDF9></UDF9>
  			<UDF10></UDF10>
 
			<UDF11></UDF11>
  			<UDF12></UDF12>
  			<UDF13></UDF13>
  			<UDF14></UDF14>
  			<UDF15></UDF15>
            			<referrer></referrer>
            			<advertiserCDRID></advertiserCDRID>
			<!--sent when connection_details=true-->
            <visitorCDRID>53DD7C5200000530</visitorCDRID><			<visitorCDRID>53DD7C5200000530</visitorCDRID>
			<!--sent when connection_details=true-->
            <NACK>ACK</NACK><			<NACK>ACK</NACK>
			<!--sent when connection_details=true-->
            			<connection_status>Successfully Connected</connection_status><status>
			<!--sent when connection_details=true-->
            			<visitor_call_status>Success</visitor_call_status><status>
			<!--sent when connection_details=true-->
            			<advertiser_call_status>Call Completed Success</advertiser_call_status><status>
			<!--sent when connection_details=true-->
        		</referenceID>
    	</CallDetails>
	<latestRequestIdOfPage>10000000000073026794
   <latestRequestIdOfPage>10000000000073026794<latestRequestIdOfPage>
		<latestRequestIdOfPage>
		</CallReport>

...

5. Interactive Applications API 

...

  1. An inbound call is received on a DID number alloted to the customer.

  2. An outbound call in initiated through MakeCall request. Please note the MakeCall request will only have visitor_number parameter and no advertiser_number parameter.

Customer URL Called

<www.customerurl.com/application?>requestid=<phononrequestid>&callstatus=X&dtmf=<dtmfstring>&cli=<10digitCliofCaller>&udf1=<custudf1>&udf2=<custudf2>&ud32=<custudf3>&udf4=<custudf4>&udf5=<custudf5>&msg=<CDATA_tagged_base64_encoded_mp3_file>

...