Expense Line Submittable

Checks if an expense line can be submitted.

Expense Line Submittable

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=expenselinesubmittable
IdentifierYesExpense line ID or UUIDexpenseline=3404

Example request (OAuth 2.0):

Authorization: Bearer <access_token>
http://<SERVER>/jsonapi/expenselines.json?&version=6&company=1&action=expenselinesubmittable&expenseline=3404

Example request (legacy username/password):

http://<SERVER>/jsonapi/expenselines.json?&version=6&company=1&action=expenselinesubmittable&expenseline=3404&user=<username>&password=<password>

Example response:

{
  "errorcode": 404500,
  "errormessage": "Expense line can not be set to submitted.",
  "errorresponse": "",
  "success": false
}