Can somebody help me out with sending refund action in HTTP POST.
Can you provide me example code. How i can do this.
Actually, the payment table is a read only object and you cannot add rows to it to create payments or refunds. You can use the invoice object to add a manual payment with a payment type of ‘adjustment’ and a description that describes it as a refund.
Thanks, @John_Borelli I am looking for when infusion order set to refund.
Is there any way I can Get that Call? So I can Refund the order in E-commerce.
There is no method to directly submit refunds. As stated, using the adjustment and naming it refund is the only real way to accomplish that through the api.
Can you please provide me example code not the one is listed here https://developer.infusionsoft.com/docs/xml-rpc/#data-retrieve-a-record
i think you miss understood me.
Let me try to explain again.
When in infusion an order is refunded, then mark in E-commerce same order as refunded.
So i need to send a HTTPS Request in Infusionsoft when ever that action is triggered.
That’s what i need to know.
How can i do this in infusionsoft
How is the order getting refunded then? Manually in IS?
Yes, order refunded happens manually in infusionsoft.
I’m not aware of a trigger or action set within Infusionsoft that would let you do this. The only thing that I might suggest is a nightly process that uses the api to read all order activity for the day and registers/tracks any refunds that way.
Can you maybe help me out with some example code in php for all order activity for the day and registers/tracks any refunds
We actually just added RestHooks for the “invoice.payment.add”, which should indicate changes that include either payment or refund actions. You would still need an intermediary system to catch the RestHook message and then post to your other system, however.
Where can i find this in the doc?
I found a solution, is there a API Call to get all invoiceID from contactD
use query on the invoice table for the ContactId and you’ll get all invoices that the contact id has assigned to it.
Where can i find the example code ? https://developer.infusionsoft.com/docs/xml-rpc/#invoice