> For the complete documentation index, see [llms.txt](https://aplazo.gitbook.io/aplazo-integrations/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://aplazo.gitbook.io/aplazo-integrations/online-api/other-flows/refunds-flow.md).

# Refunds Flow

A refund is the process to request the refund of a partial or total amount from a payment request that had been confirmed by Aplazo to the merchant. This can't be undone.

{% stepper %}
{% step %}

### Authenticate

* Send a request to the authentication endpoint to retrieve a Bearer token.
* Use this token to authenticate subsequent requests.
  {% endstep %}

{% step %}

### Request Refund

* Request a refund using the [Refund API](/aplazo-integrations/api-reference/online-api/request-a-refund.md). Aplazo will respond with an HTTP Status `200 OK` if the refund request was created successfully.
  {% endstep %}
  {% endstepper %}

{% hint style="info" %}
As soon as you get HTTP 200 OK response status, you can consider the refund as successful, although the refund status might not be `APPROVED` yet.
{% endhint %}

## Refunds Sequence Diagram

<figure><img src="https://1083542398-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fkw5JIHAGdl5dlteKuPH4%2Fuploads%2FBvqoQgpmNhWuTPMN8biR%2Fimage.png?alt=media&amp;token=f871e51d-bc9f-45a2-a06c-d1606ccc5d00" alt=""><figcaption></figcaption></figure>
