reports.schedule

SUPPORTED METHODS:

GET

ParametersTypeDescription
token (required)Valid token
start_date (required)dateStart date
end_date (required)dateEnd date
type (required)enum (schedule_summary, shift_confirmed, crib_sheet, shift_exchanges, open_shifts, position_summary, shift_acknowledgement)Type

schedule_summary: Schedule summary
shift_confirmed: Confirmed shifts
crib_sheet: Crib sheet
shift_exchanges: Shift exchanges
open_shifts: Open shifts
position_summary: Position summary
location (accepted)integerLocation id
schedule (accepted)integerSchedule id
employee (accepted)integerEmployees

Array of employees ids (eg. "234,563,770")
skill (accepted)integerSkill id
with_statuses (accepted)integerWith or without statuses

null : without statuses
isset: with statuses
options (accepted)integer1: Order by name
deductbreaks (accepted)integerDeduct breaks
remote_site (accepted)integerRemote site id
include_emp_per_pos (accepted)integerInclude employees per position
acknowledgement_status (accepted)varcharAcknowledgement status

DOCUMENTATION

GET
Retrives a list of schedule reports betwen selected dates.
Level 5 is required (all users can fetch this module)

--

Example Request:

{
        "method":"GET",
        "module":"reports.schedule",
        "request":{
           "start_date":"May 19, 2017",
           "end_date":"May 21, 2017",
           "type":"open_shifts"
        }
     }

Example Response:

{  
    "status":1,
    "data":{  
        "82185":{  
            "id":"82185",
            "series":"82015",
            "created":"1311728514",
            "published":"1339668653",
            "edited":"1311728514",
            "deleted":"0",
            "recurs":"1",
            "recur_rule":"2",
            "schedule":"866",
            "store":"11",
            "type":"1",
            "needed":"1",
            "have":"0",
            "working":"0",
            "user":"2",
            "start_date":{  
                "id":"1116",
                "month":"5",
                "day":"19",
                "year":"2017",
                "weekday":"Sat",
                "mname":"May",
                "week":"20",
                "dayid":7,
                "formatted":"May 19, 2017"
            },
            "end_date":{  
                "id":"1116",
                "month":"5",
                "day":"19",
                "year":"2017",
                "weekday":"Sat",
                "mname":"May",
                "week":"20",
                "dayid":7,
                "formatted":"May 19, 2017"
            },
            "start":"11 am",
            "end":"5 pm",
            "length":"0",
            "title":"",
            "location":"0",
            "notes":"",
            "confirmed":"0",
            "schedule_name":"Development",
            "schedule_color":"657050",
            "employee":[  
                null
            ]
        },
        "93829":{  
            "id":"93829",
            "series":"0",
            "created":"1337631224",
            "published":"1339668653",
            "edited":"1337631231",
            "deleted":"0",
            "recurs":"0",
            "recur_rule":"0",
            "schedule":"32410",
            "store":"11",
            "type":"1",
            "needed":"3",
            "have":"0",
            "working":"0",
            "user":"5148",
            "start_date":{  
                "id":"1117",
                "month":"5",
                "day":"20",
                "year":"2017",
                "weekday":"Sun",
                "mname":"May",
                "week":"20",
                "dayid":1,
                "formatted":"May 20, 2017"
            },
            "end_date":{  
                "id":"1117",
                "month":"5",
                "day":"20",
                "year":"2017",
                "weekday":"Sun",
                "mname":"May",
                "week":"20",
                "dayid":1,
                "formatted":"May 20, 2017"
            },
            "start":"8 am",
            "end":"4 pm",
            "length":"0",
            "title":"",
            "location":"0",
            "notes":"",
            "confirmed":"0",
            "schedule_name":"Cash",
            "schedule_color":"570026",
            "employee":[  
                null
            ]
        },
        "93901":{  
            "id":"93901",
            "series":"0",
            "created":"1337632834",
            "published":"1339668653",
            "edited":"1337934987",
            "deleted":"0",
            "recurs":"0",
            "recur_rule":"0",
            "schedule":"32408",
            "store":"11",
            "type":"1",
            "needed":"5",
            "have":"0",
            "working":"0",
            "user":"4910",
            "start_date":{  
                "id":"1119",
                "month":"5",
                "day":"22",
                "year":"2017",
                "weekday":"Tue",
                "mname":"May",
                "week":"21",
                "dayid":3,
                "formatted":"May 22, 2017"
            },
            "end_date":{  
                "id":"1119",
                "month":"5",
                "day":"22",
                "year":"2017",
                "weekday":"Tue",
                "mname":"May",
                "week":"21",
                "dayid":3,
                "formatted":"May 22, 2017"
            },
            "start":"8 am",
            "end":"5 pm",
            "length":"0",
            "title":"",
            "location":"0",
            "notes":"",
            "confirmed":"0",
            "schedule_name":"Admin\/meetings",
            "schedule_color":"484948",
            "employee":[  
                null
            ]
        }
    },
    "token":"xxxxxxx"
}