The webhook will be sent if the settlement is Initiated, Processed and Attempt Failed.
Sample Response
Copied !
{
"event" : "settlement.initiated",
"payload": {
"settlementId" : "abca-defa-kadi-dald",
"state" : INITIATED,
"utr" : "UTR100291",
"amount" : 100,
"merchantId" : "merchantId",
"lastAttemptErrorCode": "",
"lastAttemptErrorDescription" : "",
"lastUpdatedAt" : 121211331
}
}
Response Parameters
Parameter Name | Type | Description |
---|---|---|
event | String | The Webhook event type. Possible Values: ● settlement.initiated ● settlement.processed ● settlement.attempt.failed |
payload | Object | The settlement related details |
payload .settlementId | String | Settlement Id generated by PhonePe |
| String | Current State of the settlement ● INITIATED ● PROCESSED ● ATTEMPT_FAILED |
| String | UTR reference of the settlement |
| Long | Settlement Amount |
| String | MID of the merchant for which the settlement is initiated. |
| String | Will be present only if the state is ATTEMPT_FAILED. – The Error Code for the failure |
| String | Will be present only if the state is ATTEMPT_FAILED. – The Error message for the failure |
| DateTime | Epoch Timestamp of the last status updated (in milliseconds) |