# 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>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.kitegateway.com/prn/generate-prn.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
