/lending/v2/products

Crear producto

El endpoint lending/v2/products te permite crear un producto.

En este momento podrás definir las fechas de corte y vencimiento, los límites y disponibles, las tasas y comisiones, cómo se compone el pago mínimo y más.

Parámetros disponibles

Cuerpo de solicitud
application/json
namestring
typeenum
countryenum
lifecycleobject2 propiedades
credit_cardobject0 propiedades

Autenticación

🔒BearerAuthhttp

Detalle de respuestas

Ejemplo de solicitud
{
  "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
        }
      ]
    }
  }
}
Ejemplo de código
curl -X POST "https://api.pomelo.la/lending/v2/products" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
  "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
        }
      ]
    }
  }
}'
Ejemplo de respuesta (201)Created
{
  "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
            }
          }
        }
      ]
    }
  }
}

Pomelo AI

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