/lending/v1/collections

Generar 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-keyString
Cuerpo de solicitud
application/json
credit_line_idstring
external_idstring
typeenum
amountstring
currencyenum
operation_datestring
descriptionstring

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"
}

Pomelo AI

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