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

# Generate PRN

The PRN API allows merchants to create unique payment references for customers. Integrate the API to generate secure, traceable PRNs with a simple request, specifying amount and customer details. The API returns a unique reference, enabling efficient transaction tracking. Streamline payment workflows and enhance user experience with reliable PRN generation for seamless merchant operations.

**Live**

```javascript
POST https://kitegateway.com/v1/collections/prn
```

**Sandbox**

```
POST  https://sandbox.kitegateway.com/v1/collections/prn
```

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

#### Request

| Header            | Value                  | Required |
| ----------------- | ---------------------- | -------- |
| **Content-Type**  | **`application/json`** | YES      |
| **Accept**        | **`application/json`** | YES      |
| **Authorization** | **`JWT ***`**          | YES      |
| {% endtab %}      |                        |          |

{% tab title="Request" %}

#### Request

| Parameter Name      | Type    | Description                                         | Required |
| ------------------- | ------- | --------------------------------------------------- | -------- |
| merchant\_reference | string  | The Merchant reference of the transaction to track. | YES      |
| amount              | integer | The amount of money that should be transacted       | YES      |
| currency            | string  | The currency that should be used to transact        | YES      |
| narration           | string  | Description of what is being paid for               | YES      |
| {% endtab %}        |         |                                                     |          |

{% tab title="Response" %}

<table data-header-hidden><thead><tr><th width="238">Parameter Name</th><th width="151">Type</th><th width="357">Description</th></tr></thead><tbody><tr><td>Parameter Name</td><td>Type</td><td>Description</td></tr><tr><td>id</td><td></td><td></td></tr><tr><td>kitegateway_reference</td><td>string</td><td>The Kitegateway reference of the transaction to refund. This is usually included in the API request responses or IPN's</td></tr><tr><td>transaction_amount</td><td>integer</td><td>The amount of money to refund</td></tr><tr><td>transaction_currency</td><td>string</td><td>The currency being refunded</td></tr><tr><td>merchant_reference</td><td>string</td><td>The reference provided by the merchant</td></tr><tr><td>transaction_status</td><td>string</td><td>One of either PENDING, COMPLETED</td></tr><tr><td>transaction_type</td><td>string</td><td>One of either COLLECTION, DISBURSEMENT</td></tr></tbody></table>
{% endtab %}
{% endtabs %}

You can also generate the PRN by Navigation to business account and clicking Generate PRN

<figure><img src="/files/VGW084RNDZoXRHq9HQto" alt=""><figcaption></figcaption></figure>
