GET
/lending/v1/collections/{id}Obtener imputación por ID
El endpoint
/lending/v1/collections/{id} te permite consultar una imputación específica indicando el ID asignado al momento de generarla.Parámetros disponibles
Detalle de respuestas
Ejemplo de código
curl -X GET "https://api.pomelo.la/lending/v1/collections/{id}" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY"Ejemplo de respuesta (200)OK
{
"data": {
"id": "lco-edeESDira4dpZv8nZ6vwMb8Kjyf",
"credit_line_id": "lcr-h4xWg6e8CiRcpHd8A6JE8MW8wSZ",
"external_id": "90bd079e-3c60-4896-a12f-1c08dff488ea",
"operation_date": "2022-08-03T15:07:09",
"creation_date": "2022-08-03T15:07:09",
"cancellation_date": "2022-08-21T15:07:09",
"type": "PAYMENT",
"amount": "737.94",
"currency": "BRL",
"description": "BILL PAYMENT",
"status": "CREATED"
}
}