Dashboard Stats

Request wallet info of the account. The application needs to provide a wallet type.

Method


GET https://prod.ninjapay.me/uapi/v1/p2p/paymentLink/dashboard

Parameters

Body (application/json)
 {
  fetch_by: string; // "month", "date" supported currently
  month?: string; // "jan", "feb", "mar"....
  year?: int; // 2021, 2022, 2023...
  date?: int // 01, 02, 03....31 (not required if fetch_by is "month")
}

Response

{"pending": <int>, "approved": <int>, "declined": <int>, "pay_link": <string>}

Example


const options = {
  method: 'GET',
  headers: {
    'Content-Type': 'application/json',
    Authorization: 'API_KEY'
  },
  body: '{"wallet":"usdt, lbtc"}'
};

fetch('https://prod.ninjapay.me/sapi/v1/p2p/paymentLink/dashboard', options)
  .then(response => response.json())
  .then(response => console.log(response))
  .catch(err => console.error(err));
  

Last updated