Expense Line Reject

Rejects an expense line.

Expense Line Reject

ParameterMandatoryDescriptionExamplesMore Info
APIYesThe API areaexpenselines.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=expenselinereject
IdentifierYesExpense line ID or UUIDexpenseline=3462
QueryRejectReasonNoReason for rejectionqueryrejectreason=rejectedreason

Example request (OAuth 2.0):

Authorization: Bearer <access_token>
http://&lt;SERVER&gt;/jsonapi/expenselines.json?&version=6&company=1&action=expenselinereject&expenseline=3462&queryrejectreason=rejectedreason

Example request (legacy username/password):

http://&lt;SERVER&gt;/jsonapi/expenselines.json?&version=6&company=1&action=expenselinereject&expenseline=3462&queryrejectreason=rejectedreason&user=<username>&password=<password>

Example response:

{
  "responsecode": 1,
  "responsestatus": "OK",
  "errorcode": 0,
  "errormessage": "",
  "responsemessage": "Expense line rejected.",
  "warningmessage": "",
  "success": true
}