Picture

Update Deal

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 Parameters

Name
Type
Required
Description
dealId
Integer
Required
รหัส Deal

Request Body

Name
Type
Required
Description
labelNames
String[]
Optional
ชื่อป้ายกำกับ
dealStageId
Integer
Optional
รหัสของ DealStage
dealInterests
Integer[]
Optional
รายการ Deal ที่สนใจ
dealName
String
Optional
ชื่อ Deal
dealValue
Integer
Optional
ค่าของ Deal
note
String
Optional
รายละเอียดเพิ่มเติม
dealDate
DateTime
Optional
เวลาข้อเสนอ
expectedCloseDate
DateTime
Optional
วันที่คาดว่าจะปิด
dateFollowUp
DateTime
Optional
เวลาติดตาม
participantCodes
String[]
Optional
รายการรหัสผู้เข้าร่วม
probability
Integer
Optional
ความน่าจะเป็น

Example Request

curl --location -g --request PUT 'https: //api.veniocrm.com/dev/v1/Deals/{id}' \

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

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

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

--data-raw '{

    "dealStageId": 0,

    "dealInterests": [

        0

    ],

    "dealName": "string",

    "dealValue": 0,

    "note": "string",

    "dealDate": "2021-09-17T06:52:03.606Z",

    "expectedCloseDate": "2021-09-17T06:52:03.606Z",

    "participantCodes": [

        "string"

    ],

    "probability": 0,

    "labelNames": [

        "string"

    ],

    "dateFollowUp": "2021-09-17T06:52:03.606Z"

}'

Download postman Collection

Response

Name
Type
Description
dealsId
Integer
รหัส Deal
customerId
Integer
รหัลูกค้า
dealNo
String
หมายเลขดีล
dealsName
String
ชื่อดีล
dealsValue
Integer
ค่าของดีล
statusId
Integer
รหัสสถานะ
dealStageId
Boolean
รหัสขั้นตอนของดีล
dealsIndex
String
ลำดับดีล
dealsDate
DateTime
วันที่ดีล
expectedCloseDate
DateTime
วันที่คาดว่าจะปิด
probability
Integer
ความน่าจะเป็น
notes
String
รายละเอียดเพิ่มเติม
isActive
Boolean
ใช้งานอยู่หรือไม่
boardId
Integer
รหัส Board
dateCreated
DateTime
เวลาที่สร้าง
createByUserId
Integer
รหัสผู้สร้าง
dateModified
DateTime
เวลาที่แก้ไข
modifiedByUserId
String
รหัสผู้แก้ไข
measure
Integer
ค่าประมาณ
customer
Customer
ลูกค้า
dealStage
DealStage
ขั้นตอนของดีล
dealsInterests
DealsInterest[]
รายการดีลที่สนใจ
dealsLabels
DealsLabel[]
รายการป้ายดีล
isAction
Boolean

isEdit
Boolean
แก้ไขได้หรือไม่
isDelete
Boolean

statusName
String
ชื่อสถานะ
user
UserInfo
ข้อมูลผู้ใช้งาน
dealSummary
DealSummary

measureUnit
Unit
หน่วยค่าประมาณ
currentStage
CurrentStage

dateFollowUp
DateTime
เวลาที่ติดตาม
userId
String[]
รายการรหัสผู้ใช้งาน
customerIds
String[]
รายการรหัสลูกค้า
participantUserIds
String[]
รายการรหัสผู้เข้าใช้งาน

Example Response

{

    "data": {

        "value": {

            "dealsId": 0,

            "customerId": 0,

            "dealNo": "string",

            "dealsName": "string",

            "dealsValue": 0,

            "statusId": 0,

            "dealStageId": 0,

            "dealsIndex": 0,

            "dealsDate": "2021-09-17T04:37:04.849Z",

            "expectedCloseDate": "2021-09-17T04:37:04.849Z",

            "probability": 0,

            "notes": "string",

            "isActive": true,

            "boardId": 0,

            "dateCreated": "2021-09-17T04:37:04.849Z",

            "createByUserId": "string",

            "dateModified": "2021-09-17T04:37:04.849Z",

            "modifiedByUserId": "string",

            "measure": 0,

            "customer": {},

            "dealStage": {

                "dealStageId": 0,

                "stageName": "string",

                "dateCreated": "2021-09-17T04:37:04.850Z",

                "createByUserId": "string",

                "dateModified": "2021-09-17T04:37:04.850Z",

                "modifiedByUserId": "string",

                "isActive": true,

                "companyId": 0,

                "seq": 0,

                "boardId": 0

            },

            "dealsInterests": [

                {

                    "dealsId": 0,

                    "topicId": 0,

                    "isActive": true

                }

            ],

            "dealsLabels": [

                {

                    "dealsId": 0,

                    "dealLabelId": 0,

                    "isActive": true

                }

            ],

            "isAction": true,

            "isEdit": true,

            "isDelete": true,

            "statusName": "string",

            "user": {},

            "dealSummary": {

                "probability": 0,

                "dealValue": 0,

                "expectedCloseDate": "2021-09-17T04:37:04.850Z"

            },

            "measureUnit": {

                "unitId": 0,

                "name": "string",

                "companyId": 0,

                "isActive": true,

                "createdByUserId": "string",

                "dateCreated": "2021-09-17T04:37:04.850Z",

                "modifiedByUserId": "string",

                "dateModified": "2021-09-17T04:37:04.850Z"

            },

            "currentStage": {

                "dealStageId": 0,

                "stageName": "string",

                "dateChangeStage": "2021-09-17T04:37:04.850Z"

            },

            "dateFollowUp": "2021-09-17T04:37:04.850Z",

            "userId": [

                "string"

            ],

            "customerIds": [

                0

            ],

            "participantUserIds": [

                "string"

            ]

        },

        "formatters": [],

        "statusCode": 200

    },

    "statusCode": 1000,

    "httpStatusCode": 200

}

Response Codes

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