Skip to content
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

Closed
c3do opened this issue Jan 23, 2018 · 4 comments
Closed

API->Create refunds: line_items does not work #18573

c3do opened this issue Jan 23, 2018 · 4 comments
Assignees
Labels
type: bug The issue is a confirmed bug.

Comments

@c3do
Copy link

c3do commented Jan 23, 2018

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.

@mikejolley
Copy link
Member

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.

@mikejolley
Copy link
Member

Logged for v3 api woocommerce/wc-api-dev#83

@c3do
Copy link
Author

c3do commented Jan 25, 2018

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?

@mikejolley
Copy link
Member

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
Labels
type: bug The issue is a confirmed bug.
Projects
None yet
Development

No branches or pull requests

3 participants