I have a credit notes that does not return payment lines from the API
what can be the cause of this?
I also noticed that ScreenID AR302000 show no paymentlines but AR301000 do, why?
I need to get the paymentlines, what should I do?
Solved! Go to Solution.
Could you please explain the workflow from the start to the current result?
Where and how did you create the creditNote?
Where and how did you apply the paymentLine?
First a CreditNote needs to be created via customerCreditNote and then be released before it appears in the customerPayment module.
The items that are added in the customerCreditNote are not linked to any invoices, however, when the customerCreditNote has been released and then created in the customerPayment. The payment amount of the creditNote is applied to the payment.
After this, you apply the payment to an invoice.
CustomerCreditNote list(note that 000059 is not yet released):
Trying to add the creditNote to payment(note that 000059 is not available):
Releasing the creditNote:
It is now available to create a customer payment from:
I have not created the credit notes and do not know how/where they work in the system.
My job is simply to read read all the credit notes into another system.
what endpoint do you suggest I should use then?
As per Swagger, the endpoint you are using represents SceenId=AR302000 in the UI, please have a look at it there and compare.
For the creditNote in Customer Invoice, you want to use the endpoint customerCreditNote.
Please check the Customer Payment in the UI and compare to your results and try a call to the customerCreditNote endpoint and see if you get the lines that are applied.
Please let us know the results and we'll investigate.
Copyright © 2022 Visma.com. All rights reserved.