Keep your customers in the loop with real-time order updates. Invobot provides a hassle-free update mechanism that keeps your customers informed at each stage of the delivery process. To update an order, follow these steps:
var axios = require('axios');
var data = JSON.stringify({
"State": Packed,
"State_ar": Packed(ar),
"Order_ID": 12345
});
var config = {
method: 'post',
url: 'https://api.invobot.net/Integration/v1.0/update/(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);
});