---
title: "SupplierPayment endpoint returns wrong data when payments and credit notes have the same reference number"
description: "Previously, both GET ALL and GET Specific - SupplierPayment endpoints returned the wrong data when payments and credit notes had the same reference number."
lang: en
languages:
  en: https://docs.vismasoftware.no/visma-net-erp/release-notes/2022-10-25-supplierpayment-endpoint-returns-wrong-data-when-payments-and-credit-notes-have/index.md
lastmod: 2022-10-25
---

> Documentation index: https://docs.vismasoftware.no/visma-net-erp/llms.txt


# SupplierPayment endpoint returns wrong data when payments and credit notes have the same reference number

Last modified October 25, 2022

2022-10-25


Label: api:outgoing-payment


Version: 9.19



Previously, both GET ALL and GET Specific - SupplierPayment endpoints returned the wrong data when payments and credit notes had the same reference number. This has now been fixed, but please note the following:

1.Get ALL SupplierPayment endpoint will return the correct header details and invoice lines applied against each payment document\
2\. The initial Get SPECIFIC SupplierPayment endpoint (controller/api/v1/SupplierPayment /paymentnumber), in order to be backward compatible, will return only one document, being the payment OR the credit note depending on the used filters.\
3\. A NEW endpoint Get SPECIFIC SupplierPayment endpoint has been deployed by type and number (controller/api/v1/SupplierPayment /paymenttype/paymentnumber). This one will return the correct information depending on the chosen document.



---

[View this page](https://docs.vismasoftware.no/visma-net-erp/release-notes/2022-10-25-supplierpayment-endpoint-returns-wrong-data-when-payments-and-credit-notes-have/)
