API
Ambiente
- Contatos
- Campos Personalizados
- Conversas
- Tags
- Produtos
- Negócios
- Campanhas
- Dashboards
Negócios
Update Deal
PATCH
/
v3
/
deals
/
{id}
curl --request PATCH \
--url https://api4.kinbox.com.br/v3/deals/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"_id": "<string>",
"name": "<string>",
"value": 123,
"lostReason": [
"<string>"
],
"products": [
{
"id": "<string>",
"name": "<string>",
"price": 123,
"quantity": 123,
"discount": 123,
"discountType": {},
"total": 123
}
],
"lostReasonObs": "<string>",
"wonLostDate": "2023-11-07T05:31:56Z",
"dueDate": "2023-11-07T05:31:56Z",
"status": "open",
"contact": {
"id": 123,
"name": "<string>",
"avatar": "<string>",
"phone": "<string>",
"email": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"isPrivate": true
},
"conversation": {
"id": 123,
"platformId": 123,
"lastMessageAt": "2023-11-07T05:31:56Z",
"showPending": true,
"pendingAt": "<string>"
},
"operatorId": 123,
"groupId": 123,
"pipelineId": "<string>",
"stageId": "<string>",
"origin": "<string>",
"campaign": "<string>",
"authorType": "user",
"authorId": {},
"tagIds": [
123
],
"position": 123,
"focusedCounts": 123,
"tasks": {},
"timeInStage": {},
"lastStageChanged": "2023-11-07T05:31:56Z",
"comments": 123,
"context": {
"automationId": "<string>"
},
"customFields": {},
"contactId": 123
}'
{
"id": "<string>",
"_id": "<string>",
"name": "<string>",
"value": 123,
"lostReason": [
"<string>"
],
"products": [
{
"id": "<string>",
"name": "<string>",
"price": 123,
"quantity": 123,
"discount": 123,
"discountType": {},
"total": 123
}
],
"lostReasonObs": "<string>",
"wonLostDate": "2023-11-07T05:31:56Z",
"dueDate": "2023-11-07T05:31:56Z",
"status": "open",
"contact": {
"id": 123,
"name": "<string>",
"avatar": "<string>",
"phone": "<string>",
"email": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"isPrivate": true
},
"conversation": {
"id": 123,
"platformId": 123,
"lastMessageAt": "2023-11-07T05:31:56Z",
"showPending": true,
"pendingAt": "<string>"
},
"operatorId": 123,
"groupId": 123,
"pipelineId": "<string>",
"stageId": "<string>",
"origin": "<string>",
"campaign": "<string>",
"authorType": "user",
"authorId": {},
"tagIds": [
123
],
"position": 123,
"focusedCounts": 123,
"tasks": {},
"timeInStage": {},
"lastStageChanged": "2023-11-07T05:31:56Z",
"comments": 123,
"context": {
"automationId": "<string>"
},
"customFields": {},
"workspaceId": 123,
"createdAt": "2023-11-07T05:31:56Z",
"lastUpdateAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
Body
application/json
Response
200 - application/json
The response is of type object
.
curl --request PATCH \
--url https://api4.kinbox.com.br/v3/deals/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"_id": "<string>",
"name": "<string>",
"value": 123,
"lostReason": [
"<string>"
],
"products": [
{
"id": "<string>",
"name": "<string>",
"price": 123,
"quantity": 123,
"discount": 123,
"discountType": {},
"total": 123
}
],
"lostReasonObs": "<string>",
"wonLostDate": "2023-11-07T05:31:56Z",
"dueDate": "2023-11-07T05:31:56Z",
"status": "open",
"contact": {
"id": 123,
"name": "<string>",
"avatar": "<string>",
"phone": "<string>",
"email": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"isPrivate": true
},
"conversation": {
"id": 123,
"platformId": 123,
"lastMessageAt": "2023-11-07T05:31:56Z",
"showPending": true,
"pendingAt": "<string>"
},
"operatorId": 123,
"groupId": 123,
"pipelineId": "<string>",
"stageId": "<string>",
"origin": "<string>",
"campaign": "<string>",
"authorType": "user",
"authorId": {},
"tagIds": [
123
],
"position": 123,
"focusedCounts": 123,
"tasks": {},
"timeInStage": {},
"lastStageChanged": "2023-11-07T05:31:56Z",
"comments": 123,
"context": {
"automationId": "<string>"
},
"customFields": {},
"contactId": 123
}'
{
"id": "<string>",
"_id": "<string>",
"name": "<string>",
"value": 123,
"lostReason": [
"<string>"
],
"products": [
{
"id": "<string>",
"name": "<string>",
"price": 123,
"quantity": 123,
"discount": 123,
"discountType": {},
"total": 123
}
],
"lostReasonObs": "<string>",
"wonLostDate": "2023-11-07T05:31:56Z",
"dueDate": "2023-11-07T05:31:56Z",
"status": "open",
"contact": {
"id": 123,
"name": "<string>",
"avatar": "<string>",
"phone": "<string>",
"email": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"isPrivate": true
},
"conversation": {
"id": 123,
"platformId": 123,
"lastMessageAt": "2023-11-07T05:31:56Z",
"showPending": true,
"pendingAt": "<string>"
},
"operatorId": 123,
"groupId": 123,
"pipelineId": "<string>",
"stageId": "<string>",
"origin": "<string>",
"campaign": "<string>",
"authorType": "user",
"authorId": {},
"tagIds": [
123
],
"position": 123,
"focusedCounts": 123,
"tasks": {},
"timeInStage": {},
"lastStageChanged": "2023-11-07T05:31:56Z",
"comments": 123,
"context": {
"automationId": "<string>"
},
"customFields": {},
"workspaceId": 123,
"createdAt": "2023-11-07T05:31:56Z",
"lastUpdateAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
Assistant
Responses are generated using AI and may contain mistakes.