/lending/v2/products/{product_id}/pricing

Actualizar configuración de precios

El endpoint lending/v2/products/{product_id}/pricing te permite modificar una actualización de precio pendiente

Parámetros disponibles

Path Parameters
product_idString
Cuerpo de solicitud
application/json
start_datestring
pricingstring

Autenticación

🔒BearerAuthhttp

Detalle de respuestas

Ejemplo de solicitud
{
  "start_date": "2024-01-01",
  "pricing": {
    "book_model": "LOCAL_CURRENCY_BOOK",
    "start_date": "2024-01-01",
    "rates": [
      {
        "kind": "FIXED",
        "name": "FINANCING",
        "type": "EFFECTIVE_MONTHLY_RATE",
        "application": {
          "percentage": 3.5
        }
      }
    ],
    "fees": [
      {
        "kind": "FLAT",
        "name": "Mantenimiento",
        "frequency": "MONTHLY",
        "operation": "CASH_ADVANCE",
        "application": {
          "unit_type": "PEN",
          "amount": 10
        }
      }
    ],
    "insurances": [
      {
        "name": "Seguro de gravamen/gravamen chileno",
        "type": "CREDIT_LIFE_INSURANCE",
        "application": {
          "percentage": 5,
          "amount": {
            "min": 100,
            "max": 500
          }
        }
      }
    ]
  }
}
Ejemplo de código
curl -X PATCH "https://api.pomelo.la/lending/v2/products/example_value/pricing" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
  "start_date": "2024-01-01",
  "pricing": {
    "book_model": "LOCAL_CURRENCY_BOOK",
    "start_date": "2024-01-01",
    "rates": [
      {
        "kind": "FIXED",
        "name": "FINANCING",
        "type": "EFFECTIVE_MONTHLY_RATE",
        "application": {
          "percentage": 3.5
        }
      }
    ],
    "fees": [
      {
        "kind": "FLAT",
        "name": "Mantenimiento",
        "frequency": "MONTHLY",
        "operation": "CASH_ADVANCE",
        "application": {
          "unit_type": "PEN",
          "amount": 10
        }
      }
    ],
    "insurances": [
      {
        "name": "Seguro de gravamen/gravamen chileno",
        "type": "CREDIT_LIFE_INSURANCE",
        "application": {
          "percentage": 5,
          "amount": {
            "min": 100,
            "max": 500
          }
        }
      }
    ]
  }
}'
Ejemplo de respuesta (200)OK
{
  "data": {
    "book_model": "LOCAL_CURRENCY_BOOK",
    "start_date": "2024-01-01",
    "rates": [
      {
        "kind": "FIXED",
        "name": "FINANCING",
        "type": "EFFECTIVE_MONTHLY_RATE",
        "application": {
          "percentage": 3.5
        }
      }
    ],
    "fees": [
      {
        "kind": "FLAT",
        "name": "Mantenimiento",
        "frequency": "MONTHLY",
        "operation": "CASH_ADVANCE",
        "application": {
          "unit_type": "PEN",
          "amount": 10
        }
      }
    ],
    "insurances": [
      {
        "name": "Seguro de gravamen/gravamen chileno",
        "type": "CREDIT_LIFE_INSURANCE",
        "application": {
          "percentage": 5,
          "amount": {
            "min": 100,
            "max": 500
          }
        }
      }
    ]
  }
}

Pomelo AI

Asistente de inteligencia artificial para consultas sobre la API de Pomelo
¡Hola!¿Cómo puedo ayudarte hoy?