Skip to content

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

@jh-bpc

Description

@jh-bpc

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
]
}
}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    🆕 Ready for Grooming

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions