Detail Paywall

This endpoint retrieves all paywall information for particular paywall ID

Method

GET https://api.ninjapay.me/webextension/api/v1/fiat/paywall/detail/PAYWALLpvIWfx3NNCPw4JW

Response

{
    "status": true, // Boolean indicating the success status of the response.
    "data": {
        "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.
        "hide_url": true,  // Boolean indicating whether the URL should be hidden.
        "created_at": "2024-08-05T05:14:54.000Z", // Timestamp of when the paywall was created.
        "currency": "INR", // Currency for the price, here it's Indian Rupees.
        "extras": {},  // Additional data.
        "image": "https://ninjapay.me/profile/883b92a273.jpg", //ninjapay profile avatar url
        "username": "light" // ninjapay username
    },
    "message": "Paywall details" // response message
}

Code Example


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/detail/PAYWALLpvIWfx3NNCPw4JW', options)
  .then(response => response.json())
  .then(response => console.log(response))
  .catch(err => console.error(err));
  

Last updated