question

bobbygill avatar image
bobbygill asked David Marginian commented

Refund Order using Clover Rest API

Is there any way to refund order fully/partially using clover rest API? What is use of DeleteOrder API https://docs.clover.com/reference#orderdeleteorder-2 ? Can we use that to Refund full order?

REST API
10 |2000 characters needed characters left characters exceeded

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

David Marginian avatar image
David Marginian answered David Marginian edited

No, deleting an order doesn't refund the payments associated with it. You can refund payments with our EComm API - https://docs.clover.com/docs/ecommerce-refunding-payments.

Here is some info on partials - https://community.clover.com/questions/26686/sandbox-ecommerce-partial-refunds-returns-http-500.html. There are a few issues with partials now, for example, of the order has a tip the tip will always be returned in full. We are working on fixing those issues.

7 comments
10 |2000 characters needed characters left characters exceeded

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

Thank you for your quick response.


We are using ecommerce API for our app. We have one customer app where we need to refund order when customer wants to cancel order in any case.

I have tried above API https://docs.clover.com/docs/ecommerce-refunding-payments and its not refunding tax amount.

When we try to refund order with all lineitems, It refund total amount and tip amount but not tax amount. What parameter we need to pass there if we want to return item with Tax amount?


If we try to refund order without line items, It refund whole order with tax amount and tip amount, but in this case line item status is not changed to refunded.


Can you please suggest on how can we return line items and refund amount including tax amount?


0 Likes 0 ·
When we try to refund order with all lineitems, It refund total amount and tip amount but not tax amount. What parameter we need to pass there if we want to return item with Tax amount?

Please clarify which APIs you are using and what your requests look like. You are using the returns endpoint, correct?

0 Likes 0 ·
bobbygill avatar image bobbygill David Marginian ♦♦ ·

Here is the URL : https://scl-sandbox.dev.clover.com/v1/orders/ORDERIDHERE/returns


and request body


{

"items":[{"parent":"LINEITEMID1","amount":300,"quantity":1,"type":"sku"},

{"parent":"LINEITEMID2","amount":300,"quantity":1,"type":"sku"}]

}


Here, we have included all line item in request body with amount. When we try with this, tax amount is not refunded.

0 Likes 0 ·
Show more comments
g4ll avatar image
g4ll answered David Marginian commented

Hi David, any update on "There are a few issues with partials now, for example, of the order has a tip the tip will always be returned in full. We are working on fixing those issues."?

We just made some tests and the tips still are always returned in full

1 comment
10 |2000 characters needed characters left characters exceeded

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

I do not have an update.

0 Likes 0 ·

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