Is there an existing issue for this?
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
]
}
}
}