Create order
let orderRequest = {
"comment": "my first order",
"limit": 2000,
"limit_per_column": {
"column_index": 4,
"limits": {
"01": 30,
"05": 50
}
}
}
let storageId = 123;
let filterId = 456;
fetch("https://gateway.sirdata.io/api/v1/public/customer/storage/"+storageId+"/filter/"+filterId+"/order", {
"method": "POST",
"headers": {
"Content-Type": "application/json",
"x-api-token": "XXXXX-XXXXX-XXXXX-XXXXX",
},
"body": JSON.stringify(orderRequest)
})
.then(response => {
console.log(response);
})
.catch(err => {
console.error(err);
});Last updated