---
title: "Get payments linked to an invoice"
method: GET
path: "/transaction/getPaymentsForInvoice"
tags: ["transactions"]
---

# Get payments linked to an invoice

`GET /transaction/getPaymentsForInvoice`

Returns all payments associated with the given invoice via the payment_link table, including the applied amount for each payment.

## Query parameters

- `invoice_id` integer, required

## Response `200`

Successfully fetched linked payments

- Response
  - `code` integer, required
  - `data` object, required
  - `account_id` integer, required

## Other responses

- `400` — Missing invoice_id
- `403` — No permissions
- `404` — Invoice not found

---

[API](https://skmtc.net/ontraport/apis/ontraport-api.md) · [All operations](https://skmtc.net/ontraport/apis/ontraport-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/ontraport/ontraport-api/revisions/edcd035d71f5/schema)
