Title: Refund API issue
Last modified: July 21, 2023

---

# Refund API issue

 *  Resolved [joshlfcox](https://wordpress.org/support/users/joshlfcox/)
 * (@joshlfcox)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/refund-api-issue/)
 * Hi,
 * We experienced an issue processing a refund, this error came up:
 * “An error occurred while attempting to create the refund using the payment gateway
   API.” screenshot: [https://snipboard.io/KsgLi5.jpg](https://snipboard.io/KsgLi5.jpg)
 * We’ve tried to process the refund twice now and both times it produced the same
   error.
 * Strangely, another PayPal refund went through successfully earlier today.
 * We’re unsure what would be causing this. Any help is much appreciated.
 * Thanks,
 * Josh

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

 *  Plugin Support [Syde Joost](https://wordpress.org/support/users/joostvandevijver/)
 * (@joostvandevijver)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/refund-api-issue/#post-16912543)
 * Hello [@joshlfcox](https://wordpress.org/support/users/joshlfcox/) ,
 * Thank you for reaching out to us, we are here to help.
 * I would think that this is probably caused by maintenance that was performed 
   by PayPal. You can find their status page and logs of event via [this link](https://www.paypal-status.com/product/sandbox).
 * If this issue does not continue to occur for other orders, I would expect that
   to be the cause and no further action would be required. If you do encounter 
   this more, it would be useful to look into your system report, logs and order
   notes, in order to identify any known issue.
 * If you don’t feel comfortable sharing those details on a public forum, please
   open a ticket with our service desk. You can find the instruction for this here:
   [https://paypal.inpsyde.com/docs/request-support/](https://paypal.inpsyde.com/docs/request-support/)
   (
   please add the URL of this thread in the ticket as well)
 * Kind regards,
   Joost
 *  Thread Starter [joshlfcox](https://wordpress.org/support/users/joshlfcox/)
 * (@joshlfcox)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/refund-api-issue/#post-16913068)
 * Thanks Joost,
 * We’ll try and process the refund for that order tomorrow and see what happens.
   Will update you if it fails and will also provide the system report, logs & order
   notes.
 * Cheers
 *  Plugin Support [Syde Niklas](https://wordpress.org/support/users/niklasinpsyde/)
 * (@niklasinpsyde)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/refund-api-issue/#post-16936342)
 * Hi [@joshlfcox](https://wordpress.org/support/users/joshlfcox/)
 * The best way to figure out what would be causing such an error when issuing a
   refund is to enable **`Logging`** in the Connection tab and try it again.
   The
   plugin log files will then contain more details which usually help pinpoint the
   cause of the issue.
 * But since we haven’t heard back from you, I assume that a subsequent refund attempt
   was successful and will mark this thread as resolved. However, if any questions
   or questions remain, I suggest contacting[ the support team from here](https://woocommerce.com/document/woocommerce-paypal-payments/#get-help)
   for more guidance or reopening this thread with more details such as logs or 
   a system report. Thanks!
 * Kind regards,
   Niklas

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/)

 * 3 replies
 * 3 participants
 * Last reply from: [Syde Niklas](https://wordpress.org/support/users/niklasinpsyde/)
 * Last activity: [2 years, 10 months ago](https://wordpress.org/support/topic/refund-api-issue/#post-16936342)
 * Status: resolved