# List Paywalls

This endpoint retrieves all paywall information for fiat currency

#### Method

<pre><code><strong>GET https://api.ninjapay.me/webextension/api/v1/fiat/paywall
</strong></code></pre>

#### Response

```jsx
{
    "status": true, // Boolean indicating the success status of the response.
    "data": [       // Array containing paywall objects.
        {
            "id": "PAYWALLpvIWfx3NNCPw4JW", // Unique identifier for the paywall.
            "price": "99",                  // Price of the paywall content, represented as a string.
            "title": "27 July Trailer",            // Title of the paywall content.
            "content": "https://www.youtube.com/watch?v=gqiHUSZJJpg", // URL of the content being paywalled.
            "content_type": "URL",          // Type of the content, here it's a URL.
            "hide_url": false,              // Boolean indicating whether the URL should be hidden.
            "created_at": "2024-08-02T05:18:15.000Z", // Timestamp of when the paywall was created.
            "currency": "INR",              // Currency for the price, here it's Indian Rupees.
            "extras": {},                 // Additional data.
            "link": "https://www.ninjapay.me/paywall/PAYWALLpvIWfx3NNCPw4JW" // Link to the paywall.
        }
}

```

#### Code Example

```jsx

const options = {
  method: 'GET',
  headers: {
    'Content-Type': 'application/json',
    'x-api-key': 'API_KEY' //Invoice key required
  }
  };

fetch('https://api.ninjapay.me/webextension/api/v1/fiat/paywall', 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-upi/plugins/point-of-sale-pos/list-paywalls.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.
