Invobot automates order creation by syncing directly with your ecommerce platform. Whenever a customer places an order, Invobot captures the details and provides you with the flexibility to send personalized confirmation messages and invoices through Whatsapp. To create an order, simply:
var axios = require('axios');
var data = JSON.stringify({
"Contact": "",
"Billing_Address":{
"Address_line1": "House 30, Maathar street",
"Address_line2": "Buraydah",
"Address_line3": "Al Qasim Province"
},
"Currency": "SAR",
"Items": [{
"Description": "LRD diode",
"Unit_Price": 200
"Quantity": 2,
"Discount": 40,
"Tax": 20,
"Total": 392,
},{
"Description": "arduino pro mini",
"Unit_Price": 100
"Quantity": 1,
"Discount": 40,
"Tax": 20,
"Total": 2460,
}],
"Order_Date":"2025-04-24T08:52:25.490Z",
"Order_ID":12345,
"Shipping_Address":{
"Address_line1": "House 16, Maathar street",
"Address_line2": "Buraydah",
"Address_line3": "Al Qasim Province"
},
"Total": 620,
"Subtotal": 520,
"Shipping": 22,
"Discount": 20,
"Tax": 50,
"lang": "en",
"Payment_Method":"Prepaid"
});
var config = {
method: 'post',
url: 'https://api.invobot.net/Integration/v1.0/order/(Merchant_ID)',
headers: {
'Authorization': 'Bearer API_KEY',
'Content-Type': 'application/json',
'accept': 'application/json'
},
data : data
};
axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data));
})
.catch(function (error) {
console.log(error);
});