Picture

Get Expense

Picture

Request Header

Name
Type
Required
Description
Authorization
String
Required
OAuth token obtained after the user has provided consent and the authorized partner calls the /authorization/Connect/Token endpoint to retrieve this token
Ocp-Apim-Subscription-Key
String
Required

Request Parameter

Name
Type
Required
Description
id
Integer
Required
รหัสของค่าใช้จ่าย

Example Request

curl --location -g --request GET 'https://api.veniocrm.com/dev/v1/Expenses/{id}' \

--header 'Ocp-Apim-Subscription-Key;<Your Subscription-Key>' \

--header 'Authorization: <Your access_token>'

Download postman Collection

Response

Name
Type
Description
expenseId
Long
รหัสค่าใช้จ่าย
teamId
Integer
รหัสทีม
activityId
Long
รหัสกิจกรรม
expenseNo
String
หมายเลขค่าใช้จ่าย
statusId
Integer
รหัสสถานะ
dateTransaction
DateTime
วันที่ทำรายการ
createdByUserId
String
รหัสผู้สร้าง
dateCreated
DateTime
วันที่สร้าง
updatedByUserId
String
รหัสผู้ Update
dateUpdated
DateTime
วันที่แก้ไข
waitingApproveByUserId
String
waitingApproveByRoleId
String
waitingApproveByRankNo
Integer
approvedByUserId
String
อนุมัติโดยผู้ใช้หัส
dateApproved
DateTime
เวลาที่อนุมัติ
modifiedByUserId
String
แก้ไขโดยผู้ใช้รหัส
remark
String
subject
String
หัวข้อ
canApprove
Boolean
สามารถอนุมัติได้หรือไม่
isEdit
Boolean
แก้ไข
deletable
Boolean
ลบได้หรือไม่
total
Decimal
ราคารวมทั้งหมด
statusName
String
ชื่อสถานะ
reason
String
เหตุผล
attachments
List<Attachment>
รายการเอกสารแนบ
dateCheckout
DateTme
เวลาออก
totalDistance
Double
รวมระยะทาง
customerName
String
ชื่อลูกค้า
dateCheckin
DateTime
เวลาเข้า
note
String
รายละเอียดเพิ่มเติม
pictureUrl
String
Url รูปภาพ
activityIds
List<long>
รายการรหัสกิจกรรม

Example Response

{

    "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

}

Response Codes

HTTP Status Code
Description
200
Get ข้อมูลสำเร็จ
400
ExpenseId ไม่ถูกต้อง
401
Unauthorized
403
Forbidden
© Copyright 2021 Gofive Co., Ltd. All right reserved.