APG PayAPG Paydocs

Reporting

Get report chart

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

Return one chart the caller can read.

Permissions

Required permission
reports:query

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

Path parameters

reportChartIdstring
required

Responses

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

Discriminated by type
type = "RchtViewAttributes"
reportChartIdRchtIdrequired

Identifier of a saved chart.

Example rcht_9f2Kd8QpLzXw

reportSpaceIdRspcIdrequired

Identifier of a report space.

Example rspc_9f2Kd8QpLzXw

titlestringrequired

Ask a dataset a question. With measures, the answer is one row per combination of the dimensions and time buckets; with none, it is one row per record, in the dataset's row columns.

How a chart draws its answer. What it asks is its question.

stalestring

Present when the catalogue has moved under the question since it was saved, so asking it now would be refused: why, as the refusal would say. The chart is still read, and saving a new question clears it.

accessRspcAccessrequired
PrivateSharedSystemUnknown
ownedByCallerbooleanrequired

Example true

editablebooleanrequired

Whether the caller may change, move or delete it.

Example true

createdAtstring (date-time)required

Example 2026-08-19T04:21:07Z

updatedAtstring (date-time)required

Example 2026-08-19T04:21:07Z

Example
{
  "type": "RchtViewAttributes",
  "reportChartId": "rcht_9f2Kd8QpLzXw",
  "reportSpaceId": "rspc_9f2Kd8QpLzXw",
  "title": "string",
  "question": {
    "type": "RqryCmdRun",
    "reportDatasetId": "string",
    "measures": [
      "string"
    ],
    "dimensions": [
      "string"
    ],
    "time": {
      "type": "RqryTimeSliceAttributes",
      "grain": "string",
      "range": {
        "type": "RqryRangeBetween",
        "from": "2026-08-19",
        "to": "2026-08-19"
      },
      "compare": "PreviousPeriod"
    },
    "filters": [
      {
        "type": "RqryFilterAbove",
        "dimension": "string",
        "value": "string"
      }
    ],
    "sort": [
      {
        "type": "RqrySortDimension",
        "dimension": "string",
        "ascending": true
      }
    ],
    "limit": 25,
    "page": "string",
    "segments": [
      "string"
    ],
    "measureFilters": [
      {
        "type": "RqryMeasureFilterAbove",
        "measure": "string",
        "value": "string"
      }
    ],
    "top": {
      "type": "RqryTopAttributes",
      "dimension": "string",
      "count": 42,
      "measure": "string"
    },
    "narrowTo": {
      "type": "RqryNarrowCustomers",
      "customerIds": [
        "cust_9f2Kd8QpLzXw"
      ]
    },
    "asAt": "2026-08-19T04:21:07Z",
    "pivot": {
      "type": "RqryPivotAttributes",
      "rows": [
        "string"
      ],
      "columns": [
        "string"
      ],
      "subtotals": true
    },
    "timezone": "string"
  },
  "presentation": {
    "type": "RchtPresentationAttributes",
    "chartType": "Auto",
    "colours": {
      "type": "RchtColoursAttributes",
      "palette": "Categorical",
      "overrides": [
        {
          "type": "RchtColourOverrideAttributes",
          "series": "string",
          "swatch": "string"
        }
      ]
    },
    "description": "string",
    "riseIs": "Good",
    "stackTotal": "string",
    "referenceLines": [
      {
        "type": "RchtReferenceLineConstant",
        "label": "string",
        "value": "string"
      }
    ],
    "table": {
      "type": "RchtTableAttributes",
      "rowLink": "string",
      "statuses": [
        {
          "type": "RchtStatusColumnAttributes",
          "column": "string",
          "tones": [
            {
              "type": "RchtValueToneAttributes",
              "value": "string",
              "tone": "Danger"
            }
          ]
        }
      ]
    }
  },
  "stale": "string",
  "access": "Private",
  "tenant": {
    "type": "RspcTenantEnterprise",
    "enterpriseId": "ent_9f2Kd8QpLzXw"
  },
  "ownedByCaller": true,
  "editable": true,
  "createdAt": "2026-08-19T04:21:07Z",
  "updatedAt": "2026-08-19T04:21:07Z"
}

Error responses