Picture

Get Customer

Picture

Request Header

Name
Type
Required
Description
Ocp-Apim-Subscription-Key
String
Required

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

Request Parameter

Name
Type
Required
Description
code
Long
Required
รหัสของลูกค้า

Example Request

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

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

--header 'Authorization: Bearer <Your Access Token>'

Download postman Collection

Response

Name
Type
Description
customerId
Long
Id ลูกค้า
companyId
Integer
id บริษัท
customerCode
String
รหัสลูกค้า
customerName
String
ชื่อลูกค้า
customerType
Integer
ประเภทลูกค้า Prospect=11200, Customer=11300, Lead=11100
isActive
Boolean
ใช้งานอยู่หรือไม่
createdByUserId
String
รหัสของผู้สร้าง
dateCreated
DateTime
เวลาที่สร้าง
modifiedByUserId
String
รหัสของผู้ที่แก้ไข
dateModified
DateTime
เวลาที่แก้ไข
leadStatus
Integer
สถานะของ Lead
customerStateId
Integer
รหัสสถานะของลูกค้า
hasOwner
Boolean
dateAcquired
String
เวลาที่ได้มา
uniqueName
String
ชื่อเฉพาะ
email
String
Email ของลูกค้า
customerOwnersStr
string[]
PictureUrl
String
Url รูปภาพของลูกค้า
addresses
List<Address>
รายการที่อยู่ของลูกค้า
leadStates
Integer
สถานะ Lead
customerInterests
List<CustomerInterest>
รายการที่ลูกค้าสนใจ

Example Response

{

    "customerId": 0,

    "companyId": 0,

    "referenceId": 0,

    "customerCode": "string",

    "customerName": "string",

    "customerNameEN": "string",

    "type": 0,

    "customerType": 0,

    "taxId": "string",

    "branch": "string",

    "addressPart1": "string",

    "addressPart2": "string",

    "province": "string",

    "zipCode": "string",

    "phone": "string",

    "mobile": "string",

    "fax": "string",

    "notes": "string",

    "isActive": true,

    "dateChangeToCustomer": "2021-09-16T11:09:50.245Z",

    "createdByUserId": "string",

    "dateCreated": "2021-09-16T11:09:50.245Z",

    "modifiedByUserId": "string",

    "dateModified": "2021-09-16T11:09:50.245Z",

    "latitude": 0,

    "longitude": 0,

    "location": "string",

    "locationName": "string",

    "placeId": "string",

    "customerGroupId": 0,

    "leadStatus": 0,

    "hasPicture": true,

    "email": "string",

    "companyName": "string",

    "socialAccount": "string",

    "sourceOfLead": 0,

    "dateMerged": "2021-09-16T11:09:50.245Z",

    "mergeDetails": "string",

    "creditTerm": 0,

    "classificationId": 0,

    "customerStateId": 0,

    "hasOwner": true,

    "crispId": "string",

    "creditLimit": 0,

    "name": "string",

    "aliasNames": "string",

    "customerOwnersStr": [

      "string"

    ],

    "pictureUrl": "string",

    "addresses": [

      {

        "addressId": 0,

        "customerId": 0,

        "placeId": "string",

        "branch": "string",

        "addressPart1": "string",

        "addressPart2": "string",

        "province": "string",

        "zipCode": "string",

        "phone": "string",

        "mobile": "string",

        "fax": "string",

        "notes": "string",

        "isActive": true,

        "createdByUserId": "string",

        "dateCreated": "2021-09-16T11:09:50.245Z",

        "modifiedByUserId": "string",

        "dateModified": "2021-09-16T11:09:50.245Z",

        "latitude": 0,

        "longitude": 0,

        "location": "string",

        "locationName": "string",

        "locationMap": "string"

      }

    ],

    "customerInterests": [

      {

        "customerId": 0,

        "topicId": 0,

        "isActive": true

      }

    ]

}

Response Codes

HTTP Status Code
Business Code
Description
200
1000
Get ข้อมูลลูกค้าตาม code ที่กำหนดสำเร็จ
400
1102
code ลูกค้าไม่ถูกต้อง
401

-

access_token ผิดหรือหมดอายุ
403

-

Forbidden
© Copyright 2021 Gofive Co., Ltd. All right reserved.