> For the complete documentation index, see [llms.txt](https://qosic.gitbook.io/qospay/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://qosic.gitbook.io/qospay/api-documentation/remboursement.md).

# Remboursement

La requête de remboursement (Refund) permet de rembourser le montant débité sur le compte Mobile Money du client. Les partenaires doivent coder l'application en fonction des exigences des champs d'API afin que l'application puisse envoyer des requêtes correctes.

Endpoint URL:

```url
POST {context}/QosicBridge/user/refund
```

***

<table><thead><tr><th width="120">Element</th><th width="205">Type</th><th>Decription</th></tr></thead><tbody><tr><td>transref</td><td><mark style="color:orange;"><code>string:MANDATORY</code></mark></td><td>The initial transaction reference used for RequestPayment. This same transref should be used in call to request for a refund.</td></tr><tr><td>clientid</td><td><mark style="color:orange;"><code>string:MANDATORY</code></mark></td><td>A unique generated id for each third-party application. This id is generated by QoS and should be included in all payment requests.</td></tr><tr><td></td><td></td><td></td></tr></tbody></table>

{% tabs %}
{% tab title=" Request" %}

{% code title="Content-Type: application/json\[Basic Authentication headers]…" overflow="wrap" lineNumbers="true" %}

```json
     {
            "transref" : "56789",
            "clientid" : "QOS3P001"
        }
```

{% endcode %}
{% endtab %}

{% tab title="Success" %}

{% code title="" overflow="wrap" lineNumbers="true" %}

```json
         {          
            "responsecode": "00",
            "responsemsg": "OPERATION SUCCESSFUL",
            "transref": "56789",
            "comment": null
          }
```

{% endcode %}
{% endtab %}

{% tab title="Error" %}

{% code title="" overflow="wrap" lineNumbers="true" %}

```json
         {
            "responsecode": "00",
            "responsemsg": "OPERATION SUCCESSFUL",
            "transref": "56789",
            "comment": null
          }
```

{% endcode %}
{% endtab %}
{% endtabs %}
