Request Voucher
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
Webhook Response
Code Example
Last updated