In this article, you will find information on webhook V2 events and the sample payload associated to each event type.
PayoutWebhookEvent
This represents the structure of a webhook event:
Field | Description |
---|---|
Type | It is the type of the event. |
Raw | The raw JSON body of the webhook request. |
Object | The parsed JSON object from the raw body |
PayoutVerifyWebhookSignature
This function is used to verify the signature of a webhook request and parse the data. The parameters are as follows:
Field | Description |
---|---|
signature | The HMAC signature provided in the header information of the webhook. |
rawBody | The raw JSON body of the request in the string form. |
timestamp | The timestamp provided in the header information of the webhook. |
Cashfree
Class
This class provides the method for verifying webhook signatures:
Field | Description |
---|---|
XClientSecret | Secret key |
XAPIVersion | It is the API version: 2024-01-01 |
Events | Notifications |
---|---|
TRANSFER_ACKNOWLEDGED | You will receive this event when the transfer is successful and the amount is debited from the account. |
TRANSFER_SUCCESS | You will receive this event when the transferred amount is deposited into the beneficiary bank account. |
TRANSFER_FAILED | You will receive this event when the transfer attempt is a failure. |
TRANSFER_REVERSED | You will receive this event when the beneficiary bank reversed the transfer request. |
TRANSFER_REJECTED | You will receive this event when Cashfree Payments rejected the transfer request. |
BULK_TRANSFER_REJECTED | You will receive this event when one of the transfers or all the transfers in the batch transfer request is rejected. |
Parameter | description |
---|---|
transfer_id | It displays the unique ID you created to identify the transfer request. |
cf_transfer_id | It displays the unique ID created by Cashfree Payments for reference purpose. |
status | It displays the status of the transfer. |
status_code | It displays the specific status of the transfer. |
status_description | It displays the detailed explanation of the transfer status. |
beneficiary_details | It contains information about the beneficiary. |
beneficiary_id | It displays the unique ID to identify the beneficiary. |
beneficiary_instrument_details | It contains the account information of the beneficiary. |
bank_account_number | It displays the bank account number of the beneficiary. |
bank_ifsc | It displays the IFSC information of the bank. |
transfer_amount | It displays the transfer amount. |
transfer_service_charge | It displays the service charge applied for the transfer amount. |
transfer_service_tax | It displays the taxable amount for the service charge. |
transfer_mode | It displays the transfer mode. |
transfer_utr | It displays the unique transaction reference number. |
fundsource_id | It displays the unique ID to identify the fund source. |
added_on | It displays the date and time of the addition. |
updated_on | It displays the date and time of the updation. |
event_time | It displays the date and time of the webhook event initiation. |
type | It displays the event type. |
Parameter | Description |
---|---|
batch_transfer_id | It displays the unique ID you created to identify the batch transfer request. |
cf_batch_transfer_id | It displays the unique ID created by Cashfree Payments for reference purpose. |
status | It displays the status of the batch transfer request. |
event_time | It displays the date and time of the webhook event initiation. |
type | It displays the event type. |
UAT |
---|
52.66.25.127 |
15.206.45.168 |
Prod |
---|
52.66.101.190 |
3.109.102.144 |
3.111.60.173 |
18.60.134.245 |
18.60.183.142 |
Port |
---|
443 (secured) |