Authorization: Bearer ********************
{
"expenseDetails": [
{
"expenseDetailId": 0,
"expenseTypeId": 1001,
"amount": 0,
"night": 0,
"milesStart": 0,
"milesEnd": 0,
"trainingTitle": "string",
"hours": 0,
"minutes": 0,
"taxi": 0,
"tollway": 0,
"parking": 0,
"person": 0,
"note": "string",
"usedFuelCard": true,
"expenseTypeName":"string"
}
],
"subject": "string",
"activityId": "string",
"dateTransaction": "2021-09-17T08:47:23.771Z",
"remark": "string",
"staffCode":"string"
}
curl --location --request POST 'https://api.gofive.co.th/v1/Expenses' \
--header 'Ocp-Apim-Subscription-Key: <Your-Subscription-Key>' \
--header 'Content-Type: application/json' \
--data-raw '{
"expenseDetails": [
{
"expenseDetailId": 0,
"expenseTypeId": 1001,
"amount": 0,
"night": 0,
"milesStart": 0,
"milesEnd": 0,
"trainingTitle": "string",
"hours": 0,
"minutes": 0,
"taxi": 0,
"tollway": 0,
"parking": 0,
"person": 0,
"note": "string",
"usedFuelCard": true,
"expenseTypeName":"string"
}
],
"subject": "string",
"activityId": "string",
"dateTransaction": "2021-09-17T08:47:23.771Z",
"remark": "string",
"staffCode":"string"
}'
{
"data": {
"value": {
"expenseId": 1,
"teamId": 1,
"expenseNo": "string",
"statusId": 302,
"dateTransaction": "2023-01-22T08:47:23+0700",
"createdByUserId": "string",
"dateCreated": "2023-01-22T12:54:25+0700",
"remark": "string",
"subject": "string",
"totalBaht": 2,
"activityExpenses": [],
"expenseDetails": [
{
"expenseDetailId": 1,
"expenseId": 1,
"expenseTypeId": 1,
"categoryId": 1,
"quantity": 1,
"amount1": 1
}
],
"expenseStates": [
{
"expenseStatesId": 1,
"expenseId": 1,
"statusId": 302,
"createdByUserId": "string",
"dateCreated": "2023-01-22T12:54:25+0700",
"approveLevel": 1,
"seq": 1
}
],
"canApprove": false,
"isEdit": true,
"deletable": true,
"total": 2,
"attachments": [],
"pictureUrl": "string",
"activityLogs": [
{
"activityLogId": 1,
"refId": 1,
"comment": "string",
"logType": 270002,
"status": 1020,
"dateCreated": "2023-01-22T12:54:25+0700",
"createdByUserId": "string",
"userInfo": {
"userId": "string",
"fullname": "string",
"dateCreated": "2018-11-05T10:13:59+0700",
"dateModified": "2023-01-20T11:38:34+0700",
"identityUserId": "string",
"pictureUrl": "string"
},
"activityId": {}
}
]
},
"statusCode": 200
},
"statusCode": 1000,
"httpStatusCode": 200
}