Title: Refund Not Processing when Applying throug API.
Last modified: March 26, 2024

---

# Refund Not Processing when Applying throug API.

 *  Resolved [Vaibhav](https://wordpress.org/support/users/vaibhav9017/)
 * (@vaibhav9017)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/refund-not-processing-when-applying-throug-api/)
 * Hello All,
 * I am using wooCommerce API flow to create/Update Orders. I would like to implement
   a functionality called Refund. When I tried to apply refund through API, I am
   getting error of “The payment gateway for this order does not exist.”. I am not
   sure How I am getting such errors.
    1. I hve used order Updated end point to apply refund, like
    2. const response = await WooCommerce.post(`orders/${orderId}/refunds`, refundData);
    3. However, I am gtting an erro as below. —
 * Error Response like – this – 
   code:’woocommerce_rest_cannot_create_order_refund’,
   data:500, message:’The payment gateway for this order does not exist.’
 * Another error we are observing is – Getway timeout exception.
 * Thank You,
 * Vaibhav Bhutkar
    -  This topic was modified 2 years, 1 month ago by [Vaibhav](https://wordpress.org/support/users/vaibhav9017/).
    -  This topic was modified 2 years, 1 month ago by [Vaibhav](https://wordpress.org/support/users/vaibhav9017/).
    -  This topic was modified 2 years, 1 month ago by [Vaibhav](https://wordpress.org/support/users/vaibhav9017/).

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

 *  [carolm29 (woo-hc)](https://wordpress.org/support/users/carolm29/)
 * (@carolm29)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/refund-not-processing-when-applying-throug-api/#post-17538213)
 * Hey there, [@vaibhav9017](https://wordpress.org/support/users/vaibhav9017/)! 
   Thanks for contacting us.
 * While we can’t provide support for code customization as [per our support policy](https://www.woocommerce.com/support-policy/),
   we do our best to offer advice and direct you to appropriate resources.
 * You can find developer resources **[here ](https://developer.woo.com/docs/)**
   and [**here**](https://woocommerce.github.io/woocommerce-rest-api-docs/#introduction).
 * You can also visit the [WooCommerce Facebook group](https://www.facebook.com/groups/advanced.woocommerce/)
   or the `#developers` channel of the [WooCommerce Community Slack](https://woocommerce.com/community-slack/).
   We’re lucky to have a great community of open-source developers for WooCommerce,
   and many of our developers hang out there too.
 * I’m going to leave it open for a bit to see if anyone is able to chime in and
   help you out further.
 * Please let us know if there’s anything else we can do to help or if you have 
   any questions.
 * Have a wonderful day!
 *  [anastas10s](https://wordpress.org/support/users/anastas10s/)
 * (@anastas10s)
 * [2 years ago](https://wordpress.org/support/topic/refund-not-processing-when-applying-throug-api/#post-17562610)
 * We haven’t heard back from you in a while, so I’m going to mark this as resolved–
   we’ll be here if and/or when you are ready to continue.

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

The topic ‘Refund Not Processing when Applying throug API.’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

 * 2 replies
 * 3 participants
 * Last reply from: [anastas10s](https://wordpress.org/support/users/anastas10s/)
 * Last activity: [2 years ago](https://wordpress.org/support/topic/refund-not-processing-when-applying-throug-api/#post-17562610)
 * Status: resolved