Authorization: Bearer ********************
{
"customerCodes": [
"string"
],
"boardId": 34628319,
"dealName": "dealName",
"dealQuantity": 91493369,
"dealQuantityUnit": "unit",
"dealValue": 10,
"dealInterests": [
1001
],
"dealLabels": [
1002
],
"dealDate": "2023-02-07T16:51:40+0700",
"expectedCloseDate": "2023-02-08T16:51:40+0700",
"note": "string",
"assignTo": "staff01",
"participantCodes": [
"staff02"
],
"dateFollowUp": "2023-02-08T16:51:40+0700",
"followUpNotes": "followUp"
}
curl --location --request POST 'https://api.gofive.co.th/v1/deals' \
--header 'Ocp-Apim-Subscription-Key: <Your-Subscription-Key>' \
--header 'Content-Type: application/json' \
--data-raw '{
"customerCodes": [
"string"
],
"boardId": 34628319,
"dealName": "dealName",
"dealQuantity": 91493369,
"dealQuantityUnit": "unit",
"dealValue": 10,
"dealInterests": [
1001
],
"dealLabels": [
1002
],
"dealDate": "2023-02-07T16:51:40+0700",
"expectedCloseDate": "2023-02-08T16:51:40+0700",
"note": "string",
"assignTo": "staff01",
"participantCodes": [
"staff02"
],
"dateFollowUp": "2023-02-08T16:51:40+0700",
"followUpNotes": "followUp"
}'
{
"data": {
"value": [
{
"dealsId": 1,
"customerId": 1,
"dealNo": "string",
"dealsName": "string",
"dealsValue": 0,
"statusId": 702,
"dealStageId": 0,
"dealsDate": "string",
"expectedCloseDate": "2023-02-24T00:00:00+0700",
"probability": 0,
"notes": "string",
"isActive": true,
"boardId": 1,
"dateCreated": "2023-01-26T10:06:27+0700",
"createByUserId": "string",
"dealsInterests": [
{
"dealsId": 1,
"topicId": 1,
"isActive": true
}
],
"dealsLabels": [
{
"dealsId": 1,
"dealLabelId": 1
}
],
"dateFollowUp": "2023-02-12T00:00:00+0700",
"userId": [
"string"
],
"participantUserIds": []
}
],
"statusCode": 200
},
"statusCode": 1000,
"httpStatusCode": 200
}