Picture

Activities 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
orgString
String
Optional

staffCodes
List<string>
Optional
รายการรหัสบุคลากร
customerCodes
List<string>
Optional
รายการรหัสลูกค้า
statusIds
List<string>
Optional
รายการรหัสสถานะ
keyActivities
List<string>
Optional
dateStart
DateTime
Optional
วันที่เริ่มกิจกรรม
dateEnd
DateTime
Optional
วันที่สิ้นสุดกิจกรรม

Example Request

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

--header 'Ocp-Apim-Subscription-Key: ' \

--header 'Authorization: Bearer ' \

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

--data-raw '{

    "orgString": "string",

    "staffCodes": [

        "string"

    ],

    "customerCodes": [

        "string"

    ],

    "statusIds": [

        0

    ],

    "keyActivities": [

        0

    ],

    "dateStart": "string",

    "dateEnd": "string"

}'

Download postman Collection

Response

Name
Type
Description
activityId
Long
รหัสกิจกรรม
userId
String
รหัสผู้ใช้
groupId
Integer
รหัสกลุ่ม
planStart
Datetime
วันที่เริ่มแผน
planEnd
Datetime
วันสิ้นสุดของแผน
dateStart
DateTime
วันที่เริ่ม
dateEnd
DateTime
วันสิ้นสุด
keyActivity
String
กิจกรรมหลัก
locationName
String
ชื่อสถานที่
staffName
String
ชื่อของ Staff
statusName
String
ชื่อสถานะ
statusId
Integer
รหัสสถานะ
dateProfileModified
DateTime
เวลาแก้ไข Modified
visitPlaceId
Integer

longitude
Decimal
ลองจิจูด
latitude
Decimal
ละติจูด

Example Response

{

    "data": [

        {

            "activityId": 0,

            "userId": "string",

            "groupId": 0,

            "planStart": "2021-09-16T09:46:42.322Z",

            "planEnd": "2021-09-16T09:46:42.322Z",

            "dateStart": "2021-09-16T09:46:42.322Z",

            "dateEnd": "2021-09-16T09:46:42.322Z",

            "keyActivity": "string",

            "locationName": "string",

            "location": "string",

            "staffName": "string",

            "statusName": "string",

            "statusId": 0,

            "dateProfileModified": "2021-09-16T09:46:42.322Z",

            "customerId": 0,

            "customerName": "string",

            "note": "string",

            "subject": "string",

            "visitPlaceId": "string",

            "latitude": 0,

            "longitude": 0

        }

    ]

}

Response Codes

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