/lending/v1/products/{product_id}

Actualizar un producto

El endpoint lending/v1/products/{id} te permite actualizar los datos de un producto en específico.

Parámetros disponibles

Path Parameters
product_idString
Cuerpo de solicitud
application/json
namestring
statusenum
start_datestring
end_datestring
grace_period_daysobject2 propiedades
credit_cardobject6 propiedades
statementobject2 propiedades
refinancingobject2 propiedades
cancellationobject2 propiedades

Detalle de respuestas

Ejemplo de solicitud
{
  "name": "example_value",
  "status": "ACTIVE",
  "start_date": "2022-01-01",
  "end_date": "2027-04-20",
  "grace_period_days": {
    "pausing": 5,
    "interest_accrual": 10
  },
  "credit_card": {
    "max_allowed_installments": 1,
    "limits": "example_value",
    "billing_cycle_config": {
      "allowed_due_dates": [
        1,
        5,
        15
      ],
      "minimum_days_between_closing_and_due_dates": 5,
      "minimum_days_until_first_closing_date": 10
    },
    "minimum_payment": 100,
    "minimum_payment_composition": {
      "revolving": 50,
      "cash_advances": 30,
      "financing": 80,
      "annuities": 100,
      "purchases": 20
    },
    "affinity_group_id": "example_value"
  },
  "statement": {
    "generate_pdf": "true",
    "include_annual_legend": "true"
  },
  "refinancing": {
    "mandatory": {
      "enabled": true,
      "settings": {
        "type": "INCLUDE_CURRENT_DEBT",
        "installments": 6
      }
    },
    "manual": {
      "enabled": false,
      "type": "STACKING",
      "number_of_parallel_refinancing_to_apply": 2,
      "options": [
        {
          "quantity": 12,
          "rate": "1.5"
        }
      ],
      "minimum_value_to_apply": "500.0"
    }
  },
  "cancellation": {
    "enabled": "true",
    "delinquency_days_amount": 6
  }
}
Ejemplo de código
curl -X PATCH "https://api.pomelo.la/lending/v1/products/example_value" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
  "name": "example_value",
  "status": "ACTIVE",
  "start_date": "2022-01-01",
  "end_date": "2027-04-20",
  "grace_period_days": {
    "pausing": 5,
    "interest_accrual": 10
  },
  "credit_card": {
    "max_allowed_installments": 1,
    "limits": "example_value",
    "billing_cycle_config": {
      "allowed_due_dates": [
        1,
        5,
        15
      ],
      "minimum_days_between_closing_and_due_dates": 5,
      "minimum_days_until_first_closing_date": 10
    },
    "minimum_payment": 100,
    "minimum_payment_composition": {
      "revolving": 50,
      "cash_advances": 30,
      "financing": 80,
      "annuities": 100,
      "purchases": 20
    },
    "affinity_group_id": "example_value"
  },
  "statement": {
    "generate_pdf": "true",
    "include_annual_legend": "true"
  },
  "refinancing": {
    "mandatory": {
      "enabled": true,
      "settings": {
        "type": "INCLUDE_CURRENT_DEBT",
        "installments": 6
      }
    },
    "manual": {
      "enabled": false,
      "type": "STACKING",
      "number_of_parallel_refinancing_to_apply": 2,
      "options": [
        {
          "quantity": 12,
          "rate": "1.5"
        }
      ],
      "minimum_value_to_apply": "500.0"
    }
  },
  "cancellation": {
    "enabled": "true",
    "delinquency_days_amount": 6
  }
}'
Ejemplo de respuesta (200)OK
{
  "data": {
    "id": "lpr-2HMvSzWjc5La6WDTlgFweXAmPle",
    "type": "CREDIT_CARD",
    "name": "Gold Credit Card",
    "status": "PAUSED",
    "country": "BRA",
    "start_date": "2022-04-20",
    "end_date": "2024-05-17",
    "credit_card": {
      "max_allowed_installments": 1,
      "limits": {
        "type": "SINGLE",
        "range": {
          "min": "1000.00",
          "max": "50000.00"
        },
        "cash_advance_range_percentage": {
          "min": "1000.00",
          "max": "50000.00"
        }
      },
      "billing_cycle_config": {
        "allowed_due_dates": [
          1,
          5,
          15
        ],
        "minimum_days_between_closing_and_due_dates": 5,
        "minimum_days_until_first_closing_date": 10
      },
      "minimum_payment": 100,
      "minimum_payment_composition": {
        "revolving": 50,
        "cash_advances": 30,
        "financing": 80,
        "annuities": 100,
        "purchases": 20
      },
      "affinity_group_id": "afg-20MpN8vmIPj77ujhb9cSeXAmPLe"
    },
    "grace_period_days": {
      "pausing": 0,
      "interest_accrual": 0
    },
    "pricing": {
      "start_date": "2022-04-30",
      "rates": {
        "financing": "15.00",
        "late_fee": "25.00",
        "cash_advance": "50.00",
        "revolving": "100.00",
        "revolving_by_limit": [
          {
            "from_amount": "0",
            "unit_type": "CLP",
            "rate": "100.00"
          }
        ]
      },
      "fees": [
        {
          "name": "Maintenance",
          "amount": "15.00",
          "currency": "CPL",
          "frequency": "MONTHLY",
          "operation": "CASH_ADVANCE",
          "type": "UF"
        }
      ]
    },
    "available_balance_settings": "RESTRICTED",
    "statement": {
      "generate_pdf": "true",
      "include_annual_legend": "true"
    },
    "refinancing": {
      "mandatory": {
        "enabled": true,
        "settings": {
          "type": "INCLUDE_CURRENT_DEBT",
          "installments": 6
        }
      },
      "manual": {
        "enabled": false,
        "type": "STACKING",
        "number_of_parallel_refinancing_to_apply": 2,
        "options": [
          {
            "quantity": 12,
            "rate": "1.5"
          }
        ],
        "minimum_value_to_apply": "500.0"
      }
    },
    "cancellation": {
      "enabled": "true",
      "delinquency_days_amount": 6
    }
  }
}

Pomelo AI

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