Create

Creates an expense sheet.

Create

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=create
InputYesJSON stringSee below
JSON InputMandatoryDescriptionExamples
expensesheetSupplierCodeYesSupplier code"expensesheetSupplierCode": "1/USER"
expensesheetCompanyYesCompany"expensesheetCompany":1

Example request (OAuth 2.0):

Authorization: Bearer <access_token>
http://<SERVER>/jsonapi/expensesheets.json?&version=6&action=create&input={
  "data": [
    {
      "expensesheetSupplierCode": "1/USER",
      "expensesheetCompany": 1
    }
  ]
}

Example request (legacy username/password):

http://<SERVER>/jsonapi/expensesheets.json?&version=6&action=create&input={
  "data": [
    {
      "expensesheetSupplierCode": "1/USER",
      "expensesheetCompany": 1
    }
  ]
}&user=<username>&password=<password>

Example response:

{
  "responsecode": 1,
  "responsestatus": "OK",
  "errorcode": 0,
  "errormessage": "",
  "responsemessage": "data processed successfully.",
  "warningmessage": "",
  "success": true,
  "data": [
    {
      "expensesheetUuid": "BE97A99B42F8614A846BAF29AA4BDC12",
      "expensesheetInternalRef": 690,
      "expensesheetTimestampModified": 1533568088,
      "expensesheetRecordVersionNumber": 0
    }
  ]
}