Resend webhooks
Things happen; systems go down, Murphy's law decides to raise its ugly head, whatever the case when these things happen, we want to make sure that you're covered. To this end, we have an endpoint that allows you to resend a webhook if you had missed one. It doesn't matter how long ago a transaction happened, you can always trigger a webhook "resend" using the transaction reference Klump generated at the end of that transaction.
When a resend happens, Klump will send you the most recent state of that webhook event.
Sample code to resend webhook.
curl --location --request GET 'https://api.useklump.com/v1/transactions/:reference/resend-webhook' \
--header 'Content-Type: application/json' \
--header 'klump-secret-key: {{KLUMP_SEC_KEY}}'
:reference
is a required field.
Sample response.
{
"state": "success",
"data": {
"id": "65e7c9c6-84cd-4f50-28279a49f81b",
"reference": "KLP-1648-123456-7891",
"amount": "26150.00",
"status": "successful",
"currency": "NGN",
"meta_data": {
"customer": "Elun Musk",
"email": "[email protected]",
"phone": "9088988888",
"invoice": "65774",
"user": "5074"
},
"is_live": true,
"shipping_fee": null,
"created_at": "2022-03-28 22:04:30.828+00",
"customer": {
"id": "b81b9c2a11f-ab60-a2b2ba2a1cde",
"firstname": "Elon",
"lastname": "Musk",
"email": "[email protected]",
"phone": "+23470000000"
},
"items": [
{
"id": "ff1b-e25b-4b9c-b0e7-29755d2897d2",
"transaction_id": "65e7-84cd-4f50-8262-28279a49f81b",
"name": "Hosting - Invoice #65774",
"image_url": "https://s3.eu-west-1.amazonaws.com/stagingcdn.useklump.com/logo/1645969953584_logo.png",
"item_url": "https://merchant.com/product/football-shoes",
"unit_price": "26150.00",
"quantity": 1,
"created_at": "2022-03-28 22:04:30.834+00",
"updated_at": null,
"environment": "live"
}
]
}
}
Updated over 2 years ago