Expense Sheet Copy

Copies an expense sheet.

Expense Sheet Copy

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=expensesheetcopy
IdentifierYesExpense sheet ID or UUIDexpensesheet=1791

Example request (OAuth 2.0):

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

Example request (legacy username/password):

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

Example response:

{
  "responsecode": 1,
  "responsestatus": "OK",
  "errorcode": 0,
  "errormessage": "",
  "responsemessage": "Expense sheet 1791 copied to 1815.",
  "warningmessage": "",
  "success": true,
  "data": [
    {
      "expensesheetInternalRef": 1815,
      "expensesheetUuid": "A501A22A052E104B8912EB9F73544169"
    }
  ]
}