Refund Preview
The Refund Preview endpoint calculates the expected refund breakdown for a completed checkout session — including any fees, taxes, or partial amounts — without processing an actual refund. Use it to display an accurate refund summary to the merchant or customer before submitting a refund request.
How It Works
API Reference
Refund Preview
HTTP Basic authentication using entity credentials (username:password encoded in Base64).
Original refund amount.
Network fee.
Final amount to be refunded.
Currency code
Refund transaction id
Sale transaction id
Entity Id can be located on the organization level as Organization ID (Administration > Organizations > [Organization] > Organisation ID value)
Reference provided by Merchant to identify the Checkout and the transaction initiated from it
^[^=+\-@].*Expiry time of the Refund preview page defaults to 14 days from creation time. If a user tries to visit or use an expired Refund preview, an error will be shown.
Reason for refund
Entity name
URL belonging to the Merchant website, where the Customer would be redirected after the Refund Preview has been completed.
Whether email notification required or not.
trueSuccessful
Refund preview ID
URL of the Refund preview
Bad Request
Unauthorized
Forbidden
Internal Server Error
POST /oidc/checkout-service/v2/checkout/refund/preview HTTP/1.1
Host: emea.gsc.verifone.cloud
Authorization: Basic username:password
Content-Type: application/json
Accept: */*
Content-Length: 424
{
"amount": 1,
"network_fee": 1,
"final_amount": 1,
"currency_code": "AED",
"refund_transaction_id": "text",
"sale_transaction_id": "text",
"entity_id": "text",
"merchant_reference": "text",
"expiry_time": "2026-01-01",
"reason": "text",
"entity_name": "text",
"merchant_url": "text",
"email_notification_required": true,
"notification_methods": {
"email": {
"email_address": "text"
}
},
"details": {
"crypto": {
"crypto_amount": 1,
"crypto_currency_code": "text"
}
}
}{
"id": "text",
"url": "text",
"details": {
"errors": [
{}
]
}
}See Checkout Sessions for how to retrieve a checkout ID.
Last updated
Was this helpful?
