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 Invoice 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,InvoiceasInvoiceClient}from'xendit-node';constxenditClient=newXendit({secretKey: YOUR_SECRET_KEY})const{ Invoice }=xenditClientconstxenditInvoiceClient=newInvoiceClient({secretKey: YOUR_SECRET_KEY})// At this point, `Invoice` and `xenditInvoiceClient` will have no usage difference, for example:// Invoice.// or// xenditInvoiceClient.
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