Hi, I'm using the docs from https://docs.clover.com/docs/ecommerce-refunding-payments to handle refunds.
I'm creating orders using the `/v1/orders/{orderId}/pay` endpoint. For the sake of this example, we are using custom items.
If I use the `/v1/refunds`, using the order's charge UUID I can only refund on orders that only have 1 line item, although it works really well.
if I use the `/v1/orders/{orderId}/returns` endpoint, I can do a full refund if I omit any data, however I need partial refund support. The platform we're integrating lets the merchant select the items to refund, lets them adjust any amount(IE: if they don't want to refund taxes).
Any time I do the request and it's not malformed ( It will do an http code 400 if it is ) it returns an HTTP 500 error.
{ "message": "500 Internal Server Error", "error": { "type": "api_error", "code": "processing_error", "message": "Internal Server Error." } }
Moreso: The only thing I have access to for the refund, is the amount to be refunded. Is there no way to refund an amount like with charges?
know a refund and charge refund are not the same thing, but seeing as ECOM doesn't support multiple payment charges on a single order, it shouldn't matter if there's more than 1 line item on the order, we should still be allowed to refund the charge.
Will this work using Clover inventory items ecommerce orders or if there's anything I should know? Our endpoint for this is currently under maintenance so I can't currently test it.
I'll include the order creation response + requests payloads information in the moderated comment.