You need to create a 'request' to receive payments through Ninjapay. A request contains both a Lightning Network BOLT11 invoice, capable of accepting payments through the LN protocol for standard lightning transactions. We recommend using only "lbtc" lightning wallet for all your use-cases, since it's built for instant almost zero fee micro payments.
Method
POST https://api.ninjapay.me/lapi/v1/receive
Parameters
Body (application/json){amount:int;// Amount should be entered in BTC, not SATreceiver_ninjatag?:string;// Add this username if you want to request for other usersfiat_value?:int;fiat_currency?:string;// INR, USD, EUR...description?:string;expires_in?:int;// The expiry of payment request in mins for hosted checkoutcallback_url?:string;// only works for lbtc_wallet currentlysuccess_url?:string;// Redirected to this after success from hosted checkoutcustomer_name?:string;order_id?:string;extra?:{};}