# Mandiri Direct Debit

### Online Refund

This endpoint is used to create refund request for previous successful payment. Merchant can request a transaction refund to DOKU. Full refund and partial refund are available to be requested.

**Online Refund Flow**&#x20;

<figure><img src="https://3092822868-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqCxtvLoJNNxvp4U7kLHd%2Fuploads%2F4BdAaA6ku742msJ2XGGy%2F24112023%20Checkout_Refund%20(1).png?alt=media&#x26;token=6d270683-597e-498f-8691-b84a63ac1673" alt=""><figcaption><p>Online Refund Flow - Mandiri Direct Debit</p></figcaption></figure>

#### API Endpoint

<table><thead><tr><th width="196">Environment</th><th>Endpoint</th></tr></thead><tbody><tr><td>HTTP Method</td><td>POST</td></tr><tr><td>API Sandbox</td><td><a href="https://api-sandbox.doku.com">https://api-sandbox.doku.com</a></td></tr><tr><td>API Production</td><td><a href="https://api.doku.com">https://api.doku.com</a></td></tr><tr><td>Path</td><td><code>.../direct-debit/core/v1/debit/refund</code></td></tr></tbody></table>

**Sample of Request Header, Request Body and Response Body**

Notes:&#x20;

Parameter with (\*) is mandatory&#x20;

Paramater without (\*) is optional/conditional

{% openapi src="<https://3092822868-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqCxtvLoJNNxvp4U7kLHd%2Fuploads%2FkLiXayqjYPNkxj1Afp1R%2FDirect%20Debit%20Mandiri%20SNAP%20-%20Revised.yaml?alt=media&token=7ecbd17a-6112-4daa-a818-b5b96b4761eb>" path="/direct-debit/core/v1/debit/refund" method="post" %}
[Direct Debit Mandiri SNAP - Revised.yaml](https://3092822868-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqCxtvLoJNNxvp4U7kLHd%2Fuploads%2FkLiXayqjYPNkxj1Afp1R%2FDirect%20Debit%20Mandiri%20SNAP%20-%20Revised.yaml?alt=media\&token=7ecbd17a-6112-4daa-a818-b5b96b4761eb)
{% endopenapi %}
