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.
Example:
Last updated date:
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.
Example:
Last updated date:
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.
https://developer.keap.com/docs/rest/#tag/REST-Hooks
https://developer.keap.com/docs/rest/#tag/E-Commerce/operation/getTransactionUsingGET
I hope that helps!