Webhook - InvoicesPayment for bulk payment - Can I see what invoices the payment is tagged to?

Hello,
When we log payment and select “Allocate one lump payment then use this to pay down selected invoices” option we get the below

How do we then find out what these invoices are?

Is there any way we can make another api call to search invoices against PaymentId ?

Thanks

Hi @Mohammed1

Using the IDs from the webhook, you can further query the API to get more details on the payment and invoice.

There is a Payment_Get endpoint which can reveal details of what invoices are associated to a specific payment:

Hope this helps!

thanks @QFMathew that works!

Is there a range of IP’s that your server uses so we can whitelist them? This is to make sure we are getting the data from the right server.
We are currently checking the Hookid now.

Thanks.

The IP address range isn’t something we’re able to provide I’m afraid.

If you are checking the hook ID for duplicates, that’s the correct approach. If you’re having any issues with this, just let us know and we’ll try our best to assist