Update Date - orders api does not work

When making a refund on an order inside infusionsoft - the last updated date is not reflected… this makes it impossible to catch refunds using the https://api.infusionsoft.com/crm/rest/v1/orders api.


Last updated date:

Screenshot 2024-01-04 at 10.58.42 AM

Good afternoon Rick!

I believe that is due to a disparity of the object modeling under the hood: the Order itself isn’t changing when a Payment is applied against a Pay Plan of that Order (a step that gets abstracted when operating via the API for simplicity’s sake). The Order last_updated property would be updated in cases of the items on that Order changing or similar.

If you’re looking specifically for refunds as they are applied, I would suggest setting up a resthook on the invoice.payment.add event, then retrieving them as they are supplied and looking for negative amounts, then operating on the related Order record from there.


I hope that helps!

  • Tom Scott
    Keap API Engineer