Request Voucher
Create a withdraw voucher request to be redeemed by anyone. Money will be deducted from your lightning wallet.
Method
POST https://api.ninjapay.me/lapi/v1/requestVoucher
Parameters
Body (application/json)
{
amount: number, // The amount in BTC(not SAT) per voucher
voucher_count: number; // Number of vouhers required (1min - 100max)
from?: string; // Optional From title for voucher giveaway
title?: string; // Title/message of the voucher
expiry?: number; // Optional voucher expiry in mins
receiver_email?: string, // Add this email ID if you want to send the voucher to an email. Note: voucher_count has to be one for email trigger!
unique_design?: bool, // Add "true" if you want to use your own custom design for voucher.
unique_design_url?: string, // Custom voucher design url in 640x360px(16:9) in size.
callback_url?: string, // Add this if you want a success response upon
}
Response
Note: By default for static voucher url's, a ninjapay user(@username) can redeem only once. This will avoid ass-milking.
Webhook Response
Code Example
Last updated