Payment

Request to make a payment trought Sellizon api

What is this request for ?

With this request you can send money to another sellizon user.

Customer IDs are currently discord IDs. Soon, the login will be a username associated with your e-mail address.

😑 Request example

const axios = require("axios")
async function makePayment(userId, RecipientId, paymentCode, Amount) {
    const data = { event: "pay", data: { paymentCode, UserId: `${userId}`, RecipientId: `${RecipientId}`, 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 null
    }
}

await makePayment("12346", "98764", "hjndrg54-5r4d1gd", "24,9")

Last updated