Skip to main content

payment_refunded

payment_refunded

Smart Glocal sends you this webhook after performing a refund. It contains information on the payment session, including all the details about the refund.
If the refund was made as part of the chargeback procedure, the refunds object will contain "is_chargeback": true.

Parameters

NameMandatoryTypeDescription
type+stringWebhook type: payment_refunded
session+objectPayment session

Example

curl - X POST\
https://partner.com \
-H 'content-type: application/json' \
-H 'X-PARTNER-SIGN: signature' \
-d '{
"type": "payment_refunded",
"session": {
"id": "ps_3230",
"status": "accepted",
"created_at": "2024-05-27T02:03:00.000000Z",
"updated_at": "2024-05-27T02:03:00.000000Z",
"acquiring_payments": [{
"id": "pm_2705",
"status": "succeeded",
"created_at": "2024-05-27T02:03:00.000000Z",
"finished_at": "2024-05-27T02:03:00.000000Z",
"customer": {
"reference": "lucky"
},
"payment_details": {
"type": "card",
"card": {
"brand": "visa",
"last4": "4242",
"bin":"444600"
}
},
"amount_details": {
"amount": 1000,
"currency": "usd"
},
"transaction_info": {
"rrn": "425307614918",
"auth_code": "057441"
},
"metadata": "good",
"refunds": [{
"id": "rf_203",
"status": "accepted",
"created_at": "2024-05-27T02:03:00.000000Z",
"finished_at": "2024-05-27T02:03:00.000000Z",
"is_chargeback": true,
"transaction_info": {
"rrn": "425307614200",
"auth_code": "123456"
},
"amount_details": {
"amount": 1000,
"currency": "usd"
}
}]
}]
}
}'