Picture

Customer 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
ccustomerType
Integer
Required
ประเภทลูกค้า Lead=11100, Prospect=11200, Customer=11300
latitude
Double
Optional
ละติจูด
longitude
Double
Optional
ลองจิจูด
distanceLimit
Double
Optional
states
Integer
Optional
สถานะลูกค้า
actionStates
Integer
Optional
ownerTeams
Integer
Optional
1 = All, 2 = Assigned, Else = Team Id
displayColumns
String[]
Optional
See available columns
topicInterests
String[]
Optional
รายการหัวข้อที่สนใจ
owners
String[]
Optional
รายการ Owner
classifications
Long[]
Optional
รายการหมวดหมู่
groups
Integer[]
Optional
Lead/Prospect/Customer group ids
statuses
Boolean[]
Optional
รายการสถานะ
probabilities
Integer[]
Optional
รายการความน่าจะเป็น
pageLength
Integer
Required
ความยาวของหน้า
skip
Integer
Optional
จำนวนที่ข้าม
orderBy
String
Optional
จัดเรียงโดย
keyword
String
Optional
คำค้นหา

Example Request

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

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

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

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

--data-raw '{

    "customerType": 11100,

    "latitude": 0.0,

    "longitude": 0.0,

    "distanceLimit": 0.0,

    "states": 0,

    "actionStates": 0,

    "ownerTeams": 0,

    "displayColumns": [

        "string"

    ],

    "topicInterests": [

        0

    ],

    "owners": [

        "string"

    ],

    "classifications": [

        0

    ],

    "groups": [

        0

    ],

    "statuses": [

        true

    ],

    "probabilities": [

        0

    ],

    "pageLength": 0,

    "skip": 0,

    "orderBy": "string",

    "keyword": "string"

}'

Download postman Collection

Response

Name
Type
Description
customerId
Long
รหัส Id ลูกค้า
customerName
String
ชื่อของลูกค้า
owners
List<CustomerOwner>
รายการ Owner
topicInterests
TopicInterestViewModel
รายการหัวข้อที่สนใจ
latestUpdateByUser
String
Update ล่าสุดโดยใคร
latestUpdateType
String
ประเภท Update ล่าสุด
dateLatestUpdated
DateTime
เวลา Update ล่าสุด
activityStats
List<CustomerStatItem>
รายการสถานะกิจกรรม
pictureUrl
String
Url รูปภาพ
uniqueName
String
ชื่อเฉพาะ
dateAcquired
Long
เวลาทีได้รับ
leadStatus
Integer
สถานะของ Lead
currentStateId
Integer
รหัสสถานะปัจจุบัน
currentStateName
String
ชื่อสถานะปัจจุบัน

Example Response

{

    "data": {

        "value": [

            {

                "customerId": xxxx,

                "customerName": string,

                "owners": [],

                "topicInterests": [

                    {

                        "topicId": x,

                        "topicName": string

                    }

                ],

                "latestUpdateByUser": string,

                "latestUpdateType": string,

                "dateLatestUpdated": DateTime,

                "activityStats": [

                    {

                        "type": string

                    }

                ],

                "pictureUrl": "Customer/xxxx/Thumbnail?v=xxxxxxxxxxxx",

                "uniqueName": string,

                "dateAcquired": xxxx,

                "leadState": x,

                "currentStateId": xxxxx,

                "currentStateName": 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.