You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can use the APIs below to interface with Xendit's Refund API.
To start using the API, you need to destruct instantiated Xendit client or directly import the module and set the secret key.
import{Xendit,RefundasRefundClient}from'xendit-node';constxenditClient=newXendit({secretKey: YOUR_SECRET_KEY})const{ Refund }=xenditClientconstxenditRefundClient=newRefundClient({secretKey: YOUR_SECRET_KEY})// At this point, `Refund` and `xenditRefundClient` will have no usage difference, for example:// Refund.// or// xenditRefundClient.
All URIs are relative to https://api.xendit.co, except if the operation defines another base path.
Use the following callback objects provided by Xendit to receive callbacks (also known as webhooks) that Xendit sends you on events, such as successful payments. Note that the example is meant to illustrate the contents of the callback object -- you will not need to instantiate these objects in practice
RefundCallback Object
Callback for successful or failed Refunds made via the Payments API