Query parameters
-
datefrom date
Date from - turnover loaded after this date
-
groupturnover boolean
Group spend by agreement
-
Number of results to return
-
Start row of returned results
-
dateto date
Date to - turnover loaded before this date
POST /api/spend/queryData
curl \
-X POST http://api.example.com/api/spend/queryData?length=42&start=42 \
-H "Authorization: Bearer $ACCESS_TOKEN"
Response examples (default)
{
"data": {
"data": [
{
"inputName": "Input Name",
"query_raised": "2024-05-04T09:42:00+00:00",
"turnoverID": 42,
"memberName": "string",
"display": "£",
"date_added": "2024-05-04T09:42:00+00:00",
"memberValue": 42.0,
"known_as": "Supplier Name",
"name": "Agreement Name",
"flagged": true,
"NMBSID": "A56BV",
"memberID": 42,
"period": "2024-05-04",
"invoicingRoute": "DIRECT/NMBS",
"value": 42.0,
"psaID": "44833"
}
],
"columns": [
{
"title": "string"
}
]
},
"total": 42
}