Webhooks
Webhooks let Cashramp push real-time updates to your server whenever a transaction changes state—success, cancellation, chargeback, and more.
Event Payload
Field
Type
Description
Common event_type Values
event_type ValuesEvent
Trigger
Example Payloads
{
"event_type": "payment_request.updated",
"data": {
"id": "VHlwZXM6OkNhc2hyYW1wOjpBUEk6Ok1lcmNoYW50UGF5bWVudFJlcXVlc3QtOGI0OTdmZTYtOTljYS00MDQwLTkzNWQtMTY2OGJhNGUyNzU2",
"reference": "test_ref_022",
"status": "completed",
"customer": {
"id": "TWVyY2hhbnRDdXN0b21lci0xZmNiYTgzNi01MDNmLTQyMjYtYjgzYy02NzIzNjMxNDM0YWI=",
"email": "[email protected]",
"country": "GH",
"currency": "GHS"
},
"p2p_payment": {
"id": "UDJQUGF5bWVudC0xOGRmNmJiNC1hNmQ2LTQyMWUtYjQ0MS04YmFiMmE2YzQ5Yjc=",
"exchange_rate": "7.95",
"amount": "159.0",
"amount_usd": "20.0",
"fee": "0.3"
},
"created_at": "2025-05-02T12:43:40.914Z",
"payment_link": "https://useaccrue.com/hosted/pay/..."
}
}Responding to Webhooks
Best Practices
Last updated