# Create Paywall QR

This endpoint is used to initiate a paywall QR code generation for fiat currency

#### Method

```

POST https://api.ninjapay.me/webextension/api/v1/fiat/paywall/qr

```

#### Parameters

* **id**: `string` - Paywall ID
* **contact**: `string` - contact number of payee

#### Request Body

```javascript
Body (application/json)
{
    "id":"PAYWALLpvIWfx3NNCPw4JW",
    "contact":"9876543210"
}
```

#### Response

```jsx
{
    "status": true,
    "data": {
        "order_id": "FT_RTPL_SOxhqQxplFGgtuopkzHIBg", // paywall transaction order id
        "payment_uri": "upi://pay?pa=paytm-xxxxx@paytm&pn&tid=PYTM&tr=40805802&am=1&cu=INR", //sample URL
        "qr_base64_img": "", // if any qr code image
        "expiry_date": "2024-08-05 05:28:45", // expiry date of payment
        "link_id": "RTLFr9kpzTjhIalhaTaQl2p", // link id
        "super_order_id": "FT_RTPL_SOkPpS3OZxk4kdEtgIa5B6" // super order id
    },
    "message": "Payment url"
}
```

#### Code Example

```jsx

const options = {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
    'x-api-key': 'API_KEY' //Invoice key required
  },
  body: {
    "id":"PAYWALLpvIWfx3NNCPw4JW",
    "contact":"9876543210"
}
};

fetch('https://api.ninjapay.me/webextension/api/v1/fiat/paywall/qr', options)
  .then(response => response.json())
  .then(response => console.log(response))
  .catch(err => console.error(err));
  
```


---

# 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://ninjapay.gitbook.io/ninjapay-api-docs/how-to/api-reference-p2p/plugins/paywalls/create-paywall-qr.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.
