This endpoint returns a csv with the license report of the selected periods.
Request
curl -X GET https://api.reveniq.com/v1/reports/license.csv -H ' Authorization: YOUR_API_TOKEN_HERE ' -H ' Content-Type: application/json '
url = URI ( " https://api.reveniq.com/v1/reports/license.csv " )
http = Net :: HTTP . new (url.host, url.port)
request = Net :: HTTP :: Get . new (url)
request[ " Authorization " ] = ' YOUR_API_TOKEN_HERE '
response = http.request(request)
HttpResponse < String > response = Unirest . get ( " https://api.reveniq.com/v1/reports/license.csv " )
. header ( " Authorization " , " YOUR_API_TOKEN_HERE " )
url = " https://api.reveniq.com/v1/reports/license.csv "
' Content-Type ' : " application/json " ,
' Authorization ' : " YOUR_API_TOKEN_HERE " ,
response = requests. request ( " GET " , url , data = payload , headers = headers )
var data = JSON . stringify ( false );
var xhr = new XMLHttpRequest ();
xhr . addEventListener ( " readystatechange " , function () {
if ( this . readyState === 4 ) {
console . log ( this . responseText );
xhr . open ( " GET " , " https://api.reveniq.com/v1/reports/license.csv " );
xhr . setRequestHeader ( " Content-Type " , " application/json " );
xhr . setRequestHeader ( " Authorization " , " YOUR_API_TOKEN_HERE " );
Parmeters
Parameters Description Required from_date starting date of the report which need to be generated eg: "DD-MM-YYYY" YES to_date ending date of the report which need to be generated eg: "DD-MM-YYYY". if the query parameter from_date: "01-01-2023" and to_date: "31-01-2023" will return license reports between these two dates. NO
Response
The above commands returns CSV structured like this:
Account Name Product Name Currency Salesforce Account ID Salesforce Account Name Salesforce Product ID Product ID Dec-2022 Jan-2023 Feb-2023 Mar-2023 Apr-2023 ABC Council Annual Plan gbp 0017V04581m9CNGHGA2 ABC Council 0017V04581m9CNGHGA2 riq_p_dasdsa2dsadsads 136.37 136.37 136.37 136.37 136.37