# deals/:id Actualiza una negociación Endpoint: PUT /retailers/api/v1/deals/{id} Version: 1.0.0 Security: api-key ## Path parameters: - `id` (string, required) ID de la negociación Example: "9c6d04017" ## Request fields (application/json): - `funnel_name` (string, required) Example: "Negociaciones" - `stage` (string, required) Example: "Calificado" - `deal` (object, required) - `deal.amount` (string) Example: "150000" - `deal.name` (string) Example: "Ricardo - pavo" - `deal.customer_id` (string) Example: "91989a87" - `deal.lead_status` (string) Example: "cold" - `deal.opening_date` (string) Example: "2024-05-16" - `deal.expected_close_date` (string) Example: "2024-05-23" ## Response 200 fields (application/json): - `message` (string) Example: "deal was updated successfully" - `deal` (object) - `deal.id` (string) Example: "9fb882221" - `deal.name` (string) Example: "Neptu" - `deal.amount` (string) Example: "150000.0" - `deal.currency` (string) Example: "$" - `deal.funnel_name` (string) Example: "Negociaciones" - `deal.stage` (string) Example: "Calificado!" - `deal.agent` (object) - `deal.agent.first_name` (string) Example: "Nicolas" - `deal.agent.last_name` (string) Example: "Mena Garzon" - `deal.agent.email` (string) Example: "nicolas@mercately.com" - `deal.agent.active` (boolean) Example: true - `deal.agent.admin` (boolean) Example: true - `deal.agent.supervisor` (boolean) Example: true - `deal.customer` (object) - `deal.customer.phone` (string) Example: 5933505692996 - `deal.channel` (string,null) ## Response 404 fields (application/json): - `message` (string) Example: "deal not found" ## Response 422 fields (application/json): - `errors` (string) Example: "unprocessable entity"