question

hardik22 avatar image
hardik22 asked bryanvargas answered

Refund order using REST API

How to refund order using Rest API. As using Ecommerce api its asking for auth2 token?
and how to retrieve auth2 token ? Please guide.

REST APIclover developer community
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

bryanvargas avatar image
bryanvargas answered

Hey, you can use the { {baseUrl}}/v1/orders/{orderId}/returns endpoint to return all or part of an order. The order must be paid or fulfilled. We also have a tutorial for Refunding Payments available.

The Oauth2 token is your access token. More info on OAuth can be found here on our Clover Docs page: https://docs.clover.com/docs/configuring-oauth-20

10 |2000

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