Query Spend

POST /api/spend/queryData

Get's spend entered within date range

Query parameters

  • Date from - turnover loaded after this date

  • Group spend by agreement

  • length integer Required

    Number of results to return

  • start integer Required

    Start row of returned results

  • Date to - turnover loaded before this date

Responses

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": "&pound",
        "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
}