Endpoint
write:deals
Corpo da requisição
Exemplo de requisição
Exemplo de resposta
deal.won em webhooks configurados.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Marca um negócio como ganho (status: won).
POST /v1/deals/:id/won
write:deals
| Campo | Tipo | Obrigatório | Descrição |
|---|---|---|---|
value | number | Não | Atualiza o valor final do negócio |
closed_date | string | Não | Data de fechamento. Padrão: data atual |
reason | string | Não | Motivo do ganho. Gravado em won_reason, cortado em 200 caracteres |
curl -X POST https://api.socialsell.ai/v1/deals/664c1d2e3f4a5b6789012347/won \
-H "Authorization: Bearer sk_live_..." \
-H "Content-Type: application/json" \
-d '{
"value": 20000,
"closed_date": "2026-06-10T00:00:00.000Z",
"reason": "Melhor custo-benefício frente ao concorrente"
}'
{
"data": {
"id": "664c1d2e3f4a5b6789012347",
"title": "Proposta Enterprise ACME",
"status": "won",
"value": 20000,
"closed_date": "2026-06-10T00:00:00.000Z",
"won_reason": "Melhor custo-benefício frente ao concorrente",
"updated_at": "2026-06-10T16:00:00.000Z"
}
}
deal.won em webhooks configurados.
| Código | Status | Descrição |
|---|---|---|
INVALID_ID | 400 | ID com formato inválido |
NOT_FOUND | 404 | Negócio não encontrado |
