curl --location --request POST 'https: //api.veniocrm.com/dev/v1/Expenses' \
--header 'Ocp-Apim-Subscription-Key: <Your Subscription-Key>' \
--header 'Authorization: Bearer <Your access_token>' \
--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": 0,
"teamId": 0,
"activityId": 0,
"expenseNo": "string",
"statusId": 0,
"dateTransaction": "2021-09-17T10:04:52.509Z",
"createdByUserId": "string",
"dateCreated": "2021-09-17T10:04:52.509Z",
"updatedByUserId": "string",
"dateUpdated": "2021-09-17T10:04:52.509Z",
"waitingApproveByUserId": "string",
"waitingApproveByRoleId": "string",
"waitingApproveByRankNo": 0,
"approvedByUserId": "string",
"dateApproved": "2021-09-17T10:04:52.509Z",
"modifiedByUserId": "string",
"remark": "string",
"subject": "string",
"canApprove": true,
"isEdit": true,
"deletable": true,
"total": 0,
"statusName": "string",
"reason": "string",
"attachments": [
{
"attachmentId": 0,
"refId": 0,
"type": 0,
"filename": "string",
"extension": "string",
"fileSize": 0,
"isActive": true,
"createdByUserId": "string",
"dateCreated": "2021-09-17T10:04:52.510Z",
"resourceUrl": "string",
"companyId": 0,
"isProcessed": true,
"url": "string",
"urlResponseUpload": "string",
"thumbnail": "string"
}
],
"dateCheckout": "2021-09-17T10:04:52.510Z",
"totalDistance": 0,
"customerName": "string",
"dateCheckin": "2021-09-17T10:04:52.510Z",
"note": "string",
"pictureUrl": "string",
"activityIds": [
0
]
},
"formatters": [],
"statusCode": 200
},
"statusCode": 1000,
"httpStatusCode": 200
}