Picture

Expense Enquiry

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
Content-Type
String
Required
Content type of request payload
Value:
- application/json
Ocp-Apim-Subscription-Key
String
Required

Request Body

Name
Type
Required
Description
expenseTypeId
ExpenseTypes
Required
รหัสประเภทค่าใช้จ่าย Accommodation = 1001,Enterainment = 1002,
Fuel = 1003,Other = 1004,Training = 1005,Travelling = 1006,
MeetingWithStaff = 1007,MeetingWithSales = 1008,
statusIds
String[]
Optional
รายการรหัสสถานะ
staffCodes
String[]
Optional
รายการรหัสพนักงาน
searchText
String
Optional
Taxt ค้นหา
dateStart
DateTime
Optional
เวลาเริ่ม
dateEnd
DateTime
Optional
เวลาสิ้นสุด

Example Request

curl --location --request POST 'https: //api.veniocrm.com/dev/v1/Expenses/Enquiry' \

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

--header 'Authorization: Bearer <Your access_token>' \

--header 'Content-Type: application/json' \

--data-raw '{

    "expenseTypeId": 1001,

    "statusIds": [

      "string"

    ],

    "staffCodes": [

      "string"

    ],

    "searchText": "string",

    "dateStart": "2021-09-17T10:42:31.981Z",

    "dateEnd": "2021-09-17T10:42:31.981Z"

  }'

Download postman Collection

Response

Name
Type
Description
statusName
String
ชื่อสถานะ
expenses
List<ExpensesLiteModel>
รายการค่าใช้จ่าย
expenseId
Long
รหัสค่าใช้จ่าย
expenseNo
String
หมายเลขค่าใช้จ่าย
companyId
Integer
รหัสบริษัท
teamId
Integer
รหัสทีม
userId
String
รหัสผู้ใช้งาน
staffName
String
ชื่อพนักงาน
orgString
String
สายองค์กร
orgLevel
Integer
ระดับองค์กร
role
String
หน้าที่
companyName
String
ชื่อบริษัท
teamName
String
ชื่อทีม
statusId
Integer
รหัสสถานะ
statusName
String
ชื่อสถานะ
expenseTypeIds
String
รหัสประเภทค่าใช้จ่าย
expenseTypeNames
String
ชื่อประเภทค่าใช้จ่าย
activityId
Long
รหัสกิจกรรม
dateActivity
DateTime
เวลากิจกรรม
keyActivityId
Integer
รหัสกิจกรรมหลัก
keyActivity
String
กิจกรรมหลัก
detailActivities
String
รายละเอียดกิจกรรม
etailActivities
String
รายละเอียดกิจกรรม
contactNames
String
ชื่อติดต่อ
customerId
Long
รหัสลูกค้า
customerName
String
ชื่อลูกค้า
customerAlias
String
นามแฝงลูกค้า
total
Decimal
รวมค่าใช้จ่ายทั้งหมด
dateCreated
DateTime
เวลาที่สร้าง
dateTransaction
DateTime
เวลาธุรกรรม
dateProfileModified
DateTime
เวลาแก้ไข Profile
hasAttachment
Boolean
มีเอกสารแนบหรือไม่
remark
String

waitingApproveByUserId
String
รหัสรอผู้อนุมัติ
approvedByUserId
String
รหัสผู้อนุมัติ
dateApproved
Datetime
เวลาอนุมัติ
dateCheckout
DateTime
เวลา CheckOut
subject
String
หัวข้อ
pictureUrl
String
Url รูปภาพ

Example Response

{

    "data": {

        "value": [

            {

                "statusId": 0,

                "statusName": "string",

                "totalSum": 0,

                "expenses": [

                    {

                        "expenseId": 0,

                        "expenseNo": "string",

                        "companyId": 0,

                        "teamId": 0,

                        "userId": "string",

                        "staffName": "string",

                        "orgString": "string",

                        "orgLevel": 0,

                        "role": "string",

                        "companyName": "string",

                        "teamName": "string",

                        "statusId": 0,

                        "statusName": "string",

                        "expenseTypeIds": "string",

                        "expenseTypeNames": "string",

                        "activityId": 0,

                        "dateActivity": "2021-09-17T10:44:12.359Z",

                        "keyActivityId": 0,

                        "keyActivity": "string",

                        "detailActivities": "string",

                        "contactNames": "string",

                        "customerId": 0,

                        "customerName": "string",

                        "customerAlias": "string",

                        "total": 0,

                        "dateCreated": "2021-09-17T10:44:12.359Z",

                        "dateTransaction": "2021-09-17T10:44:12.359Z",

                        "dateProfileModified": "2021-09-17T10:44:12.359Z",

                        "hasAttachment": true,

                        "remark": "string",

                        "dateApproved": "2021-09-17T10:44:12.359Z",

                        "approvedByUserId": "string",

                        "approvedByFullname": "string",

                        "waitingApproveByUserId": "string",

                        "dateCheckout": "2021-09-17T10:44:12.359Z",

                        "waitingApproveByRoleId": "string",

                        "reason": "string",

                        "subject": "string"

                    }

                ]

            }

        ],

        "formatters": [],

        "statusCode": 200

    },

    "statusCode": 1000,

    "httpStatusCode": 200

}

Response Codes

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