Create an expense sheet
Create
Parameter | Description | Examples |
---|---|---|
API | The API area | expensesheets.json |
Action | The action to perform | action=create |
Parameters described in overview | user=user&password=user&version=3.3 | |
input | JSON string | input="data": ... |
expensesheetSupplierCode | Supplier code | "expensesheetSupplierCode": "1/USER" |
expensesheetCompany | Company | "expensesheetCompany":1 |
Response | Returned data | See below |
Example request:
http://<SERVER>/jsonapi/expensesheets.json?user=user&password=user&version=3.3&action=create&input={"data":[{"expensesheetSupplierCode": "1/USER","expensesheetCompany":1}]}
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
}
]
}