Apply refund via API

Hi can anyone tell me:

  • Method of applying refund via API once the order is successfully processed via gateway in Keap?
  • When applying refund to manually paid orders, should we use order/Job ID or Invoice ID in following method:
$infusionsoft->invoices()->addManualPayment();

thanks

Good afternoon!

I believe the REST API’s Order Payment method should allow a negative value to issue a refund, although I haven’t tested it personally. Keap REST API

It looks like the method you have cited there is probably calling this XMLRPC one: xml-rpc - Keap Developer Portal, and for that you would be using the Invoice ID.

Thanks,

  • Tom Scott
    Keap API Engineer
1 Like