The Set Webhook URLs API allows you to set your account and sub-accounts' Webhook URLs. The following can be used in the :type path parameters:
Money-In
invoice
: Xendit notifies your system when Invoice has been paid or expired.fva_status
: Xendit notifies your system when Virtual Account has been created or updated successfully. Support: Indonesia only 🇲🇨fva_paid
: Xendit notifies your system when Virtual Account has been paid successfully. Support: Indonesia only 🇲🇨ro_fpc_paid
: Xendit notifies your system when Retail Outlet payment code (Alfamart/Indomaret) in Indonesia has been paid successfully. Support: Indonesia only 🇲🇨regional_ro_paid
: Xendit notifies your system when Over-the-Counter payment code (7 Eleven, Cebuana, ECPay) in Philippines has been paid successfully. Support: Philippines only 🇵🇭ewallet
: New eWallet type to receive charge and other eWallet events across eWallets channels from /ewallets/charges API.payment_method
: Xendit notifies your system 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.payment_method_v2
: Xendit notifies your system when payment method V2 is expiring and/or has activated or expired. Learn more about Payment Method V2 here.direct_debit
: A Direct Debit payment event will be sent to your system for any successful transactions. Use direct_debit type to receive Direct Debit payment event via webhook.qr_code
: Xendit notifies your system when QR payment has been made or QR refund has been completed. This field is only supported for qr_codes API version 2022-07-31.recurring
: Xendit notifies your system when Subscription plan has been activated/inactivated, cycle created/succeeded/retrying/failed, or force attempt failed.payment_succeeded
: Xendit notifies your system when a payment has been successfully confirmed or received from the partner channel (Only for payments initiated via new Payments API). Support: All businessespayment_awaiting_capture
: Xendit notifies your system when a payment request with capture_method set to MANUAL has been intialized and a call to the Payment Capture API needed to complete the payment. Support: All businessespayment_pending
: Xendit notifies your system when a payment is being processed by the partner channel awaiting for the terminal status of it (Only for payments initiated via new Payments API). Support: All businessespayment_failed
: Xendit notifies your system when a pending payment has failed (Only for payments initiated via new Payments API). Support: All businessescapture_succeeded
: Xendit notifies your system when a manual capture via the Payment Capture API has succeeded. Support: All businessescapture_failed
: Xendit notifies your system when a manual capture via the Payment Capture API has Failed. Support: All businessespayment_request_completed
: Xendit notifies your system when a Direct Debit or E-Wallet payment request has succeeded or failed. Please Note that this is for the Payment Request API only. Make sure that other payment callbacks for Direct Debit or E-wallet are not set to prevent duplication. Support: Thailand 🇹🇭 and Malaysia 🇲🇾 only
Money-Out
disbursement
: Xendit notifies your system when disbursement has been executed successfully by Xendit, either with COMPLETED or FAILED status. Support: Indonesia only 🇲🇨ph_disbursement
: Xendit notifies your system when disbursement has been executed successfully by Xendit, either with COMPLETED or FAILED status. Support: Philippines only 🇵🇭batch_disbursement
: Xendit notifies your system when Batch Disbursement has been executed successfully by Xendit. Support: Indonesia only 🇲🇨payout
: Xendit notifies your system upon failed and successful payouts. Learn more about Payouts V2 webhooks here. Othersreport
: Xendit notifies your system to send the report to the specified URLs. Support: All businesses
The type of Webhook URL you want to set
{
"url": "https://www.xendit.co/webhook_catcher"
}
The URL of your server that you want to receive our Webhooks
{
"status": "SUCCESSFUL",
"user_id": "5e6b30d967627b957de8c123",
"url": "https://www.xendit.co/webhook_catcher",
"environment": "TEST",
"callback_token": "66a6680348e1c33ed2b9053a8eb9291b9e2230ff4f4d3057c9f4ac26405d2123"
}
The status of setting the Webhook URL
The user_id on which the Webhook URL has been set
The Webhook URL that has been set
The environment on which the Webhook URL has been set
The unique Webhook token that is attached to each sub-account. Use this to validate that a Webhook is sent from Xendit's servers.
Validation error
{
"error_code": "INVALID_URL_FORMAT",
"message": "You have provided an invalid URL format",
"errors": [
"Detailed description here"
]
}
Inputs are failing validation. The errors field contains details about which fields are violating validation.
Validation error
{
"error_code": "CALLBACK_AUTHENTICATION_TOKEN_NOT_FOUND_ERROR",
"message": "No webhook verification token found for this business, please contact help@xendit.co to resolve this issue",
"errors": [
"Detailed description here"
]
}
The object being referenced does not exist