POST
/lending/v1/collectionsGenerar imputación
El endpoint /lending/v1/collections te permite informar el pago de uno de tus usuarios y también bonificaciones o recargos que tengas que hacer en su línea de crédito.
Parámetros disponibles
Header Parameters
x-idempotency-keyStringrequired
Cuerpo de solicitud
application/jsoncredit_line_idstringrequired
external_idstring
typeenumrequired
amountstringrequired
currencyenumrequired
operation_datestringrequired
descriptionstringrequired
Detalle de respuestas
Ejemplo de solicitud
{
"operation_date": "2022-08-03T15:07:09Z",
"credit_line_id": "lcr-h4xWg6e8CiRcpHd8A6JE8MW8wSZ",
"external_id": "90bd079e-3c60-4896-a12f-1c08dff488ea",
"type": "PAYMENT",
"amount": "737.94",
"currency": "BRL",
"description": "BILL PAYMENT"
}Ejemplo de código
curl -X POST "https://api.pomelo.la/lending/v1/collections" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "x-idempotency-key: fRwX12Dg3345AD" \
-d '{
"operation_date": "2022-08-03T15:07:09Z",
"credit_line_id": "lcr-h4xWg6e8CiRcpHd8A6JE8MW8wSZ",
"external_id": "90bd079e-3c60-4896-a12f-1c08dff488ea",
"type": "PAYMENT",
"amount": "737.94",
"currency": "BRL",
"description": "BILL PAYMENT"
}'Ejemplo de respuesta (201)Created
{
"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"
}