Expense Sheet Delete Multi

Deletes multiple expense sheets.

Expense Sheet Delete Multi

ParameterMandatoryDescriptionExamplesMore Info
APIYesThe API areaexpensesheets.json
GeneralYesParameters described in overviewAuthorization: Bearer <access_token> header — see Synergist API AuthenticationStructure of an API call
ActionYesThe action to performaction=expensesheetsdelete
IdentifierYesExpense sheet ID or UUIDexpensesheet=[1234,1235]

Example request (OAuth 2.0):

Authorization: Bearer <access_token>
http://<SERVER>/jsonapi/expensesheets.json?&version=6&action=expensesheetsdelete&expensesheet=[1234,1235]

Example request (legacy username/password):

http://<SERVER>/jsonapi/expensesheets.json?&version=6&action=expensesheetsdelete&expensesheet=[1234,1235]&user=<username>&password=<password>

Example response:

{
  "responsecode": 1,
  "responsestatus": "OK",
  "errorcode": 0,
  "errormessage": "",
  "responsemessage": "2 of 2 Expense sheets deleted.",
  "warningmessage": "",
  "success": true
}