via API
Follow the tutorial on this link:
https://developers.xendit.co/api-reference/#set-webhook-urls
-
The endpoint that will be used is as follows:
POST https://api.xendit.co/callback_urls/:type
- Make sure that you have inputted the correct Master Account’s API Key on the right place;
-
Input one of the webhook type on the ":type" endpoint path parameters that is listed below;
-
Money-in
-
invoice
: Notification when Invoice has been paid or expired; -
recurring
: Xendit notifies your system when Subscription plan has been activated/inactivated, cycle created/succeeded/retrying/failed, or force attempt failed. -
payment_method_v2
: Notification when payment method V2 is expiring and/or has activated or expired; -
payment_method
: Notification when payment method is expiring and/or has expired;- Payment Method is a mandatory step to abstract Debit Card / Bank Account for Direct Debit transactions;
-
direct_debit
: Notification for any Direct Debit successful payment event; -
ewallet
: New eWallet type to receive charge and other eWallet events across eWallets channels from /ewallets/charges API; -
qr_code
: Xendit notifies your system when QR payment has been made or QR refund has been completed. This field is only supported forqr_codes
API version2022-07-31
. -
fva_status
: Notification when Virtual Account in Indonesia has been created or updated successfully; -
fva_paid
: Notification when Virtual Account in Indonesia has been paid successfully; -
ro_fpc_paid
: Notification when Retail Outlet payment code (Alfamart/Indomaret) in Indonesia has been paid successfully; -
regional_ro_paid
: Notification when Over-the-Counter payment code (7 Eleven, Cebuana, ECPay) in Philippines has been paid successfully.
-
-
Money-Out
-
batch_disbursement
: Notification when Batch Disbursement on Indonesian accounts have been executed successfully by Xendit. -
disbursement
: Notification when disbursement on Indonesian account has been executed successfully, either withCOMPLETED
orFAILED
status; -
ph_disbursement
: Notification when disbursement on the Philippines account has been executed successfully, either withCOMPLETED
orFAILED
status;
-
-
Money-in
-
Input the Business ID of your OWNED Sub Account in the header under the parameter "for-user-id";
- Input the desired webhook URL for your sub account on the request body under parameter "url";
- Click "Send";
-
If the webhook URL is successfully updated, parameter status on API response will return “SUCCESSFUL”.
via Dashboard
OWNED Sub Account
Webhook URL update for OWNED Sub Account cannot be facilitated through Dashboard due to the lack of “Developers” permission.
MANAGED Sub Account
- Login to your Sub Account Dashboard;
- Go to menu Settings > Developers > Webhook;
- Click Webhook;
- Edit the webhook URL to the desired products
- Click “Save and test”