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

/V1/order/:orderid/refund API keeps returning Creditmemo Document Validation Error(s):\nThe credit memo's total must be positive. error #380

Open
1 task done
jh-bpc opened this issue Nov 20, 2024 · 0 comments

Comments

@jh-bpc
Copy link

jh-bpc commented Nov 20, 2024

Is there an existing issue for this?

  • I have searched the existing issues

What's missing?

I've scoured the API documentation and web for a solution to this error but no matter what I do I am unable to clear the Creditmemo Document Validation Error(s):\nThe credit memo's total must be positive. error for Credit Memo creation via the order API. My payload (included below) is simple and follows the documentation examples but I cannot resolve the error. Why is the credit memo not creating?

{
"items" : [
{
"order_item_id" : 607034,
"qty" : 1
}
],
"notify": true,
"comment": {
"extension_attributes": { },
"is_visible_on_front": 0
},
"arguments": {
"shipping_amount": 0,
"adjustment_positive": 0,
"adjustment_negative": 0,
"extension_attributes": {
"return_to_stock_items": [
607034
]
}
}
}

@github-project-automation github-project-automation bot moved this to 🆕 Ready for Grooming in Commerce - Issues Nov 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 🆕 Ready for Grooming
Development

No branches or pull requests

1 participant