Create order
When a filter satisfy your need you can create an Order. If you have a rate card associated to your account the status will be automatically set as ACCEPTED when the Order is ready, WAITING_VALIDATION otherwise to be updated be your sales contact. Steps:
1
let orderRequest = {
2
"comment": "my first order",
3
"limit": 2000,
4
"limit_per_column": {
5
"column_index": 4,
6
"limits": {
7
"01": 30,
8
"05": 50
9
}
10
}
11
}
12
let storageId = 123;
13
let filterId = 456;
14
15
fetch("https://gateway.sirdata.io/api/v1/public/customer/storage/"+storageId+"/filter/"+filterId+"/order", {
16
"method": "POST",
17
"headers": {
18
"Content-Type": "application/json",
19
"x-api-token": "XXXXX-XXXXX-XXXXX-XXXXX",
20
},
21
"body": JSON.stringify(orderRequest)
22
})
23
.then(response => {
24
console.log(response);
25
})
26
.catch(err => {
27
console.error(err);
28
});
Copied!
If a limit per column has been set you can retrieve the volume per value limit using the Get Order https://openapi.sirdata.io/customer/#tag/order/paths/~1customer~1order~1{id}/get Property table.volume_per_limit contains volume by values. table.row_count is the total volume
Copy link