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

# Refunds Payment

In order to interact with PAYON's API. First you need to [Obtain your API Key](/platform-application-settings/obtain-your-api-keys.md). Next  generate [API's signature](/getting-started-1/generate-checkout-uri.md#get-signification) for authorization between Merchant and PAYON's server.  You can follow below link to go though how to generate our API's signature.

{% hint style="info" %}
[Generate API Signature](/payons-library/how-to-use-payon-library.md)[ ](/payons-library/how-to-use-payon-library.md)
{% endhint %}

| Environment | URL                                                            |
| ----------- | -------------------------------------------------------------- |
| TEST        | [http://pgtest.payon.com.k](http://pgtest.payon.com.kh:36605)h |
| PRODUCTION  | [https://pg.payon.com.kh](https://pg.payon.com.kh:35505)       |

## Payment Refund Request

<mark style="color:green;">`POST`</mark> `{{URL}}/pg/refund`

#### Request Body

| Name       | Type   | Description                                                                                                                                               |
| ---------- | ------ | --------------------------------------------------------------------------------------------------------------------------------------------------------- |
| sign       | string | Sign is a digital signature for verifying the authenticity of digital messages or documents. Only a valid API's sign can be interact with PAYON's server. |
| txId       | string | Transaction's Identification. Generate by merchant system.                                                                                                |
| termId     | string | Terminal's Identification                                                                                                                                 |
| merchantId | string | Merchant's Identification                                                                                                                                 |

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

```
{
    "txId": "2435",
    "merchantId": "EPAY00000000001",
    "termId": "PAYONGT1",
    "amount": 1.00,
    "currency": "USD",
    "resultCode": "0000",
    "resultMessage": "Success",
    "approvalNo": "538433",
    "approvalDate": "09122020110737",
    "acsUrl": null,
    "refNo": "000004538433",
    "transactionAmount": null
}
```

{% endtab %}
{% endtabs %}
