To override the Content-type in your clients HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
HTTP + JSON
The following are sample HTTP requests and responses.
The placeholders shown need to be replaced with actual values.
POST /json/reply/GetFlatRequest HTTP/1.1
Host: api.qvinci.com
Content-Type: application/json
Content-Length: length
{"UseAccountMapping":false,"IncludeComputedColumns":false,"OrderBy":"String","UseCustomDateRange":false,"StartDate":"\/Date(-62135596800000-0000)\/","EndDate":"\/Date(-62135596800000-0000)\/","CompanyId":0,"Filters":["00000000000000000000000000000000"],"Locations":[0]}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"Url":"String","SelectedOptions":{"ReportType":"String","DateFrequency":"String","UseAccountMapping":false,"VerticalAnalysisType":"String","IncludeComputedColumns":false,"OrderBy":"String","RelativeDateRange":"String","UseCustomDateRange":false,"StartDate":"String","EndDate":"String","Filters":["00000000000000000000000000000000"],"Locations":[0]},"ReportModel":{"ReportHeader":"String","BuildTime":0}}