Skip to main content
PUT
/
api
/
acuerdos
/
:id
curl -X PUT https://api.iclcotizaciones.com/api/acuerdos/15 \
  -H "Cookie: session=your_session_token" \
  -H "Content-Type: application/json" \
  -d '{
    "plazo_pago": "45 days",
    "maximo_descontar": 15.0,
    "observaciones": "Updated payment terms for priority client"
  }'
{
  "id": 15,
  "client_id": 5,
  "end_client": "End Client SA",
  "rate_schedule": "TARIFF-2024-A",
  "payment_terms": "45 days",
  "max_discount": 15.0,
  "notes": "Updated payment terms for priority client",
  "currency": "USD",
  "updated_at": "2024-03-04T16:45:00Z"
}
Updates an existing commercial agreement. This endpoint requires admin permissions.
Admin Only: Only users with admin roles (DIRECTOR, GERENTE) can update commercial agreements.

Path Parameters

id
integer
required
The unique identifier of the commercial agreement to update

Request Body

All fields are optional. Only provided fields will be updated.
cliente_id
integer
Client ID to associate with this agreement
cliente_final
string
End client name
tarifario
string
Rate schedule identifier
desconsolidado_wm
string
Deconsolidation weight/measurement type
desconsolidado_min
number
Minimum deconsolidation rate
desconsolidado_max
number
Maximum deconsolidation rate
observ_desco
string
Deconsolidation notes
agp_tn
number
AGP per ton rate
manejo_documentos
number
Document handling fee
log_fee
number
Logistics fee
doc_fee
number
Documentation fee
certflete
number
Freight certificate fee
seguro_porcentaje
number
Insurance percentage
seguro_min
number
Minimum insurance amount
emision_bl
number
Bill of lading emission fee
plazo_pago
string
Payment terms
maximo_descontar
number
Maximum discount allowed
comision
number
Commission rate
incentivo
number
Incentive amount
datos_cotizar
string
Quote data
observaciones
string
General notes
vendedor_id
integer
Salesperson user ID
ultima_mod
string
Last modification date
tarifario_fiscal
string
Fiscal rate schedule
moneda
string
Currency (USD, EUR, or ARS)
curl -X PUT https://api.iclcotizaciones.com/api/acuerdos/15 \
  -H "Cookie: session=your_session_token" \
  -H "Content-Type: application/json" \
  -d '{
    "plazo_pago": "45 days",
    "maximo_descontar": 15.0,
    "observaciones": "Updated payment terms for priority client"
  }'
{
  "id": 15,
  "client_id": 5,
  "end_client": "End Client SA",
  "rate_schedule": "TARIFF-2024-A",
  "payment_terms": "45 days",
  "max_discount": 15.0,
  "notes": "Updated payment terms for priority client",
  "currency": "USD",
  "updated_at": "2024-03-04T16:45:00Z"
}

Build docs developers (and LLMs) love