curl --request POST \
--url https://api.wegly.com.br/integrations/external/proposals \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"deal_code": "1032",
"title": "Proposta comercial CRM Enterprise",
"notes": "Validade de 15 dias.",
"valid_until": "2026-10-05T23:59:59.000Z",
"items": [
{
"sku": "CRM-ENT-001",
"quantity": 1,
"unit_price": 2499.9,
"name": "Licença CRM Enterprise"
}
]
}
'import requests
url = "https://api.wegly.com.br/integrations/external/proposals"
payload = {
"deal_code": "1032",
"title": "Proposta comercial CRM Enterprise",
"notes": "Validade de 15 dias.",
"valid_until": "2026-10-05T23:59:59.000Z",
"items": [
{
"sku": "CRM-ENT-001",
"quantity": 1,
"unit_price": 2499.9,
"name": "Licença CRM Enterprise"
}
]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
deal_code: '1032',
title: 'Proposta comercial CRM Enterprise',
notes: 'Validade de 15 dias.',
valid_until: '2026-10-05T23:59:59.000Z',
items: [
{
sku: 'CRM-ENT-001',
quantity: 1,
unit_price: 2499.9,
name: 'Licença CRM Enterprise'
}
]
})
};
fetch('https://api.wegly.com.br/integrations/external/proposals', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.wegly.com.br/integrations/external/proposals",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'deal_code' => '1032',
'title' => 'Proposta comercial CRM Enterprise',
'notes' => 'Validade de 15 dias.',
'valid_until' => '2026-10-05T23:59:59.000Z',
'items' => [
[
'sku' => 'CRM-ENT-001',
'quantity' => 1,
'unit_price' => 2499.9,
'name' => 'Licença CRM Enterprise'
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.wegly.com.br/integrations/external/proposals"
payload := strings.NewReader("{\n \"deal_code\": \"1032\",\n \"title\": \"Proposta comercial CRM Enterprise\",\n \"notes\": \"Validade de 15 dias.\",\n \"valid_until\": \"2026-10-05T23:59:59.000Z\",\n \"items\": [\n {\n \"sku\": \"CRM-ENT-001\",\n \"quantity\": 1,\n \"unit_price\": 2499.9,\n \"name\": \"Licença CRM Enterprise\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.wegly.com.br/integrations/external/proposals")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"deal_code\": \"1032\",\n \"title\": \"Proposta comercial CRM Enterprise\",\n \"notes\": \"Validade de 15 dias.\",\n \"valid_until\": \"2026-10-05T23:59:59.000Z\",\n \"items\": [\n {\n \"sku\": \"CRM-ENT-001\",\n \"quantity\": 1,\n \"unit_price\": 2499.9,\n \"name\": \"Licença CRM Enterprise\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.wegly.com.br/integrations/external/proposals")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"deal_code\": \"1032\",\n \"title\": \"Proposta comercial CRM Enterprise\",\n \"notes\": \"Validade de 15 dias.\",\n \"valid_until\": \"2026-10-05T23:59:59.000Z\",\n \"items\": [\n {\n \"sku\": \"CRM-ENT-001\",\n \"quantity\": 1,\n \"unit_price\": 2499.9,\n \"name\": \"Licença CRM Enterprise\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"lead": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"status": 1,
"archived_at": "2023-11-07T05:31:56Z",
"negotiation_mode": 123
},
"deal": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"status": 1,
"archived_at": "2023-11-07T05:31:56Z",
"negotiation_mode": 123
},
"code": 123,
"version": 123,
"title": "<string>",
"status": 1,
"notes": "<string>",
"is_primary": true,
"discount_type": 0,
"discount_value": 123,
"subtotal": 123,
"total": 123,
"valid_until": "2023-11-07T05:31:56Z",
"created_by": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"avatar": "<string>"
},
"approved_by": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
},
"approved_at": "2023-11-07T05:31:56Z",
"archived_at": "2023-11-07T05:31:56Z",
"rejected_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"notes_format": "MARKDOWN",
"projected_values": {
"6": 123,
"12": 123,
"18": 123,
"24": 123
},
"has_recurring_value": true,
"has_indefinite_recurring_value": true,
"has_rolling_projection": true,
"projection_calculated_at": "2023-11-07T05:31:56Z",
"projection_calculation_version": 123,
"projection_source": "<string>",
"items": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"product_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"product": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"code": "<string>",
"name": "<string>",
"image": "<string>"
},
"name": "<string>",
"description": "<string>",
"unit": 123,
"quantity": 123,
"unit_price": 123,
"discount_type": 0,
"discount_value": 123,
"subtotal": 123,
"total": 123,
"notes": "<string>",
"internal_notes": "<string>",
"is_recurring_default": true,
"billing_interval_default": 123,
"contract_term_months": 123,
"start_date": "2023-11-07T05:31:56Z",
"end_date": "2023-11-07T05:31:56Z",
"billing_cycles": 123,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"position": 123,
"billing_interval_count": 123,
"recurring_payment_method": 1,
"custom_fields": [
{
"field_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"type": "TEXT",
"position": 123,
"is_required": true,
"is_visible_in_documents": true,
"options": [
"<string>"
],
"value": "<string>"
}
],
"category_values": [
{
"category_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"category_name": "<string>",
"category_type": "TEXT",
"position": 123,
"options": [
"<string>"
],
"value": "<string>"
}
]
}
],
"payment_options": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"description": "<string>",
"position": 123,
"discount_type": 0,
"discount_value": 123,
"subtotal": 123,
"total": 123,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"installments": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"label": "<string>",
"position": 123,
"amount": 123,
"percentage": 123,
"due_date": "2023-11-07T05:31:56Z",
"due_in_days": 123,
"notes": "<string>",
"payment_method": 1,
"payment_method_installments": 123,
"card_receipt_mode": 1,
"payment_method_notes": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
]
}
],
"custom_fields": [
{
"field_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"field_name": "<string>",
"field_type": 0,
"position": 123,
"is_required": true,
"min_checkbox_selections": 123,
"max_checkbox_selections": 123,
"section_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"section": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"position": 123
},
"options": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"value": "<string>",
"position": 123
}
],
"answers": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"value": "<string>",
"option_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"option_value": "<string>",
"boolean_value": true
}
]
}
],
"delivery_schedule": {
"starts_on": "2023-12-25",
"effective_starts_on": "2023-12-25",
"is_dynamic": true,
"timezone": "<string>",
"calculation_version": 123,
"final_qualifier": "EXACT",
"declared_total": "<string>",
"declared_totals": [
{
"quantity": 123,
"unit": "DAYS",
"counting_mode": "CALENDAR"
}
],
"estimated_delivery_date": "2023-12-25",
"estimated_delivery_is_business_day": true,
"suggested_next_business_date": "2023-12-25",
"elapsed_calendar_days": 123,
"business_days_notice": "Dias úteis consideram somente segunda a sexta-feira; feriados não são considerados.",
"deadlines": [
{
"unit": "DAYS",
"quantity": 18263,
"counting_mode": "CALENDAR",
"stage": "<string>",
"qualifier": "EXACT",
"notes": "<string>",
"position": 123,
"cumulative_qualifier": "EXACT",
"estimated_start_date": "2023-12-25",
"estimated_end_date": "2023-12-25",
"estimated_end_is_business_day": true,
"suggested_next_business_date": "2023-12-25"
}
]
}
}{
"statusCode": 123,
"message": "<string>",
"error": "<string>"
}Criação de proposta
Cria uma proposta comercial usando o usuário criador da chave como ator. Exige ao menos um item e exatamente um contexto: lead_id ou negócio (deal_id/deal_code). O contexto deve estar aberto e permitir negociação por proposta. Se deal_id e deal_code forem enviados juntos, deal_id prevalece. Itens sem product_id podem resolver produtos por sku; também aceitam item livre ou criação inline por new_product. Negócios com produtos associados bloqueiam a criação. Inclui suporte a custom_fields e delivery_schedule; retorna os detalhes completos.
curl --request POST \
--url https://api.wegly.com.br/integrations/external/proposals \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"deal_code": "1032",
"title": "Proposta comercial CRM Enterprise",
"notes": "Validade de 15 dias.",
"valid_until": "2026-10-05T23:59:59.000Z",
"items": [
{
"sku": "CRM-ENT-001",
"quantity": 1,
"unit_price": 2499.9,
"name": "Licença CRM Enterprise"
}
]
}
'import requests
url = "https://api.wegly.com.br/integrations/external/proposals"
payload = {
"deal_code": "1032",
"title": "Proposta comercial CRM Enterprise",
"notes": "Validade de 15 dias.",
"valid_until": "2026-10-05T23:59:59.000Z",
"items": [
{
"sku": "CRM-ENT-001",
"quantity": 1,
"unit_price": 2499.9,
"name": "Licença CRM Enterprise"
}
]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
deal_code: '1032',
title: 'Proposta comercial CRM Enterprise',
notes: 'Validade de 15 dias.',
valid_until: '2026-10-05T23:59:59.000Z',
items: [
{
sku: 'CRM-ENT-001',
quantity: 1,
unit_price: 2499.9,
name: 'Licença CRM Enterprise'
}
]
})
};
fetch('https://api.wegly.com.br/integrations/external/proposals', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.wegly.com.br/integrations/external/proposals",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'deal_code' => '1032',
'title' => 'Proposta comercial CRM Enterprise',
'notes' => 'Validade de 15 dias.',
'valid_until' => '2026-10-05T23:59:59.000Z',
'items' => [
[
'sku' => 'CRM-ENT-001',
'quantity' => 1,
'unit_price' => 2499.9,
'name' => 'Licença CRM Enterprise'
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.wegly.com.br/integrations/external/proposals"
payload := strings.NewReader("{\n \"deal_code\": \"1032\",\n \"title\": \"Proposta comercial CRM Enterprise\",\n \"notes\": \"Validade de 15 dias.\",\n \"valid_until\": \"2026-10-05T23:59:59.000Z\",\n \"items\": [\n {\n \"sku\": \"CRM-ENT-001\",\n \"quantity\": 1,\n \"unit_price\": 2499.9,\n \"name\": \"Licença CRM Enterprise\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.wegly.com.br/integrations/external/proposals")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"deal_code\": \"1032\",\n \"title\": \"Proposta comercial CRM Enterprise\",\n \"notes\": \"Validade de 15 dias.\",\n \"valid_until\": \"2026-10-05T23:59:59.000Z\",\n \"items\": [\n {\n \"sku\": \"CRM-ENT-001\",\n \"quantity\": 1,\n \"unit_price\": 2499.9,\n \"name\": \"Licença CRM Enterprise\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.wegly.com.br/integrations/external/proposals")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"deal_code\": \"1032\",\n \"title\": \"Proposta comercial CRM Enterprise\",\n \"notes\": \"Validade de 15 dias.\",\n \"valid_until\": \"2026-10-05T23:59:59.000Z\",\n \"items\": [\n {\n \"sku\": \"CRM-ENT-001\",\n \"quantity\": 1,\n \"unit_price\": 2499.9,\n \"name\": \"Licença CRM Enterprise\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"lead": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"status": 1,
"archived_at": "2023-11-07T05:31:56Z",
"negotiation_mode": 123
},
"deal": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"status": 1,
"archived_at": "2023-11-07T05:31:56Z",
"negotiation_mode": 123
},
"code": 123,
"version": 123,
"title": "<string>",
"status": 1,
"notes": "<string>",
"is_primary": true,
"discount_type": 0,
"discount_value": 123,
"subtotal": 123,
"total": 123,
"valid_until": "2023-11-07T05:31:56Z",
"created_by": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"avatar": "<string>"
},
"approved_by": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
},
"approved_at": "2023-11-07T05:31:56Z",
"archived_at": "2023-11-07T05:31:56Z",
"rejected_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"notes_format": "MARKDOWN",
"projected_values": {
"6": 123,
"12": 123,
"18": 123,
"24": 123
},
"has_recurring_value": true,
"has_indefinite_recurring_value": true,
"has_rolling_projection": true,
"projection_calculated_at": "2023-11-07T05:31:56Z",
"projection_calculation_version": 123,
"projection_source": "<string>",
"items": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"product_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"product": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"code": "<string>",
"name": "<string>",
"image": "<string>"
},
"name": "<string>",
"description": "<string>",
"unit": 123,
"quantity": 123,
"unit_price": 123,
"discount_type": 0,
"discount_value": 123,
"subtotal": 123,
"total": 123,
"notes": "<string>",
"internal_notes": "<string>",
"is_recurring_default": true,
"billing_interval_default": 123,
"contract_term_months": 123,
"start_date": "2023-11-07T05:31:56Z",
"end_date": "2023-11-07T05:31:56Z",
"billing_cycles": 123,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"position": 123,
"billing_interval_count": 123,
"recurring_payment_method": 1,
"custom_fields": [
{
"field_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"type": "TEXT",
"position": 123,
"is_required": true,
"is_visible_in_documents": true,
"options": [
"<string>"
],
"value": "<string>"
}
],
"category_values": [
{
"category_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"category_name": "<string>",
"category_type": "TEXT",
"position": 123,
"options": [
"<string>"
],
"value": "<string>"
}
]
}
],
"payment_options": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"description": "<string>",
"position": 123,
"discount_type": 0,
"discount_value": 123,
"subtotal": 123,
"total": 123,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"installments": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"label": "<string>",
"position": 123,
"amount": 123,
"percentage": 123,
"due_date": "2023-11-07T05:31:56Z",
"due_in_days": 123,
"notes": "<string>",
"payment_method": 1,
"payment_method_installments": 123,
"card_receipt_mode": 1,
"payment_method_notes": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
]
}
],
"custom_fields": [
{
"field_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"field_name": "<string>",
"field_type": 0,
"position": 123,
"is_required": true,
"min_checkbox_selections": 123,
"max_checkbox_selections": 123,
"section_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"section": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"position": 123
},
"options": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"value": "<string>",
"position": 123
}
],
"answers": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"value": "<string>",
"option_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"option_value": "<string>",
"boolean_value": true
}
]
}
],
"delivery_schedule": {
"starts_on": "2023-12-25",
"effective_starts_on": "2023-12-25",
"is_dynamic": true,
"timezone": "<string>",
"calculation_version": 123,
"final_qualifier": "EXACT",
"declared_total": "<string>",
"declared_totals": [
{
"quantity": 123,
"unit": "DAYS",
"counting_mode": "CALENDAR"
}
],
"estimated_delivery_date": "2023-12-25",
"estimated_delivery_is_business_day": true,
"suggested_next_business_date": "2023-12-25",
"elapsed_calendar_days": 123,
"business_days_notice": "Dias úteis consideram somente segunda a sexta-feira; feriados não são considerados.",
"deadlines": [
{
"unit": "DAYS",
"quantity": 18263,
"counting_mode": "CALENDAR",
"stage": "<string>",
"qualifier": "EXACT",
"notes": "<string>",
"position": 123,
"cumulative_qualifier": "EXACT",
"estimated_start_date": "2023-12-25",
"estimated_end_date": "2023-12-25",
"estimated_end_is_business_day": true,
"suggested_next_business_date": "2023-12-25"
}
]
}
}{
"statusCode": 123,
"message": "<string>",
"error": "<string>"
}Authorizations
Chave de integração com prefixo wegly_, enviada em Authorization: Bearer . Não é JWT. A chave deve estar ativa, não excluída e dentro da validade. Com allowed_domain, Origin (ou Referer na ausência de Origin) precisa informar o hostname permitido. A empresa e as permissões são obtidas pela chave.
Body
- Option 1
- Option 2
- Option 3
Exige items e exatamente um contexto: lead_id OU negócio (deal_id/deal_code). Contextos ganhos, perdidos, arquivados ou em modo de negociação incompatível bloqueiam criação.
1No POST, cria itens. No PUT, sem id adiciona, com id atualiza e com id + delete=true remove; itens omitidos são preservados. Ao menos um item deve permanecer. quantity é obrigatória nos itens enviados que não sejam remoções.
- Option 1
- Option 2
Show child attributes
Show child attributes
Código público numérico do negócio, enviado como string. Evite enviar junto com deal_id: no POST o ID prevalece; no PUT o código prevalece.
501501 = negociação, 2 = aprovada, 3 = rejeitada, 4 = arquivada, 5 = dispensada.
1, 2, 3, 4, 5 0 = percentual, 1 = valor fixo.
0, 1 x >= 0Must be a multiple of 0.01UUID da pessoa aprovadora vinculada à empresa; não é o ID de usuário do CRM.
Conjunto completo de respostas de proposta, validado contra campos ativos e obrigatórios. No PUT, omitir preserva; enviar substitui o conjunto e [] só é válido se não houver obrigatórios pendentes.
Show child attributes
Show child attributes
Cronograma integral, com etapas sequenciais na ordem do array. Dias úteis são segunda a sexta, sem feriados; o horizonte total não pode ultrapassar 100 anos.
Show child attributes
Show child attributes
Response
Proposta criada com sucesso.
Retorno de POST, PUT e GET por ID. Inclui itens, condições de pagamento, campos personalizados e cronograma; não inclui items_count nem payment_options_count.
Lead ou negócio de origem da proposta.
Show child attributes
Show child attributes
Lead ou negócio de origem da proposta.
Show child attributes
Show child attributes
1 = negociação, 2 = aprovada, 3 = rejeitada, 4 = arquivada, 5 = dispensada.
1, 2, 3, 4, 5 0 = percentual, 1 = valor fixo.
0, 1 Show child attributes
Show child attributes
Show child attributes
Show child attributes
Formato resolvido das observações. Ao enviar notes pela API externa, o serviço detecta HTML; caso contrário usa MARKDOWN.
MARKDOWN, HTML Projeções para horizontes de 6, 12, 18 e 24 meses. Registros de cálculo legado usam total como fallback.
Show child attributes
Show child attributes
Origem do cálculo, por exemplo DIRECT_ITEMS ou LEGACY_CURRENT_VALUE.
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Todas as definições ativas de proposta, mesmo quando answers está vazio.
Show child attributes
Show child attributes
Show child attributes
Show child attributes
