POST shift/send
Sends a shift immediately which is to be communicated to employees via one or more of three available channels (SMS, Email, and IVR). Once deployed, employees attempt to claim the shift by responding to an SMS with a shift PIN code, clicking a link in an email or pressing 1 on an IVR call. Managers whose details have been sent with this request are alerted via SMS or email when the shift has been successfully filled by Shiftex.| numberOfPositions |
The number of available positions. Example Values: 1 |
| employees optional |
This parameter is an array of Employee objects. The Employee object is structured as follows:
Example Values:
[{ "id": "gfgg0",
"emails": ["jose.fraga@jda.com"],
"ivrNumbers": ["6473387588"],
"firstName": "Jose",
"lastName": "Fraga"
},
{ "id": "gfgg1",
"emails": ["javier.carmen@jda.com"],
"ivrNumbers": ["7864006756"],
"firstName": "Javier",
"lastName": "Carmen"
}]
|
|
managers
optional |
This parameter is an array of Manager objects. The Manager object is structured as follows:
|
|
fillMechanic
optional |
Property used to specify the desired fill mechanic logic
This property is set to:
|
|
callBackURL
optional |
Used to specify which URL to call back with notifications on shift events. |
|
comment
optional |
Comments to be added to the end of shift messages. Following tokens can be used in the Comment. They will be replaced with information in shift when message is sent to each employee. #@#EMP_PIN#@# PIN number used for IVR calls #@#NAME#@# Employee’s first name |
Example Request
POST http://shiftex.vortexconnectstage.com/api/shift/send HTTP/1.1
Accept: application/json; version=2.0
Content-Type: application/json
sessionId: wORaLP4wa8MbhK3psvNrEif3Cc8a1wtQvYgwTv52qnQ=
Content-Length: 1250
Host: localhost
{
"storeLocation" : {"name": "5W Med Surg", "timeZone": "Etc/GMT+5"},
"startOn": "2014-05-14T09:00:00",
"endOn": "2014-05-14T10:01:00",
"expireOn": "2014-05-14T10:20:00",
"numberOfPositions": 2,
"employees": [{ "id": "gfgg0",
"emails": ["jose.fraga@jda.com"],
"ivrNumbers": ["6473387588"],
"firstName": "Jose",
"lastName": "Fraga"
},
{ "id": "gfgg1",
"emails": ["javier.carmen@jda.com"],
"ivrNumbers": ["7864006756"],
"firstName": "Javier",
"lastName": "Carmen"
}
],
"managers": [{ "id": "1000",
"email": "manager@jda.com",
"notifyOnEmployeeClaim": "true",
"notifyOnWindowClose": "true",
"notifyOnShiftClose": "true"
},
{ "id": "1001",
"email": "manager2@gmail.com",
"notifyOnEmployeeClaim": "true",
"notifyOnWindowClose": "true",
"notifyOnShiftClose": "true"
},
{ "id": "1002",
"email": "manager3@jda.com",
"notifyOnEmployeeClaim": "true",
"notifyOnWindowClose": "true",
"notifyOnShiftClose": "true"
}
],
"comment": "This is text comment",
"fillMechanic": 4,
"callBackURL": "http://yourURL/serviceName"
}
{"shiftId":"8a62d290-688d-41b8-a5a0-db8613835e9d"}