My Products
Help

posting customerPayment lines?

by Thomas Adrian - Consili

hello

i want to send in a customer payment using the endpoint /customerpayment

 

looking at the example code it looks like I can send in “payment lines” but when I try it it does not seem to be required. 

so my question is.  If I do not send in any payment lines, will the result be the same as sending in one payment line?  and what would the result be if I send in 2 Payment lines?


 

thanks

thomas

 

 

 

 

 

1 REPLY 1
Accepted solution
Magnus Johnsen
VISMA

by Magnus Johnsen

Hi,

 

We would recommend that you get familiar with the UI as this will help you spot how FInancials deals with the operations. Usually you can find the screenID for the module in the Swagger header of the endpoint. 

 

The paymentLines of the customerPayment in the UI refers to the invoices that the payment should be applied to.

As customer can make a prepayment for example, the might have paid before you even have an invoice, in this case you could create a payment for them with an amount that has not been appluied to other documents.

 

If you have 1 or several paymentLines, you split up the totalAmount the customer payed on the lines as needed, each line representing one docunment to be paid.