Dear Sir or Madam,
We are currently trying to integrate our CRM more deeply with WooCommerce. Now we want to enable our employees to make refunds via CRM. For this we read through the documentation and wrote the following code:
Unfortunately, every time we test it, we get the following error:
{
code: 'woocommerce_rest_cannot_create_order_refund',
message: 'Refund Error: You need to specify a refund amount.',
data: 500
}
Can you please tell us how to make a refund via the WooCommerce API, where the status changes to "Refunded" and the amount is automatically refunded via our providers PayPal and Stripe?
Thank you and have a good start to the new week,
Tom
Dear Sir or Madam, We are currently trying to integrate our CRM more deeply with WooCommerce. Now we want to enable our employees to make refunds via CRM. For this we read through the documentation and wrote the following code: Unfortunately, every time we test it, we get the following error:
Our JS code is the following:
Can you please tell us how to make a refund via the WooCommerce API, where the status changes to "Refunded" and the amount is automatically refunded via our providers PayPal and Stripe? Thank you and have a good start to the new week, Tom