> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ugps.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Create a new deal



## OpenAPI

````yaml /generated/specs/sales.json post /api/v1/deals
openapi: 3.0.0
info:
  title: Raul API - Ventas
  description: >-
    Cotizaciones, pipeline, outreach comercial, equipos cotizables y ventas de
    equipamiento.
  version: 2.0.0
  contact: {}
servers:
  - url: https://api.raul.ugps.io
    description: Production
security: []
tags: []
paths:
  /api/v1/deals:
    post:
      tags:
        - Deals
      summary: Create a new deal
      operationId: DealsController_create
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateDealDto'
      responses:
        '201':
          description: Deal created successfully
components:
  schemas:
    CreateDealDto:
      type: object
      properties:
        client_id:
          type: string
          description: Client ID
        contact_id:
          type: string
          description: Contact ID
        estimated_amount:
          type: number
          description: Estimated amount in UF
          example: 150.5
        pipeline_stage_id:
          type: string
          description: Pipeline stage ID
        owner_user_id:
          type: string
          description: Owner user ID
        notes:
          type: string
          description: Notes
        name:
          type: string
          description: Deal name
          example: Fleet GPS Deal
        created_by:
          type: string
          description: Created by user ID
      required:
        - name

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.