- Xero api invoice status

- Xero api invoice status

Looking for:

laravel - How to update invoice using XERO API? - Stack Overflow - Webhook for Invoice Paid event 













































     


GitHub - waynerobinson/xeroizer: Xero accounting system API library. - Check invoice status when customer clicks "pay" with custom payment integration



 

Do you recognize a good idea when you see one? We want to hear from you! View our full list of features requested for our API and make your vote count. Rett Behrens Xero Staff. Xero Developer Community. Hi, Our product is connected with Xero and once an invoice is paid we need to persist that data in our database. The solution we had to accomplish this task is, for each unpaid invoice record in our database we call GetInvoice API of Xero and check whether the invoice status is paid or not.

If it is paid then we mark it as paid on our side. This operation is set to run each hour of the day. As a solution for this, we came up with the Xero webhook approach to solve the problem.

But currently, the invoice update event is available in the webhooks but there is no way to identify what update event is triggered paid, edit, etc. Please advice. Hi Ruwan, Each webhook payload includes an event array. In your use case when you receive an event for an updated invoice, you'll then need to make a get request for that specific invoice ID to compare against the record in your db.

This is still far more efficient than making an hourly api call for every invoice record in your db. See an example webhook payload in our docs. Check out a more detailed explanation including a demonstration implementing webhooks using node, express, and ngrok in this Community Corner video.

   


Comments

Popular posts from this blog

- Xero authenticator app not working - xero authenticator app not working

Parallels Desktop for Mac - Wikipedia.One moment, please

Ableton live 9 suite patch free. Ableton Live Suite 9.7.2 With Crack [Win + MAC]