Expense Sheet Status

Returns a list of expense sheet statuses.

Expense Sheet Status

ParameterMandatoryDescriptionExamplesMore Info
APIYesThe API areaexpensesheets.json
GeneralYesParameters described in overviewAuthorization: Bearer <access_token> header — see Synergist API AuthenticationStructure of an API call
CompanyYesThe company numbercompany=1
ActionYesThe action to performaction=expensesheetstatuses

Example request (OAuth 2.0):

Authorization: Bearer <access_token>
http://<SERVER>/jsonapi/expensesheets.json?&version=6&company=1&action=expensesheetstatuses

Example request (legacy username/password):

http://<SERVER>/jsonapi/expensesheets.json?&version=6&company=1&action=expensesheetstatuses&user=<username>&password=<password>

Example response:

{
  "responsecode": 1,
  "responsestatus": "OK",
  "errorcode": 0,
  "errormessage": "",
  "totalrows": 6,
  "totalpages": 1,
  "responsemessage": "",
  "pagerows": 0,
  "pagenumber": 1,
  "success": true,
  "data": [
    {
      "expensesheetSheetStatus": "",
      "expensesheetSheetStatusDesc": "- All -",
      "variable_selected": false
    },
    {
      "expensesheetSheetStatus": "W",
      "expensesheetSheetStatusDesc": "Unsubmitted",
      "variable_selected": false
    },
    {
      "expensesheetSheetStatus": "S",
      "expensesheetSheetStatusDesc": "Submitted",
      "variable_selected": false
    },
    {
      "expensesheetSheetStatus": "A",
      "expensesheetSheetStatusDesc": "Processed",
      "variable_selected": false
    },
    {
      "expensesheetSheetStatus": "P",
      "expensesheetSheetStatusDesc": "Posted",
      "variable_selected": false
    },
    {
      "expensesheetSheetStatus": "T",
      "expensesheetSheetStatusDesc": "Returned",
      "variable_selected": false
    }
  ]
}