---
title: "API POST calls returned incorrect location for credit note, credit adjustment or prepayment"
description: "When sending POST \u003e credit note, credit adjustment, or prepayment via API, the system returned an incorrect location after booking the invoice in the ERP."
lang: en
languages:
  en: https://docs.vismasoftware.no/visma-net-erp/release-notes/2021-04-27-api-post-calls-returned-incorrect-location-for-credit-note-credit-adjustment-or/index.md
lastmod: 2021-04-27
---

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


# API POST calls returned incorrect location for credit note, credit adjustment or prepayment

Last modified April 27, 2021

2021-04-27


Label: api:purchase-to-pay


Version: 8.46



When sending POST \> credit note, credit adjustment, or prepayment via API, the system returned an incorrect location after booking the invoice in the ERP.

For example:

Instead of returning: controller/api/v1/supplierInvoice/Prepayment/\{ref. number\}

the System returned: controller/api/v1/supplierInvoice/\{ref. number\}

By not adding the document type in the URL, you would not have been able to find your document just created, because your location would have returned a "404 not found" error.

This issue has now been fixed and the system returns the correct location.



---

[View this page](https://docs.vismasoftware.no/visma-net-erp/release-notes/2021-04-27-api-post-calls-returned-incorrect-location-for-credit-note-credit-adjustment-or/)
