> For the complete documentation index, see [llms.txt](https://docs.verifone.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.verifone.com/api-reference/open-api-references/checkout/refund-preview.md).

# 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.

{% hint style="info" %}
This endpoint returns a preview only. No funds are moved. To process the refund, use the Transactions API.
{% endhint %}

## How It Works

{% stepper %}
{% step %}

### Identify the completed checkout

Retrieve the `checkoutId` of the session you want to refund using `GET /v2/checkout/{checkoutId}`. Confirm its status is `COMPLETED`.
{% endstep %}

{% step %}

### Request the refund preview

Call `POST /v2/checkout/refund/preview` with the `checkoutId` and the amount you intend to refund. The response returns the calculated breakdown.
{% endstep %}

{% step %}

### Review the breakdown

Inspect the preview response before presenting it to the merchant or triggering an actual refund via the Transactions API.
{% endstep %}
{% endstepper %}

## API Reference

## Refund Preview

{% openapi src="/files/2a1a4293ec587ee0129ad1caaed6983120845ba1" path="/v2/checkout/refund/preview" method="post" %}
[a477f48dd9168bd2ee1077c6399dab106e5491bf785fbde57185db0fcb31d32b.yaml](https://content.gitbook.com/content/OiXbo96Og9EN7rz2U44K/blobs/guUKPLHPZbgfg8qR8yIs/a477f48dd9168bd2ee1077c6399dab106e5491bf785fbde57185db0fcb31d32b.yaml)
{% endopenapi %}

***

See [Checkout Sessions](/api-reference/open-api-references/checkout/checkout-sessions.md) for how to retrieve a checkout ID.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.verifone.com/api-reference/open-api-references/checkout/refund-preview.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
