Authorization: Bearer ********************
curl --location --request GET 'https://api.gofive.co.th/v1/expenses/' \
--header 'Ocp-Apim-Subscription-Key: <Your-Subscription-Key>' \
--header 'Content-Type: application/json'
สถานะของ Business Code ถ้า
Success = 1000
Error 1 ตัว = 4001
Error มากกว่า 1 ตัว = 4002
หรือเป็น Subcode ที่ต้องการจะแสดงเพื่อสื่อความหมายของ Error โดย subcode จะเป็นตัวเดียวกับ business error code หรือไม่ก็ได้ เพื่อความสะดวกในการแสดงผล
{
"data": {
"value": {
"expenseId": 1,
"teamId": 1,
"expenseNo": "string",
"statusId": 302,
"dateTransaction": "2023-01-06T12:04:16+0700",
"createdByUserId": "string",
"dateCreated": "2023-01-06T12:04:36+0700",
"updatedByUserId": "string",
"dateUpdated": "2023-01-06T12:05:20+0700",
"remark": "",
"subject": "string",
"totalBaht": 0,
"activityExpenses": [],
"expenseDetails": [
{
"expenseDetailId": 1,
"expenseId": 1,
"expenseTypeId": 1,
"categoryId": 1,
"amount1": 0,
"note": "",
"expenseLimitRangesId": 1
}
],
"expenseStates": [
{
"expenseStatesId": 1,
"expenseId": 1,
"statusId": 1,
"createdByUserId": "string",
"dateCreated": "2023-01-06T12:04:36+0700",
"approveLevel": 1,
"seq": 1
}
],
"canApprove": false,
"isEdit": false,
"deletable": true,
"total": 0,
"attachments": [
{
"attachmentId": 1,
"refId": 1,
"type": 1,
"dateCreated": "2023-01-25T15:26:54+0700",
"url": "string",
"urlResponseUpload": "string",
"thumbnail": "string"
}
],
"pictureUrl": "string",
"activityLogs": [
{
"activityLogId": 1,
"refId": 1,
"comment": "",
"logType": 1,
"status": 1,
"dateCreated": "2023-01-06T12:05:20+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",
"preferences": {}
},
"activityId": {}
},
{
"activityLogId": 1,
"refId": 1,
"comment": "string",
"logType": 1,
"status": 1,
"dateCreated": "2023-01-06T12:04:36+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",
"preferences": {}
},
"activityId": {}
}
]
},
"statusCode": 200
},
"statusCode": 1000,
"httpStatusCode": 200
}