Hi, we encountered an issue where we are not able to refund an order that was partially paid for.
Order was paid for using /v1/orders/{orderId}/pay
However, when trying to completely refund the order, we get an error:
Request POST /v1/orders/{orderId}/returns Response {"message":"400 Bad Request","error":{"code":"processing_error","message":"This refund would make the order's total refunded amount greater than the original order's amount."}}
Notice that (as per https://docs.clover.com/docs/ecommerce-refunding-payments#refunding-payments-without-order-items-to-be-returned) we do not include the individual lineItems, but expect the above to refund the whole order. However, we are very confused how this request fails with the mentioned reason.
This was not a problem before and the above endpoint was used to successfully refund orders.
Please let us know how we can refund these orders. I assume we can't use the /v1/refunds endpoint due to documentation explicitly mentioning that it cannot refund orders with >1 line items or tips, and the fact that we do not use the /v1/charges endpoint to create these charges.