Skip to main content

Refund events

Event typeDescription
refund_requestedA refund has been requested
refund_completedThe refund request has been successfully processed
refund_declinedThe refund request has been declined
refund_failedThe refund request has failed

Payloads​

refund_requested
{
"id": "web_123455",
"event_type": "refund_requested",
"data": {
"id": "pay_12345",
"status": "captured",
"reference": "ord12345",
"timestamp": "2024-12-18T15:37:35Z",
"refund": {
"id": "ref_12345",
"status": "pending",
"reference": "1a2b3c4d5e",
"amount": 10,
"_links": {
"self": {
"href": "https://sandbox.api.paytently.io/payments/pay_12345/refunds/ref_12345",
"method": "GET"
}
}
},
"metadata": {
"key": "value",
},
"_links": {
"self": {
"href": "https://sandbox.api.paytently.io/payments/pay_12345",
"method": "GET"
},
"refund": {
"href": "https://sandbox.api.paytently.io/payments/pay_12345/refunds",
"method": "POST"
}
}
}
}
refund_completed
{
"id": "web_123455",
"event_type": "refund_completed",
"data": {
"id": "pay_12345",
"status": "captured",
"reference": "ord12345",
"timestamp": "2024-12-18T15:37:36Z",
"refund": {
"id": "ref_12345",
"status": "completed",
"reference": "1a2b3c4d5e",
"amount": 10,
"_links": {
"self": {
"href": "https://sandbox.api.paytently.io/payments/pay_12345/refunds/ref_12345",
"method": "GET"
}
}
},
"metadata": {
"key": "value",
},
"_links": {
"self": {
"href": "https://sandbox.api.paytently.io/payments/pay_12345",
"method": "GET"
}
}
}
}
refund_declined
{
"id": "web_123455",
"event_type": "refund_declined",
"data": {
"id": "pay_12345",
"status": "captured",
"reference": "ord12345",
"timestamp": "2024-12-18T15:37:36Z",
"refund": {
"id": "ref_12345",
"status": "declined",
"reference": "1a2b3c4d5e",
"amount": 10,
"_links": {
"self": {
"href": "https://sandbox.api.paytently.io/payments/pay_12345/refunds/ref_12345",
"method": "GET"
}
}
},
"metadata": {
"key": "value",
}
"_links": {
"self": {
"href": "https://sandbox.api.paytently.io/payments/pay_12345",
"method": "GET"
},
"refund": {
"href": "https://sandbox.api.paytently.io/payments/pay_12345/refunds",
"method": "POST"
}
}
}
}
refund_failed
{
"id": "web_123455",
"event_type": "refund_failed",
"data": {
"id": "pay_12345",
"status": "captured",
"reference": "ord12345",
"timestamp": "2024-12-18T15:37:36Z",
"refund": {
"id": "ref_12345",
"status": "failed",
"reference": "1a2b3c4d5e",
"amount": 10,
"_links": {
"self": {
"href": "https://sandbox.api.paytently.io/payments/pay_12345/refunds/ref_12345",
"method": "GET"
}
}
},
"metadata": {
"key": "value",
}
"_links": {
"self": {
"href": "https://sandbox.api.paytently.io/payments/pay_12345",
"method": "GET"
},
"refund": {
"href": "https://sandbox.api.paytently.io/payments/pay_12345/refunds",
"method": "POST"
}
}
}
}