question

bobbygill avatar image
bobbygill asked ricktower answered

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

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 Deactivated answered David Marginian Deactivated 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

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

bobbygill avatar image bobbygill commented ·

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 ·
David Marginian avatar image David Marginian ♦♦ bobbygill commented ·
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 ♦♦ commented ·

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 Deactivated 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

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 ♦♦ commented ·

I do not have an update.

0 Likes 0 ·
mkimura avatar image
mkimura answered

Can the entire transaction be cancelled before payments are made through the API?


Scenario: Customers are utilizing Debit Cards to process payments in person and online. We do not take partial payments. Unfortunately, in taking debit cards, customers whose bank accounts have insufficient funds are still able to process a partial payment. Is there any way to back out of the transaction before the partial payment is processed? (i.e. Add in logic that states "If a customer's debit card indicates insufficient funds, then cancel the transaction and inform the customer."

10 |2000

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

ricktower avatar image
ricktower answered

This thought is intriguing and Area opens up new possibilities for understanding the topic.

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