Webhook Topics
RefundCreated
postWebhookrefundCreated
Payload
Example payload
{
"attributes": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"userId": "123e4567-e89b-12d3-a456-426614174000",
"walletId": "123e4567-e89b-12d3-a456-426614174000"
},
"included": [
{
"attributes": {
"amount": 9999,
"message": "Refund processed. Fee: 59 cents",
"reference": "MERCHANT-GENERATED-TOKEN",
"charges": {
"fee": {
"amount": 59,
"type": "pay_by_wallet_refund"
}
},
"deductions": {
"fees": 59
},
"id": "9f755746-13cb-4d0b-81f2-3b4f1b44f6d8"
}
}
]
}Response
Return a 200 status to indicate that the data was received successfully
Changes
Webhooks have no change history: a webhook is keyed by its event name rather than a path and method, so no recorded change can name it.