question

chiragclovercommunity avatar image
chiragclovercommunity asked roseharris answered

Partial refund for the customer order with REST API

Hi I have created the custom order with this API:

https://docs.clover.com/reference/ordercreateorder


Now when I try to to partial refund with this API: https://docs.clover.com/reference/postordersidreturns


It gives me following error:

{

    "message": "400 Bad Request",

    "error": {

        "code": "processing_error",

        "message": "Only manual transaction orders are eligible for a partial amount refund. Please refund this order by item or refund the remaining payment amount in full."

    }

}


I have tried full refund with this API: https://scl-sandbox.dev.clover.com/v1/refunds
With that full refund working but partial refund not working.


Also just for more info refund is processed by external system, I just want the clover to know that refund is processed.


For more info I am creating payment entry with this endpoint: https://docs.clover.com/reference/ordercreatepaymentfororder
Also we are using the custom tender to log that payment entry. Main thing is we want to do partial refund without items. Is that possible?


Can you guide me here how can I do partial refund for the order that I have created with REST API?

REST API
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
roseharris avatar image
roseharris answered

Feel free about knowing something new on solar energy, solar power and, of course, solar panel

10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community