Forum Discussion

Autolync's avatar
6 years ago

List of Recently Paid/Credited Invoices

I'm trying to get a list of Invoices that have recently had a balance change, either by a payment or a credit settlement with it.

 

I'm aware that I can get either of those collections invidiually from their respective endpoints, but because I'm trying to get the balances for invoices, it's not feasible to then make a call to each invoice that the original two endpoints provide.

 

LastPaymentDate does cover off the Payments, but not Credit Settlements.

 

Any ideas?

 

Thanks

 

Aaron

  • Hannah_B's avatar
    Hannah_B
    MYOB Moderator

    Hello Autolync 

     

    Thanks for reaching out, Credit settlement information can only be found from the /Sale/CreditSettlement endpoint. This means you will need to use both endpoints to retrieve the data you are looking for.

     

    Thanks,