Listing Payments Under a Consent
To retrieve all payments submitted under this consent:
typescript
const listResponse = await fetch(
`${LFI_API_BASE}/open-finance/payment/v2.1/payments?consentId=${consentId}`,
{
headers: { Authorization: `Bearer ${access_token}` },
// agent: new https.Agent({ cert: transportCert, key: transportKey }),
}
)
const { Data: { Payment: payments } } = await listResponse.json()python
list_response = httpx.get(
f"{LFI_API_BASE}/open-finance/payment/v2.1/payments",
params={"consentId": consent_id},
headers={"Authorization": f"Bearer {access_token}"},
# cert=("transport.crt", "transport.key"),
)
payments = list_response.json()["Data"]["Payment"]See GET /payments for the full reference.
