-
Notifications
You must be signed in to change notification settings - Fork 10.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
API->Create refunds: line_items does not work #18573
Labels
type: bug
The issue is a confirmed bug.
Comments
Looks like WC wants qty not quantity, but the API uses quantity. Probably a few mismatches in the data here so it's a bug. |
Logged for v3 api woocommerce/wc-api-dev#83 |
So, we will never be able to refund an order line by line with th API, and woocommerce API will always generate empty credit notes? |
Not until v3 - woocommerce/wc-api-dev#83 |
mikejolley
pushed a commit
that referenced
this issue
Jan 26, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello,
I tried different things to create a refund with API REST.
I was not able to make 'line_items' work.
The total refunded is correct, but line_items is not taken into account.
i sent this simple API REST request:
{"amount":"4.89","reason":"","refunded_by":1,"line_items":{"2052":{"quantity":1,"tax_class":0,"total":"4.89"}}}
Thank you very much in advance.
The text was updated successfully, but these errors were encountered: