Title: Refund API issue
Last modified: February 4, 2025

---

# Refund API issue

 *  Resolved [Choni](https://wordpress.org/support/users/chonicodefish/)
 * (@chonicodefish)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/refund-api-issue-2/)
 * Hi!
 * I am configuring PayPal payments to use it with Woo Subscriptions. We did two
   payment with the same account. The payments work well and the first refund went
   through without problemn. When trying to refund the second order I get the error“
   An error occurred while attempting to create the refund using the payment gateway
   API.” (Wording might vary as I am translating the error)
 * In the forum I found that some people have this issue with older versions of 
   the plugin but I am running version 2.9.6.
 * Any help would be appreciated.
 * Cheers,
 * Choni

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Support [Krystian Syde](https://wordpress.org/support/users/inpsydekrystian/)
 * (@inpsydekrystian)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/refund-api-issue-2/#post-18283958)
 * Hello [@chonicodefish](https://wordpress.org/support/users/chonicodefish/)
 * The only way to answer this question is to get access to the log output from 
   refund. Please note that these log files are only generated if “Logging” is activated
   in your plugin settings. You can enable this feature from the “Connection” tab
   in your plugin settings.
 * Once “Logging” is enabled, every transaction will generate a log entry. It’s 
   important to understand that if “Logging” wasn’t enabled before, there will be
   no previous records of the transactions. In that situation, you’ll need to **
   create another refund attempt **to generate new log entries.
 * You can retrieve these logs from the path:
   Access the WooCommerce > Status > 
   Logs section, and proceed to choose the most recent “woocommerce-paypal-payments”
   file associated with the date of the failed order.
 * Please provide those log entries on our [PrivateBin](http://privatebin.syde.com/).
   After uploading, send us the link, so we can review them in detail.
 * If you do not wish to share this information publicly, we suggest you contact
   us directly for further assistance. Here’s how you can request support: [Request Support](https://paypal.inpsyde.com/docs/request-support/).
   Please make sure to include the URL of this thread in your ticket for reference.
 * Looking forward to your feedback.
 * Kind Regards,
   Krystian
 *  Thread Starter [Choni](https://wordpress.org/support/users/chonicodefish/)
 * (@chonicodefish)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/refund-api-issue-2/#post-18284280)
 * Thanks Krystian, I activated the logs and it stays crystal clear `"issue":"REFUND_FAILED_INSUFFICIENT_FUNDS"`:
   S I passed this to accounting and I am closing the ticket.Thanks for the quick
   response!!
 *  Plugin Support [Krystian Syde](https://wordpress.org/support/users/inpsydekrystian/)
 * (@inpsydekrystian)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/refund-api-issue-2/#post-18284318)
 * Hello [@chonicodefish](https://wordpress.org/support/users/chonicodefish/)
 * No worries, glad we got it solved. If you need any assistance in future, feel
   free to reach out.
 * Kind Regards,
 * Krystian

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Refund API issue’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-paypal-payments/assets/icon-256x256.png?rev=
   3234615)
 * [WooCommerce PayPal Payments](https://wordpress.org/plugins/woocommerce-paypal-payments/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-paypal-payments/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-paypal-payments/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-paypal-payments/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-paypal-payments/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-paypal-payments/reviews/)

## Tags

 * [api](https://wordpress.org/support/topic-tag/api/)

 * 3 replies
 * 2 participants
 * Last reply from: [Krystian Syde](https://wordpress.org/support/users/inpsydekrystian/)
 * Last activity: [1 year, 4 months ago](https://wordpress.org/support/topic/refund-api-issue-2/#post-18284318)
 * Status: resolved