Creates an expense sheet.
Parameter | Mandatory | Description | Examples | More Info |
---|---|---|---|---|
API | Yes | The API area | expensesheets.json | |
General | Yes | Parameters described in overview | user=user&password=user&version=3.9 | Overview |
Action | Yes | The action to perform | action=create | |
Input | Yes | JSON string | See below |
JSON Input | Mandatory | Description | Examples |
---|---|---|---|
expensesheetSupplierCode | Yes | Supplier code | "expensesheetSupplierCode": "1/USER" |
expensesheetCompany | Yes | Company | "expensesheetCompany":1 |
Example request:
http://<SERVER>/jsonapi/expensesheets.json?user=user&password=user&version=3.9&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
}
]
}