List
Request to list all your invoices
❓What is this request for ?
With this request you can get in an array all your invoice with their informations {ID,Amount,BuyerId,creatorId), to check if an invoice is paid or not.
😑 Request example
const axios = require("axios")
async function createInvoice(Amount, paymentCode, creatorId) {
const data = { event: "invoicecreate", data: { creatorId: `${creatorId}`, paymentCode: `${paymentCode}`, Amount: `${Amount}` } };
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 createInvoice(50, "hjndrg54-5r4d1gd", "123456789")
Last updated