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
}