APG PayAPG Paydocs

Reporting

List report datasets

GET/report-datasets
Request
GEThttps://api.tst.au.apgpay.dev/report-datasets
curl -X GET https://api.tst.au.apgpay.dev/report-datasets \
  -H "Authorization: Bearer $API_KEY"

Return every dataset this caller may ask questions of. The caller may keep the answer for five minutes.

Permissions

Required permission
reports:query

Requires the `query` action on `reports` for the supplied runtime context

Query parameters

qstring

Free-text search. Supplying it engages the search index; omit it to filter only.

pageinteger (int32)

1-based page number.

limitinteger (int32)

Maximum items per page.

columnsarray of RdsetColumn

Columns to include, in order, when asking for text/csv. Omit for all of them. Sending it with application/json is a 400.

Responses

The response is a tagged shape: type is always "RdsetPageAttributes". Switch on it; subtypes can be added, and a client that already reads it will not break.

Discriminated by type
type = "RdsetPageAttributes"
hasMorebooleanrequired

Whether further items exist after this page.

Example true

nextStartingAfterstring

Id to pass as startingAfter to fetch the next page. Present in cursor mode only.

totalCountinteger (int64)

Total items matching the query.

Example 42

pageinteger (int32)

The 1-based page returned. Present in offset mode only.

Example 1250

totalPagesinteger (int32)

Total pages available. Present in offset mode only.

Example 1250

Example
{
  "type": "RdsetPageAttributes",
  "data": [
    {
      "type": "RdsetAttributes",
      "reportDatasetId": "string",
      "domain": "string",
      "label": "string",
      "description": "string",
      "grains": [
        {
          "type": "RdsetGrainAttributes",
          "name": "Ada Lovelace",
          "label": "string",
          "rules": [
            {
              "type": "RdsetRuleAggregateLimit",
              "max": 1250
            }
          ]
        }
      ],
      "defaultGrain": "string",
      "dimensions": [
        {
          "type": "RdsetDimensionAttributes",
          "name": "Ada Lovelace",
          "label": "string",
          "description": "string",
          "summary": "string",
          "kind": "Text",
          "lookup": "OwnValues",
          "values": {
            "type": "RdsetValuesEntered",
            "reason": "Requested by the customer."
          },
          "drillsTo": "string",
          "matchesText": true,
          "group": "string",
          "rules": [
            {
              "type": "RdsetRuleAggregateLimit",
              "max": 1250
            }
          ],
          "operators": [
            "Equals"
          ],
          "identifies": "Enterprise",
          "bands": [
            {
              "type": "RdsetStatusOutcomeAttributes",
              "label": "string",
              "tone": "Danger"
            }
          ],
          "currencyDimension": "AUD"
        }
      ],
      "measures": [
        {
          "type": "RdsetMeasureAttributes",
          "name": "Ada Lovelace",
          "label": "string",
          "description": "string",
          "summary": "string",
          "format": "Money",
          "currencyDimension": "AUD",
          "currency": "AUD",
          "decimals": 1250,
          "additivity": "Additive",
          "target": {
            "type": "RdsetTargetBands",
            "label": "string",
            "bands": [
              {
                "type": "RdsetTargetBandAttributes",
                "label": "string",
                "from": "string",
                "until": "string"
              }
            ]
          },
          "group": "string",
          "rules": [
            {
              "type": "RdsetRuleAggregateLimit",
              "max": 1250
            }
          ],
          "riseIs": "Good"
        }
      ],
      "rowColumns": [
        "string"
      ],
      "suggestedCharts": [
        "BigNumber"
      ],
      "segments": [
        {
          "type": "RdsetSegmentAttributes",
          "name": "Ada Lovelace",
          "label": "string",
          "description": "string"
        }
      ],
      "periods": [
        {
          "type": "RdsetPeriodAttributes",
          "name": "Ada Lovelace",
          "label": "string",
          "description": "string"
        }
      ],
      "timezone": "string",
      "rules": [
        {
          "type": "RdsetRuleAggregateLimit",
          "max": 1250
        }
      ],
      "statuses": [
        {
          "type": "RdsetStatusAttributes",
          "name": "Ada Lovelace",
          "label": "string",
          "description": "string",
          "measures": [
            "string"
          ],
          "rules": [
            {
              "type": "RdsetStatusRuleAttributes",
              "label": "string",
              "tone": "Danger",
              "tests": [
                {
                  "type": "RdsetStatusTestAttributes",
                  "measure": "string",
                  "comparison": "Above",
                  "value": "string",
                  "passesAbsent": true
                }
              ]
            }
          ],
          "otherwise": {
            "type": "RdsetStatusOutcomeAttributes",
            "label": "string",
            "tone": "Danger"
          }
        }
      ]
    }
  ],
  "hasMore": true,
  "nextStartingAfter": "string",
  "totalCount": 42,
  "page": 1250,
  "totalPages": 1250
}

Error responses