Graph Query getTicket Calculations

How would one report ticket calculations with Graph API?

getTicket doesnt seem to have required parameters…

You use reports. You build the report then use graphql to gert the report.

Fair enough, thought that might be the case.

Not meaning to be lazy but how would one pass a ticket id through api into the report?

I got it with some trial and error.
Parameters input as JSON array and values used in report as $Name…

query q {getCustomReport(name:"Ticket Calculations",parameters:[{name:"TicketId",value:"55955"}])
{
    name
    tables {
      rows {
        cells
      } 
    }
  }
}

into

[Ticket Calculations:3,2]
>Calculation Type|Amount
{REPORT CALCULATION DETAILS:C.Type,C.CalculationAmount:T.Id=$TicketId}

gives desired result… ish;

{
  "data": {
    "getCustomReport": {
      "name": "Ticket Calculations",
      "tables": [
        {
          "rows": [
            {
              "cells": [
                "Loyalty Wet Discount",
                "-10.00"
              ]
            },
            {
              "cells": [
                "Loyalty Dry Discount",
                "-5.00"
              ]
            }
          ]
        }
      ]
    }
  },
  "errors": null
}