Skip to content

Create deal

Request

Crea una nueva negociación

Security
api-key
Bodyapplication/jsonrequired
funnel_namestringrequired
Example:"Negociaciones"
stagestringrequired
Example:"Calificado"
dealobjectrequired
curl -i -X POST \
  https://app.mercately.com/retailers/api/v1/deals \
  -H 'Content-Type: application/json' \
  -H 'api-key: YOUR_API_KEY_HERE' \
  -d '{
    "funnel_name": "Negociaciones",
    "stage": "Calificado",
    "deal": {
      "amount": "150000",
      "name": "string",
      "customer_id": "91989a87",
      "agent_id": 0,
      "lead_status": "cold",
      "opening_date": "2024-05-16",
      "expected_close_date": "2024-05-23"
    }
  }'

Responses

OK

Bodyapplication/json
messagestring
Example:"deal was created successfully"
dealobject(deal)
Response
{ "message": "deal was created successfully", "deal": { "id": "9fb882221", "name": "Neptu", "amount": "150000.0", "currency": "$", "funnel_name": "Negociaciones", "stage": "Calificado!", "agent": { … }, "customer": { … }, "channel": "string" } }