m2pfintech
API LibraryWebhooks

Collect Request Notification Webhook

Webhook endpoint called by M2P to notify the partner when a new collect request is received for the users VPA. The partner app should display this as a notification prompting the user to approve or decline the collect request.

POST
/webhook/collect/notification

Request Body

application/json

txnId?string

Collect transaction ID

payerVpa?string

VPA of the user being collected from

payeeVpa?string

VPA of the requester

payeeName?string

Name of the requester

amount?string

Requested amount

remarks?string

Collect request remarks

expiry?string

Collect request expiry time

Formatdate-time
profileId?string

Profile ID of the payer

Response Body

application/json

curl -X POST "https://sandbox-upi-api.m2pfintech.com/webhook/collect/notification" \  -H "Content-Type: application/json" \  -d '{    "txnId": "COLLECT-TXN-UUID-12345",    "payerVpa": "amit.patel@indie",    "payeeVpa": "requester@bank",    "payeeName": "Service Provider",    "amount": "1500.00",    "remarks": "Monthly dues",    "expiry": "2026-03-02T14:30:00Z",    "profileId": "c82e4f19-7b3a-4d6e-9f01-ab3456789def"  }'
{
  "status": "OK"
}