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

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.