v1

latestOpenAPI 3.0.12026-07-245277551.2 MB
Stock reports

Query stock report data

Mode:

  • Preview: 100 Records
  • Run: 12000 Records

Query stock report data from a stock report already created being able to change

  • Filters Operators and Values
  • Columns Order
  • Group Row Modifier
  • Group Columns Modifier
  • Sort
  • Settings
post/datainsights/v1.1/stock_reports/{stock_report_id}/query/data

Path parameters

stock_report_idinteger required

Stock report id of the resource

Query parameters

format'raw' | 'formatted'
Example:formatted

Select the format of the numbers in the records. The "raw" values are sent unmodified from the database. The "formatted" records as are cast to a string. Currency type CDFs are defined in the property settings and other numbers are formatted with commas to separate every third digit and a decimal to separate the fractional portion.

mode'Preview' | 'Run' required
Example:Preview

Select the mode to limit the amount of records. Preview has a limit of 100 records, and run has a limit 12,000 records

Headers

X-PROPERTY-IDinteger required

Property id of the client

Request body

property_idsinteger[] required

Report property ids

Response

OK

group_rowsstring[] required

List of CDF names of group rows

group_columnsstring[] required

List of CDF names of group columns

periodsstring[]

List of names of the periods being compared

recordsobject required

Dictionary of records of column value combinations and metric values in the report

subtotalsobject required

Dictionary of subtotals in the report

totalsobject required

Dictionary of totals in the report

typestring required

Type of the report generated

comparisonsstring[]

List of names of the comparisons being made

aggregated_countinteger

Number of rows included in aggregations in the report

Example response

{
  "type": "List"
}