Skip to main content
POST
/
api
/
v1
/
quotes
Create a new quote
curl --request POST \
  --url https://api.raul.ugps.io/api/v1/quotes \
  --header 'Content-Type: application/json' \
  --data '
{
  "prospect_name": "<string>",
  "blocks": [
    {
      "type": "sale",
      "title": "<string>",
      "items": [
        {
          "plan_id": 123,
          "plan_name": "<string>",
          "gps_name": "<string>",
          "monthly_price": 123,
          "setup_price": 123,
          "quantity": 1,
          "contract_months": 123,
          "accessories": [
            {
              "accessory_id": 123,
              "name": "<string>",
              "monthly_price": 123,
              "setup_price": 123,
              "visible_to_client": true
            }
          ]
        }
      ],
      "order": 0
    }
  ],
  "prospect_email": "<string>",
  "prospect_phone": "<string>",
  "prospect_company": "<string>",
  "client_id": "<string>",
  "currency": "UF",
  "discount_type": "percentage",
  "discount_value": 123,
  "validity_days": 15,
  "public_notes": "<string>",
  "private_notes": "<string>",
  "pipeline_stage_id": "<string>",
  "created_by": "<string>"
}
'

Body

application/json
prospect_name
string
required

Prospect/contact name

blocks
object[]
required

Quote blocks (sale/lease sections)

prospect_email
string

Prospect email

prospect_phone
string

Prospect phone

prospect_company
string

Prospect company name

client_id
string

Existing client UUID if linked

currency
enum<string>
default:UF

Currency code

Available options:
UF,
CLP
discount_type
enum<string>

Discount type

Available options:
percentage,
fixed
discount_value
number

Discount value (percentage 0-100 or fixed amount)

validity_days
number
default:15

Days until quote expires

public_notes
string

Notes visible to client in PDF

private_notes
string

Internal notes (not visible to client)

pipeline_stage_id
string

Pipeline stage UUID

created_by
string

User UUID creating the quote

Response

Quote created successfully