Skip to main content
POST
/
api
/
acuerdos
curl -X POST https://api.iclcotizaciones.com/api/acuerdos \
  -H "Cookie: session=your_session_token" \
  -H "Content-Type: application/json" \
  -d '{
    "cliente_id": 5,
    "cliente_final": "End Client SA",
    "tarifario": "TARIFF-2024-A",
    "desconsolidado_wm": "W/M",
    "desconsolidado_min": 50.0,
    "desconsolidado_max": 150.0,
    "agp_tn": 25.0,
    "manejo_documentos": 75.0,
    "plazo_pago": "30 days",
    "moneda": "USD"
  }'
{
  "id": 15,
  "client_id": 5,
  "end_client": "End Client SA",
  "rate_schedule": "TARIFF-2024-A",
  "deconsolidation_wm": "W/M",
  "deconsolidation_min": 50.0,
  "deconsolidation_max": 150.0,
  "agp_per_ton": 25.0,
  "document_handling": 75.0,
  "payment_terms": "30 days",
  "currency": "USD",
  "created_at": "2024-03-04T15:30:00Z",
  "updated_at": "2024-03-04T15:30:00Z"
}
Creates a new commercial agreement. This endpoint requires admin permissions.
Admin Only: Only users with admin roles (DIRECTOR, GERENTE) can create commercial agreements.

Request Body

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
default:"USD"
Currency (USD, EUR, or ARS)
curl -X POST https://api.iclcotizaciones.com/api/acuerdos \
  -H "Cookie: session=your_session_token" \
  -H "Content-Type: application/json" \
  -d '{
    "cliente_id": 5,
    "cliente_final": "End Client SA",
    "tarifario": "TARIFF-2024-A",
    "desconsolidado_wm": "W/M",
    "desconsolidado_min": 50.0,
    "desconsolidado_max": 150.0,
    "agp_tn": 25.0,
    "manejo_documentos": 75.0,
    "plazo_pago": "30 days",
    "moneda": "USD"
  }'
{
  "id": 15,
  "client_id": 5,
  "end_client": "End Client SA",
  "rate_schedule": "TARIFF-2024-A",
  "deconsolidation_wm": "W/M",
  "deconsolidation_min": 50.0,
  "deconsolidation_max": 150.0,
  "agp_per_ton": 25.0,
  "document_handling": 75.0,
  "payment_terms": "30 days",
  "currency": "USD",
  "created_at": "2024-03-04T15:30:00Z",
  "updated_at": "2024-03-04T15:30:00Z"
}

Build docs developers (and LLMs) love