About Webhook Payload Viewer
A webhook is an automatic HTTP request that one service sends to another when something happens, such as a payment, a new order or a code push. The payload is usually a single line of JSON, which is hard to read in logs or in a request inspector.
Paste the payload and this viewer validates it and prints it with indentation, so you can see the event type, the nested data object, IDs and timestamps at a glance. It runs in your browser, so the content is not sent to NHP Learning. Even so, remove secrets and personal data before pasting payloads into any online tool.
How to use Webhook Payload Viewer
- Copy the raw JSON body of the webhook from your log or the provider dashboard.
- Paste it into the input box and click Run Tool.
- Read the structure, then copy the fields you need into your handler code.
Example
Input
{"event":"payment.captured","id":"evt_1001","created_at":1767225600,"data":{"amount":49900,"currency":"INR","status":"captured","customer":{"name":"Aman","email":"aman@example.com"},"items":[{"sku":"php-course","qty":1}]}}Output
{
"event": "payment.captured",
"id": "evt_1001",
"created_at": 1767225600,
"data": {
"amount": 49900,
"currency": "INR",
"status": "captured",
"customer": {
"name": "Aman",
"email": "aman@example.com"
},
"items": [
{
"sku": "php-course",
"qty": 1
}
]
}
}Common uses
- Understanding the shape of an event before you write the code that handles it.
- Debugging why a handler fails on a particular payload.
- Sharing a readable example with a teammate or a support team.
Privacy and safety
This tool runs in your browser. The text you enter is processed on your device and is not sent to NHP Learning.
Frequently asked questions
How do I know the payload is genuine?
Check the signature header the provider sends, usually an HMAC of the raw body calculated with your webhook secret. Never trust a payload on its content alone.
Why does validation fail?
The input is probably not JSON, for example form-encoded data, or the body was cut off. Paste the complete raw body.
How do I convert the timestamps?
Many payloads use Unix time. Paste the value into the Timestamp Converter.