Get templates

Template data of user.

Method

GET https://api.ninjapay.me/webextension/api/v1/fiat/realtime-payment-link/template

Response

{
    "status": true,
    "data": {
        "id": 9,
        "brand_color": "#ff9c1405",
        "accent_color": "#ffe52d2d",
        "currency": "INR",
        "enable_tips": true,
        "redirect_url": "https://www.ninjapay.me",
        "include_order_id": true,
        "webhook_url": "",
        "terms_condition_url": "",
        "default_thanks_msg": "",
        "donation_msg": "",
        "default_template": null,
        "status": null,
        "created_at": "2024-08-16T00:28:24.000Z",
        "updated_at": "2024-08-16T00:42:09.000Z",
        "default_btn_text": "",
        "donation_btn_text": null,
        "donation_percent": "",
        "logo": "www.ninjapay.me/image/hello.png",
        "is_dark_theme": true
    },
    "message": "Template details"
}

Code Example

const params = new URLSearchParams({ page: 1 });

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

fetch('https://api.ninjapay.me/webextension/api/v1/fiat/realtime-payment-link/template', options)
  .then(response => response.json())
  .then(response => console.log(response))
  .catch(err => console.error(err));
  

Last updated