SUPPORTED METHODS:
GET
Parameters | Type | Description |
---|---|---|
token (required) | Valid token | |
start_date (required) | date | Start date |
end_date (required) | date | End date |
location (accepted) | varchar | Location |
schedule (accepted) | varchar | Schedule |
skill (accepted) | varchar | Skill |
remote_site (accepted) | integer | Remote site |
exclude_disabled_emp (accepted) | enum (-1, 1) | Exclude disabled employees |
DOCUMENTATION
GET
Retrieves a list of custom reports.
Level 3 is required.
--
Example Request:
{
"module":"reports.daily_peak_hours_new",
"method":"GET",
"request":{
"start_date":"May 1, 2017",
"end_date":"May 5, 2017",
}
}
Example request:
{
"status": 1,
"data": {
"2924": {
"locations": {
"0": {
"1068294": {
"group_name": "1w -test5",
"chunks": [],
"total": 0
},
"1068295": {
"group_name": "Waiter",
"chunks": {
"11": 180,
"12": 360,
"13": 180,
"15": 120,
"16": 180,
"18": 120,
"19": 180
},
"total": 22
},
"1068296": {
"group_name": "1w -test1",
"chunks": {
"11": 180,
"12": 180,
"13": 180,
"14": 180,
"20": 540,
"21": 180,
"22": 180
},
"total": 27
},
"1068297": {
"group_name": "1w -test2",
"chunks": {
"10": 120,
"11": 120,
"15": 180,
"16": 180,
"17": 180,
"23": 180
},
"total": 16
},
"1074363": {
"group_name": "1w -test4",
"chunks": {
"17": 420
},
"total": 7
},
"1419138": {
"group_name": "1w -test7",
"chunks": [],
"total": 0
},
"1419140": {
"group_name": "1w -test3",
"chunks": [],
"total": 0
},
"1419145": {
"group_name": "Test 2",
"chunks": [],
"total": 0
},
"1419167": {
"group_name": "Test 3",
"chunks": [],
"total": 0
},
"1507657": {
"group_name": "1w -test6",
"chunks": [],
"total": 0
},
"1574713": {
"group_name": "API Position",
"chunks": [],
"total": 0
},
"location_name": "Company Default Location"
},
"574075": {
"1419141": {
"group_name": "Pozicija 2",
"chunks": [],
"total": 0
},
"1419142": {
"group_name": "Pozicija 3",
"chunks": [],
"total": 0
},
"1419143": {
"group_name": "Pozicija 4",
"chunks": [],
"total": 0
},
"location_name": "New Humanity"
},
"604850": {
"1491344": {
"group_name": "Test 2",
"chunks": [],
"total": 0
},
"1491345": {
"group_name": "Test 1",
"chunks": [],
"total": 0
},
"location_name": "Lokacija 1"
},
"613062": {
"1497176": {
"group_name": "Sample Position",
"chunks": [],
"total": 0
},
"1497177": {
"group_name": "Barista",
"chunks": [],
"total": 0
},
"1497178": {
"group_name": "Expeditor/Barback",
"chunks": [],
"total": 0
},
"1497179": {
"group_name": "Baker",
"chunks": [],
"total": 0
},
"1551136": {
"group_name": "API test position",
"chunks": [],
"total": 0
},
"1585960": {
"group_name": "Baker",
"chunks": [],
"total": 0
},
"location_name": "Abraco"
}
},
"total": 72
},
"2925": {
"locations": {
"0": {
"1068294": {
"group_name": "1w -test5",
"chunks": {
"19": 60,
"20": 60,
"21": 60,
"22": 60,
"23": 60
},
"total": 5
},
"1068295": {
"group_name": "Waiter",
"chunks": {
"8": 180,
"9": 360,
"10": 180,
"11": 60,
"12": 120,
"13": 60,
"16": 60,
"19": 60
},
"total": 18
},
"1068296": {
"group_name": "1w -test1",
"chunks": {
"0": 135,
"11": 60,
"12": 60,
"13": 60,
"14": 60,
"21": 60,
"22": 60
},
"total": 8.25
},
"1068297": {
"group_name": "1w -test2",
"chunks": {
"8": 120,
"9": 120,
"15": 60,
"16": 60,
"17": 60,
"23": 60
},
"total": 8
},
"1074363": {
"group_name": "1w -test4",
"chunks": {
"17": 60
},
"total": 1
},
"1419138": {
"group_name": "1w -test7",
"chunks": [],
"total": 0
},
"1419140": {
"group_name": "1w -test3",
"chunks": [],
"total": 0
},
"1419145": {
"group_name": "Test 2",
"chunks": [],
"total": 0
},
"1419167": {
"group_name": "Test 3",
"chunks": [],
"total": 0
},
"1507657": {
"group_name": "1w -test6",
"chunks": [],
"total": 0
},
"1574713": {
"group_name": "API Position",
"chunks": [],
"total": 0
},
"location_name": "Company Default Location"
},
"574075": {
"1419141": {
"group_name": "Pozicija 2",
"chunks": [],
"total": 0
},
"1419142": {
"group_name": "Pozicija 3",
"chunks": [],
"total": 0
},
"1419143": {
"group_name": "Pozicija 4",
"chunks": [],
"total": 0
},
"location_name": "New Humanity"
},
"604850": {
"1491344": {
"group_name": "Test 2",
"chunks": [],
"total": 0
},
"1491345": {
"group_name": "Test 1",
"chunks": [],
"total": 0
},
"location_name": "Lokacija 1"
},
"613062": {
"1497176": {
"group_name": "Sample Position",
"chunks": [],
"total": 0
},
"1497177": {
"group_name": "Barista",
"chunks": [],
"total": 0
},
"1497178": {
"group_name": "Expeditor/Barback",
"chunks": [],
"total": 0
},
"1497179": {
"group_name": "Baker",
"chunks": [],
"total": 0
},
"1551136": {
"group_name": "API test position",
"chunks": [],
"total": 0
},
"1585960": {
"group_name": "Baker",
"chunks": [],
"total": 0
},
"location_name": "Abraco"
}
},
"total": 40.25
},
"2926": {
"locations": {
"0": {
"1068294": {
"group_name": "1w -test5",
"chunks": [
60,
60,
60
],
"total": 3
},
"1068295": {
"group_name": "Waiter",
"chunks": {
"8": 60,
"9": 120,
"10": 60,
"11": 60,
"12": 120,
"13": 60,
"16": 60,
"19": 60
},
"total": 10
},
"1068296": {
"group_name": "1w -test1",
"chunks": {
"0": 45,
"11": 60,
"12": 60,
"13": 60,
"14": 60,
"21": 60,
"22": 60
},
"total": 6.75
},
"1068297": {
"group_name": "1w -test2",
"chunks": {
"15": 60,
"16": 60,
"17": 60,
"23": 60
},
"total": 4
},
"1074363": {
"group_name": "1w -test4",
"chunks": {
"17": 60
},
"total": 1
},
"1419138": {
"group_name": "1w -test7",
"chunks": [],
"total": 0
},
"1419140": {
"group_name": "1w -test3",
"chunks": [],
"total": 0
},
"1419145": {
"group_name": "Test 2",
"chunks": [],
"total": 0
},
"1419167": {
"group_name": "Test 3",
"chunks": [],
"total": 0
},
"1507657": {
"group_name": "1w -test6",
"chunks": [],
"total": 0
},
"1574713": {
"group_name": "API Position",
"chunks": [],
"total": 0
},
"location_name": "Company Default Location"
},
"574075": {
"1419141": {
"group_name": "Pozicija 2",
"chunks": [],
"total": 0
},
"1419142": {
"group_name": "Pozicija 3",
"chunks": [],
"total": 0
},
"1419143": {
"group_name": "Pozicija 4",
"chunks": [],
"total": 0
},
"location_name": "New Humanity"
},
"604850": {
"1491344": {
"group_name": "Test 2",
"chunks": [],
"total": 0
},
"1491345": {
"group_name": "Test 1",
"chunks": [],
"total": 0
},
"location_name": "Lokacija 1"
},
"613062": {
"1497176": {
"group_name": "Sample Position",
"chunks": [],
"total": 0
},
"1497177": {
"group_name": "Barista",
"chunks": [],
"total": 0
},
"1497178": {
"group_name": "Expeditor/Barback",
"chunks": [],
"total": 0
},
"1497179": {
"group_name": "Baker",
"chunks": [],
"total": 0
},
"1551136": {
"group_name": "API test position",
"chunks": [],
"total": 0
},
"1585960": {
"group_name": "Baker",
"chunks": [],
"total": 0
},
"location_name": "Abraco"
}
},
"total": 24.75
},
"2927": {
"locations": {
"0": {
"1068294": {
"group_name": "1w -test5",
"chunks": [],
"total": 0
},
"1068295": {
"group_name": "Waiter",
"chunks": {
"8": 60,
"9": 120,
"10": 60,
"11": 60,
"12": 120,
"13": 60,
"16": 120,
"19": 60
},
"total": 11
},
"1068296": {
"group_name": "1w -test1",
"chunks": {
"0": 45,
"11": 60,
"12": 60,
"13": 60,
"14": 60,
"21": 60,
"22": 60
},
"total": 6.75
},
"1068297": {
"group_name": "1w -test2",
"chunks": {
"15": 60,
"16": 60,
"17": 60,
"23": 60
},
"total": 4
},
"1074363": {
"group_name": "1w -test4",
"chunks": {
"17": 60
},
"total": 1
},
"1419138": {
"group_name": "1w -test7",
"chunks": [],
"total": 0
},
"1419140": {
"group_name": "1w -test3",
"chunks": [],
"total": 0
},
"1419145": {
"group_name": "Test 2",
"chunks": [],
"total": 0
},
"1419167": {
"group_name": "Test 3",
"chunks": [],
"total": 0
},
"1507657": {
"group_name": "1w -test6",
"chunks": [],
"total": 0
},
"1574713": {
"group_name": "API Position",
"chunks": [],
"total": 0
},
"location_name": "Company Default Location"
},
"574075": {
"1419141": {
"group_name": "Pozicija 2",
"chunks": [],
"total": 0
},
"1419142": {
"group_name": "Pozicija 3",
"chunks": [],
"total": 0
},
"1419143": {
"group_name": "Pozicija 4",
"chunks": [],
"total": 0
},
"location_name": "New Humanity"
},
"604850": {
"1491344": {
"group_name": "Test 2",
"chunks": [],
"total": 0
},
"1491345": {
"group_name": "Test 1",
"chunks": [],
"total": 0
},
"location_name": "Lokacija 1"
},
"613062": {
"1497176": {
"group_name": "Sample Position",
"chunks": [],
"total": 0
},
"1497177": {
"group_name": "Barista",
"chunks": [],
"total": 0
},
"1497178": {
"group_name": "Expeditor/Barback",
"chunks": [],
"total": 0
},
"1497179": {
"group_name": "Baker",
"chunks": [],
"total": 0
},
"1551136": {
"group_name": "API test position",
"chunks": [],
"total": 0
},
"1585960": {
"group_name": "Baker",
"chunks": [],
"total": 0
},
"location_name": "Abraco"
}
},
"total": 22.75
},
"2928": {
"locations": {
"0": {
"1068294": {
"group_name": "1w -test5",
"chunks": [],
"total": 0
},
"1068295": {
"group_name": "Waiter",
"chunks": {
"8": 60,
"9": 120,
"10": 60,
"11": 60,
"12": 120,
"13": 60,
"19": 60
},
"total": 9
},
"1068296": {
"group_name": "1w -test1",
"chunks": {
"0": 45,
"11": 60,
"12": 60,
"13": 60,
"14": 60,
"21": 60,
"22": 60
},
"total": 6.75
},
"1068297": {
"group_name": "1w -test2",
"chunks": {
"15": 60,
"16": 60,
"17": 60,
"23": 60
},
"total": 4
},
"1074363": {
"group_name": "1w -test4",
"chunks": {
"17": 60
},
"total": 1
},
"1419138": {
"group_name": "1w -test7",
"chunks": [],
"total": 0
},
"1419140": {
"group_name": "1w -test3",
"chunks": [],
"total": 0
},
"1419145": {
"group_name": "Test 2",
"chunks": [],
"total": 0
},
"1419167": {
"group_name": "Test 3",
"chunks": [],
"total": 0
},
"1507657": {
"group_name": "1w -test6",
"chunks": [],
"total": 0
},
"1574713": {
"group_name": "API Position",
"chunks": [],
"total": 0
},
"location_name": "Company Default Location"
},
"574075": {
"1419141": {
"group_name": "Pozicija 2",
"chunks": [],
"total": 0
},
"1419142": {
"group_name": "Pozicija 3",
"chunks": [],
"total": 0
},
"1419143": {
"group_name": "Pozicija 4",
"chunks": [],
"total": 0
},
"location_name": "New Humanity"
},
"604850": {
"1491344": {
"group_name": "Test 2",
"chunks": [],
"total": 0
},
"1491345": {
"group_name": "Test 1",
"chunks": [],
"total": 0
},
"location_name": "Lokacija 1"
},
"613062": {
"1497176": {
"group_name": "Sample Position",
"chunks": [],
"total": 0
},
"1497177": {
"group_name": "Barista",
"chunks": [],
"total": 0
},
"1497178": {
"group_name": "Expeditor/Barback",
"chunks": [],
"total": 0
},
"1497179": {
"group_name": "Baker",
"chunks": [],
"total": 0
},
"1551136": {
"group_name": "API test position",
"chunks": [],
"total": 0
},
"1585960": {
"group_name": "Baker",
"chunks": [],
"total": 0
},
"location_name": "Abraco"
}
},
"total": 20.75
}
},
"token": "xxxxxxx"
}