collection).collection.paid.collection.type = invoices_payment.collection.id, puedes consultar este endpoint para obtener el desglose del pago: las facturas que fueron afectadas y el monto aplicado a cada una.curl --location 'https://api.treli.co/v1/invoices_payments?limit=undefined&start_after=undefined&start_before=undefined&created_after=undefined&created_before=undefined&invoice=undefined&collection=undefined' \
--header 'Authorization: Basic <encoded-value>'{
"has_more": true,
"next_cursor": "string",
"previous_cursor": "string",
"data": [
{}
]
}