# Create deal Crea una nueva negociación Endpoint: POST /retailers/api/v1/deals Version: 1.0.0 Security: api-key ## 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) - `deal.customer_id` (string) Example: "91989a87" - `deal.agent_id` (integer) - `deal.lead_status` (string) Enum: "cold", "warm", "hot" - `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 created 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 422 fields (application/json): - `errors` (string) Example: "unprocessable entity"