import product catalogue
This commit is contained in:
37
test-api.js
Normal file
37
test-api.js
Normal file
@@ -0,0 +1,37 @@
|
||||
const fetch = require('node-fetch');
|
||||
|
||||
async function test() {
|
||||
const res = await fetch('https://queue.workolik.com/live/api/v1/web/orders/getlocationsummary', {
|
||||
method: 'POST',
|
||||
headers: { 'Content-Type': 'application/json' },
|
||||
body: JSON.stringify({ tenantid: 1135, fromdate: '2026-07-13', todate: '2026-07-13' })
|
||||
});
|
||||
const text = await res.text();
|
||||
console.log('Location Summary:', text);
|
||||
|
||||
const res2 = await fetch('https://queue.workolik.com/live/api/v1/web/orders/getordersummary', {
|
||||
method: 'POST',
|
||||
headers: { 'Content-Type': 'application/json' },
|
||||
body: JSON.stringify({ tenantid: 1135, locationid: 1170, fromdate: '2026-07-13', todate: '2026-07-13' })
|
||||
});
|
||||
const text2 = await res2.text();
|
||||
console.log('Order Summary Peelamedu (1170):', text2);
|
||||
|
||||
const res3 = await fetch('https://queue.workolik.com/live/api/v1/web/orders/getordersummary', {
|
||||
method: 'POST',
|
||||
headers: { 'Content-Type': 'application/json' },
|
||||
body: JSON.stringify({ tenantid: 1135, applocationid: 1170, fromdate: '2026-07-13', todate: '2026-07-13' })
|
||||
});
|
||||
const text3 = await res3.text();
|
||||
console.log('Order Summary Peelamedu (1170) applocationid:', text3);
|
||||
|
||||
const res4 = await fetch('https://queue.workolik.com/live/api/v1/web/orders/getordersummary', {
|
||||
method: 'POST',
|
||||
headers: { 'Content-Type': 'application/json' },
|
||||
body: JSON.stringify({ tenantid: 1135, locationid: 1097, fromdate: '2026-07-13', todate: '2026-07-13' })
|
||||
});
|
||||
const text4 = await res4.text();
|
||||
console.log('Order Summary RS Puram (1097):', text4);
|
||||
}
|
||||
|
||||
test();
|
||||
Reference in New Issue
Block a user