Record payment

Record offline payments associated payment links. It will increase the received amount field and going to reduce the pending amount.

Method

POST https://api.ninjapay.me/webextension/api/v1/fiat/realtime-payment-link/record-payment

Parameters

  • link_id: String - Payment link id, generate on create real time payment link(required)

  • amount: Number - Amount of need to generate.(required)

Parameters
Important points

amount

Amount can pass less than payment link amount only when partial is true.


Body (application/json)
 {

    "link_id": "Link id of payment link",
    "amount": 100.00
}

Response

{
    "status": true,
    "data": {},
    "message": "Record added !"
}

Code Example


const options = {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
    'x-api-key':'API_KEY'
  },
  body: '{ "link_id": "Link id of payment link", "amount": 100}'
};

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

Last updated