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
}
],
"subject": "string",
"activityId": "string",
"dateTransaction": "2021-09-17T08:47:23.771Z",
"remark": "string",
"attachments": [
{
"attachmentId": 0,
"refId": 0,
"type": 0,
"filename": "string",
"extension": "string",
"fileSize": 0,
"isActive": true,
"createdByUserId": "string",
"dateCreated": "2021-09-17T08:47:23.771Z",
"resourceUrl": "string",
"companyId": 0,
"isProcessed": true,
"url": "string",
"urlResponseUpload": "string",
"thumbnail": "string"
}
]
}
curl --location --request PUT '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
}
],
"subject": "string",
"activityId": "string",
"dateTransaction": "2021-09-17T08:47:23.771Z",
"remark": "string",
"attachments": [
{
"attachmentId": 0,
"refId": 0,
"type": 0,
"filename": "string",
"extension": "string",
"fileSize": 0,
"isActive": true,
"createdByUserId": "string",
"dateCreated": "2021-09-17T08:47:23.771Z",
"resourceUrl": "string",
"companyId": 0,
"isProcessed": true,
"url": "string",
"urlResponseUpload": "string",
"thumbnail": "string"
}
]
}'
{
"data": {
"value": {
"expenseId": 1,
"teamId": 1,
"expenseNo": "string",
"statusId": 302,
"dateTransaction": "2023-01-27T15:47:23+0700",
"createdByUserId": "string",
"dateCreated": "2023-01-23T11:29:03+0700",
"updatedByUserId": "string",
"dateUpdated": "2023-01-23T11:30:44+0700",
"remark": "string",
"subject": "string",
"totalBaht": 3,
"activityExpenses": [],
"expenseDetails": [
{
"expenseDetailId": 1,
"expenseId": 1,
"expenseTypeId": 1001,
"categoryId": 1,
"quantity": 5,
"amount1": 3
}
],
"expenseStates": [],
"total": 3,
"attachments": [],
"pictureUrl": "string"
},
"statusCode": 200
},
"statusCode": 1000,
"httpStatusCode": 200
}