PATCH
/lending/v2/products/{product_id}Actualizar un producto
El endpoint lending/v2/products/{product_id} te permite actualizar los datos de un producto en específico.
Parámetros disponibles
Path Parameters
product_idStringrequired
Cuerpo de solicitud
application/jsonnamestring
lifecycleobject2 propiedades
credit_cardobject0 propiedades
Autenticación
🔒BearerAuthhttp
Detalle de respuestas
Ejemplo de solicitud
{
"name": "Tarjeta de crédito Premium Actualizada",
"lifecycle": {
"status": "ACTIVE",
"offer": {
"start_date": "2024-01-01",
"end_date": "2024-12-31"
}
},
"credit_card": {
"currency_configuration_scope": "SINGLE_CURRENCY",
"lifecycle": {
"arrears": {
"actions": {
"pause_credit_line": {
"after_days_past_due": 5
},
"block_credit_line": {
"after_days_past_due": 5
},
"cancel_credit_line": {
"after_days_past_due": 5
}
}
}
},
"installments": {
"max": 24
},
"balance": {
"restitution_type": "RESTRICTED",
"limits": {
"type": "SINGLE",
"range": {
"min": 100,
"max": 10000
},
"cash_advance_range_percentage": {
"min": 10,
"max": 50
}
}
},
"billing_cycles": {
"billing_date_strategy": "FIXED_DUE_DATE",
"statement": {
"pdf": {
"enabled": true
}
},
"schedule": {
"due": {
"allowed_days_of_month": [
5,
10,
15,
20,
25,
28
]
},
"closing": {
"min_days_before_due": 5,
"min_days_before_first_closing": 10
}
},
"frequency": "MONTHLY"
},
"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
}
}
}
]
},
"minimum_payment": {
"minimum_amount": 50,
"composition": [
{
"concept": "PURCHASE",
"percentage": 25.5
}
]
}
}
}Ejemplo de código
curl -X PATCH "https://api.pomelo.la/lending/v2/products/example_value" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"name": "Tarjeta de crédito Premium Actualizada",
"lifecycle": {
"status": "ACTIVE",
"offer": {
"start_date": "2024-01-01",
"end_date": "2024-12-31"
}
},
"credit_card": {
"currency_configuration_scope": "SINGLE_CURRENCY",
"lifecycle": {
"arrears": {
"actions": {
"pause_credit_line": {
"after_days_past_due": 5
},
"block_credit_line": {
"after_days_past_due": 5
},
"cancel_credit_line": {
"after_days_past_due": 5
}
}
}
},
"installments": {
"max": 24
},
"balance": {
"restitution_type": "RESTRICTED",
"limits": {
"type": "SINGLE",
"range": {
"min": 100,
"max": 10000
},
"cash_advance_range_percentage": {
"min": 10,
"max": 50
}
}
},
"billing_cycles": {
"billing_date_strategy": "FIXED_DUE_DATE",
"statement": {
"pdf": {
"enabled": true
}
},
"schedule": {
"due": {
"allowed_days_of_month": [
5,
10,
15,
20,
25,
28
]
},
"closing": {
"min_days_before_due": 5,
"min_days_before_first_closing": 10
}
},
"frequency": "MONTHLY"
},
"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
}
}
}
]
},
"minimum_payment": {
"minimum_amount": 50,
"composition": [
{
"concept": "PURCHASE",
"percentage": 25.5
}
]
}
}
}'Ejemplo de respuesta (200)OK
{
"data": {
"id": "lpr-2HMwKzetERdOEhbT86UweXamPle",
"name": "Tarjeta de crédito Premium",
"type": "CREDIT_CARD",
"country": "PER",
"lifecycle": {
"status": "ACTIVE",
"offer": {
"start_date": "2024-01-01",
"end_date": "2024-12-31"
}
},
"credit_card": {
"book_model": "LOCAL_CURRENCY_BOOK",
"lifecycle": {
"arrears": {
"actions": {
"pause_credit_line": {
"after_days_past_due": 5
},
"block_credit_line": {
"after_days_past_due": 5
},
"cancel_credit_line": {
"after_days_past_due": 5
}
}
}
},
"installments": {
"max": 24
},
"balance": {
"restitution_type": "RESTRICTED",
"limits": {
"type": "SINGLE",
"range": {
"min": 100,
"max": 10000
},
"cash_advance_range_percentage": {
"min": 10,
"max": 50
}
}
},
"billing_cycles": {
"billing_date_strategy": "FIXED_DUE_DATE",
"statement": {
"pdf": {
"enabled": true
}
},
"schedule": {
"due": {
"allowed_days_of_month": [
5,
10,
15,
20,
25,
28
]
},
"closing": {
"min_days_before_due": 5,
"min_days_before_first_closing": 10
}
},
"frequency": "MONTHLY"
},
"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
}
}
}
]
},
"minimum_payment": {
"minimum_amount": 50,
"composition": [
{
"concept": "PURCHASE",
"percentage": 25.5
}
]
}
},
"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
}
}
}
]
}
}
}