Create
Request to create an invoice to be paid
❓What is this request for ?
With this request you can create an invoice with a specific amount, your customer has just to pay your invoice to give you the amount.
You have a limit of 8 invoices
😑 Request example
const axios = require("axios")
async function listInvoice(paymentCode, UserId) {
const data = { event: "invoicelist", data: { UserId: `${UserId}`, paymentCode: `${paymentCode}` } };
try {
const response = await axios.post('https://sellizon.epicbots.xyz/public', data, {
headers: {
'Content-Type': 'application/json',
}
});
return response.data;
} catch (error) {
console.error('Error:', error.response ? error.response.data : error.message);
return error.response ? error.response.data : { success: false, message: error.message };
}
}
await listInvoice("hjndrg54-5r4d1gd", "123456789")
Last updated