Looking at the invoices through the API we can see the total for Additional Charges but we need to see each Additional Charge line so we can pull that information out.
Where can we find this information for each invoice?
To do this you can use a For Each loop and iterate through the UnitPriceCollection.
1 Like
Thank you. Any chance you could give us a sample code of how use For Each to get this information from the invoices?
1 Like
Here you go:
foreach (InvoiceUnitPrice item in inv.InvoiceUnitPrices)
{
//Do something
}
2 Likes
You should really take a look at the sample code for synchronizing invoices. This sample code covers all of the basics and much much more.
1 Like