Picture

Deal 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
dealStageIds
Integer[]
Optional
รายการรหัสของ Deal stage
pageLength
Integer
Required
ความยาวของหน้า
skip
Integer
Optional
ข้าม
orderBy
String
Optional
จัดเรียงตาม
keyword
String
Optional
คำค้นหา

Example Request

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

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

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

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

--data-raw '{

    "dealStageIds": [

      0

    ],

    "pageLength": 0,

    "skip": 0,

    "orderBy": "string",

    "keyword": "string"

  }'

Download postman Collection

Response

Name
Type
Description
dealsId
Integer
รหัส Deal
dealNo
String
หมายเลข Deal
dealsName
String
ชื่อ Deal
customerId
Long
รหัสลูกค้า
customerName
String
ชื่อลูกค้า
customerCode
String
รหัสลูกค้า
dealsValue
Decimal
ค่าของ Deal
statusId
Integer
รหัสสถานะ
statusName
String
ชื่อสถานะ
dealStageId
Integer
dealStageName
String
notes
String
รายละเอียดเพิ่มเติม
dealQuantity
Decimal
ปริมาณ Deal
quantity
Decimal
ปริมาณ
dealMeasure
Integer
การประมาณดีล
dealMeasureUnit
Unit
หน่วยการประมาณดีล
measure
Integer
การประมาณ
measureUnit
Unit
หน่วยการประมาณ
probability
Integer
ความน่าจะเป็น
assignToUserId
String
รหัสผู้ที่ได้รับมอบหมาย
assignToUser
UserInfo
ผู้ได้รับมอบหมาย
dealsDate
DateTime
เวลาที่ Deal
expectedCloseDate
DateTime
เวลาที่ปิด Deal
dateCreated
DateTime
เวลาที่สร้าง
createByUserId
String
รหัสผู้ร้าง
dateModified
DateTime
เวลาแก้ไข
dealIndex
Integer
modifiedByUserId
String
รหัสผู้แก้ไข
modifiedByUser
UserInfo
ผู้ใช้ที่แก้ไข
pictureUrl
String
Url รูปภาพ
lastDealsState
CurrentStage

labelName
String
ป้ายชื่อ
isEdit
Boolean
สามารถแก้ไขได้หรือไม่
orderId
Long
รหัสคำสั่ง

Example Response

{

    "data": {

        "value": [

            {

                "dealsId": 0,

                "dealNo": "string",

                "dealsName": "string",

                "customerId": 0,

                "customerName": "string",

                "customerCode": "string",

                "dealsValue": 0,

                "statusId": 0,

                "statusName": "string",

                "dealStageId": 0,

                "dealStageName": "string",

                "notes": "string",

                "dealQuantity": 0,

                "quantity": 0,

                "dealMeasure": 0,

                "dealMeasureUnit": {

                    "unitId": 0,

                    "name": "string",

                    "companyId": 0,

                    "isActive": true,

                    "createdByUserId": "string",

                    "dateCreated": "2021-09-17T06:57:39.734Z",

                    "modifiedByUserId": "string",

                    "dateModified": "2021-09-17T06:57:39.734Z"

                },

                "measure": 0,

                "measureUnit": {

                    "unitId": 0,

                    "name": "string",

                    "companyId": 0,

                    "isActive": true,

                    "createdByUserId": "string",

                    "dateCreated": "2021-09-17T06:57:39.734Z",

                    "modifiedByUserId": "string",

                    "dateModified": "2021-09-17T06:57:39.734Z"

                },

                "probability": 0,

                "assignToUserId": "string",

                "assignToUser": {},

                "dealsDate": "2021-09-17T06:57:39.734Z",

                "expectedCloseDate": "2021-09-17T06:57:39.734Z",

                "closeDate": "2021-09-17T06:57:39.734Z",

                "dateFollowUp": "2021-09-17T06:57:39.734Z",

                "followUpNotes": "string",

                "dateCreated": "2021-09-17T06:57:39.734Z",

                "createByUserId": "string",

                "dateModified": "2021-09-17T06:57:39.734Z",

                "dealIndex": 0,

                "modifiedByUserId": "string",

                "modifiedByUser": {},

                "pictureUrl": "string",

                "recently": "string",

                "lastDealsState": {

                    "stateNameTH": "string",

                    "stateNameEN": "string"

                },

                "labelName": "string",

                "isEdit": true,

                "orderId": 0,

                "saleOrderId": 0,

                "calTargetDate": "2021-09-17T06:57:39.734Z"

            }

        ],

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