curl --location --request POST 'https://api.veniocrm.com/dev/v1/Deals' \
--header 'Ocp-Apim-Subscription-Key;<Your Subscription-Key>' \
--header 'Authorization: Bearer <Your access_token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"customerCodes": [
"string"
],
"dealStageId": 0,
"dealInterests": [
0
],
"dealName": "string",
"dealValue": 0,
"note": "string",
"dealDate": "string",
"expectedCloseDate": "string",
"assignTo": "string",
"participantCodes": [
"string"
],
"probability": 0,
"labelNames": [
"string"
],
"dateFollowUp": "string"
}'
{
"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
}