Notifications history
This endpoint allows you to fetch all webhook event history
POST
https://api.oneappgo.com/v1/webhookevents
Headers
Name
Type
Description
authorization*
String
SECRET_KEY
{
"status": true,
"msg": "Notifications Retrieved",
"data": [
{
"event_type": "transactions",
"request_time": "Sat 12-Oct-2024 01:27 pm",
"response_time": "Sat 12-Oct-2024 01:45 pm",
"reqtimeago": "1 month, 2 days, 22 hours, 38 minutes, 9 seconds ago",
"reference": "IB19CD17287K705WUSD",
"resend_resp": "",
"requestbody": {
"event_type": "transactions",
"event_status": "success",
"card_id": "92eb3-a05b-e9a2b8f30fx0",
"paid_through": "virtualcard",
"type": "virtualcard_issuance",
"trans_status": "01",
"transmode": "test",
"reference": "IB19CD17287K705WUSD",
"card_holder": "John Doe",
"tofund_amount": "10",
"amount_charged": 12,
"card_brand": "Mastercard",
"masked_cardpan": "1088********0829",
"fee": 2,
"tracking_id": "BLD212065",
"customer_id": "",
"client_id": "1",
"transaction_type": "Debit",
"currency": "USD",
"env": "test",
"CustomerDetails": {
"customer_name": "John Doe",
"customer_email": "[email protected]",
"customer_phone": "07012345678",
"customer_city": "Ikeja",
"customer_state": "Lagos State",
"customer_country": "Nigeria"
},
"transerror": "0"
},
"respbody": "",
"resphttpcode": "0",
"canrepush": true
},
{
"event_type": "transactions",
"request_time": "Sat 12-Oct-2024 12:47 pm",
"response_time": "Sat 12-Oct-2024 01:05 pm",
"reqtimeago": "1 month, 2 days, 23 hours, 18 minutes, 9 seconds ago",
"reference": "MD728733645K178WUSD",
"resend_resp": "",
"requestbody": {
"event_type": "transactions",
"event_status": "success",
"card_id": "b9fe30-28e7x-3f5-0bab42",
"paid_through": "virtualcard",
"trans_status": "01",
"transmode": "test",
"reference": "MD728733645K178WUSD",
"card_holder": "John Doe",
"tofund_amount": "10",
"amount_charged": 12,
"card_brand": "Mastercard",
"masked_cardpan": "1088********0829",
"fee": 2,
"tracking_id": "BLD212065",
"customer_id": "",
"client_id": "1",
"transaction_type": "Debit",
"currency": "USD",
"env": "test",
"CustomerDetails": {
"customer_name": "John Doe",
"customer_email": "[email protected]",
"customer_phone": "07012345678",
"customer_city": "Ikeja",
"customer_state": "Lagos State",
"customer_country": "Nigeria"
},
"transerror": "0"
},
"respbody": "",
"resphttpcode": "0",
"canrepush": true
}
}
Take a look at how you might do this:
curl --location 'https://api.oneappgo.com/v1/webhookevents' \
--header 'Authorization: Bearer SECRET_KEY' \
--header 'Content-Type: application/json' \
Last updated
Was this helpful?