What is the best way to get the customer's Total Amount Due from the api?
1 Comment
Prahaladh
said
over 5 years ago
Hi George,
If you're looking to retrieve the total amount due for a customer via APIs, the best way to do that is explained below:
Use the 'customer_id[<operator>]' & 'status[<operator>]' filter parameters to list the Not Paid/Payment Due invoices for a particular customer, in the List Invoices API call
The return will contain the total amounts of all such invoices
Fetch that data and add them to get the total due for the customer
George Chailazopoulos
Hello,
What is the best way to get the customer's Total Amount Due from the api?