Request Invoice for Quote
Method
POST https://prod.ninjapay.me/sapi/v1/requestQuoteParameters
{
quote_id: string; // The quote ID obtained from the requestQuoteID() method.
callback_url?: string // Add webhook to get response on successful payment.
}
Response
{
"tid": int, // The transaction id of this quote
"sending_asset": string; // "btc" or "usdt" for btc/usdt to inr conversion.
"sending_asset_amount": int; // The amount to pay for fiat conversion.
"fiat_amount": int; // The fiat amount that the upi id will receive.
"lightning_invoice": string, // The Lightning invoice to pay.
"onchain_address": string, // The on-chain address to pay if lightning payment not possible..
"onchain_address_network": string, // BTC, ERC20, BEP20...
"expires_at": int, // The expiry time for the payment quote.
"callback_url": string // The webhook url to get response on successful payment.
"receiver_upi_id": string, // The UPI ID to which the fiat amount will be sent.
"receiver_ninjatag": string // The Ninjatag of the recipient you want quote for.
}
Payment Success Response
Response
Code Example
Last updated