Get Shift Categories
Return all shift categories (shift types) for the unit identified by the API key.
Request
API key of the unit.
Pass an empty string ("") to ignore this filter, or a date to return only categories modified after that date. **Must** be set when includeTags is true.
When true, include the tags connected to the shift type.
When true, include the skills connected to the shift type.
curl -X POST 'https://api.quinyx.com/FlexForceWebServices.php' \
-H 'Content-Type: text/xml; charset=utf-8' \
-H 'SOAPAction: "uri:FlexForce/wsdlGetShiftCategories"' \
--data @- <<'EOF'
<?xml version="1.0" encoding="UTF-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="https://api.quinyx.com/soap/FlexForce">
<soap:Body>
<tns:wsdlGetShiftCategories>
<apiKey xsi:type="xsd:string">string</apiKey>
<lastModified xsi:type="xsd:string">string</lastModified>
<includeTags xsi:type="xsd:boolean">true</includeTags>
<includeSkills xsi:type="xsd:boolean">true</includeSkills>
</tns:wsdlGetShiftCategories>
</soap:Body>
</soap:Envelope>
EOFResponse
Array of ShiftCategory records.
A shift category (shift type) configured on a unit.
Primary key.
External id of the shift type, when set.
Display name of the shift category.
Unit (restaurant) id the category belongs to.
Default start time. Range 00:00:00–23:59:59.
Default end time.
0 hides breaks on the scheduling screen; 1 shows them.
First break start.
First break end.
Second break start.
Second break end.
Third break start.
Third break end.
Fourth break start.
Fourth break end.
Section id. Returns 1 when no section is assigned.
Cost centre id.
Salary type id.
Account id.
Project id.
External id of the account. Empty string when not set.
External id of the cost centre. Empty string when not set.
External id of the project. Empty string when not set.
External id of the salary type. Empty string when not set.
Whether the shift category is active.
Whether the shift category represents a free day.
Whether punched hours count towards this shift category.
Whether scheduled hours count towards this shift category.
Whether the shift type is shared to all units. Can only be set via wsdlUpdateShiftTypes on create/update; categories created in the GUI default to true.
Per-unit visibility list. Can only be set via wsdlUpdateShiftTypes.
Timestamp of the last update, ISO 8601.
Display name of the shift type category, when set.
Tags connected to the shift type (when includeTags = true).
Skills connected to the shift type (when includeSkills = true).
<?xml version="1.0" encoding="UTF-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="https://api.quinyx.com/soap/FlexForce">
<soap:Body>
<tns:wsdlGetShiftCategoriesResponse>
<return xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="tns:ShiftCategory[1]">
<item xsi:type="tns:ShiftCategory">
<id xsi:type="xsd:int">0</id>
<shiftTypeExtId xsi:type="xsd:string">string</shiftTypeExtId>
<name xsi:type="xsd:string">string</name>
<restId xsi:type="xsd:int">0</restId>
<begTime xsi:type="xsd:time">00:00:00</begTime>
<endTime xsi:type="xsd:time">00:00:00</endTime>
<breakType xsi:type="xsd:int">0</breakType>
<begBreak xsi:type="xsd:time">00:00:00</begBreak>
<endBreak xsi:type="xsd:time">00:00:00</endBreak>
<begBreak2 xsi:type="xsd:time">00:00:00</begBreak2>
<endBreak2 xsi:type="xsd:time">00:00:00</endBreak2>
<begBreak3 xsi:type="xsd:time">00:00:00</begBreak3>
<endBreak3 xsi:type="xsd:time">00:00:00</endBreak3>
<begBreak4 xsi:type="xsd:time">00:00:00</begBreak4>
<endBreak4 xsi:type="xsd:time">00:00:00</endBreak4>
<section xsi:type="xsd:int">0</section>
<costCentre xsi:type="xsd:int">0</costCentre>
<salaryType xsi:type="xsd:int">0</salaryType>
<accountNo xsi:type="xsd:int">0</accountNo>
<projectNo xsi:type="xsd:int">0</projectNo>
<accountNoExtCode xsi:type="xsd:string">string</accountNoExtCode>
<costCentreExtCode xsi:type="xsd:string">string</costCentreExtCode>
<projectNoExtCode xsi:type="xsd:string">string</projectNoExtCode>
<salaryTypeExtCode xsi:type="xsd:string">string</salaryTypeExtCode>
<onCall xsi:type="xsd:int">0</onCall>
<isActive xsi:type="xsd:boolean">true</isActive>
<isFreeDay xsi:type="xsd:boolean">true</isFreeDay>
<countPunchHours xsi:type="xsd:boolean">true</countPunchHours>
<countScheduleHours xsi:type="xsd:boolean">true</countScheduleHours>
<sharedToAllUnits xsi:type="xsd:boolean">true</sharedToAllUnits>
<scheduleCategoryUnits xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="tns:scheduleCategoryUnit[1]">
<item xsi:type="tns:scheduleCategoryUnit">
<externalUnitId xsi:type="xsd:string">string</externalUnitId>
<unitId xsi:type="xsd:int">0</unitId>
<visibleInWebpunch xsi:type="xsd:boolean">true</visibleInWebpunch>
</item>
</scheduleCategoryUnits>
<ts xsi:type="xsd:dateTime">2024-01-01T00:00:00Z</ts>
<shiftTypeCategoryName xsi:type="xsd:string">string</shiftTypeCategoryName>
<tags xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="tns:PayrollTag[1]">
<item xsi:type="tns:PayrollTag">
<tagCategoryName xsi:type="xsd:string">string</tagCategoryName>
<tagCategoryExternalId xsi:type="xsd:string">string</tagCategoryExternalId>
<tagName xsi:type="xsd:string">string</tagName>
<tagCode xsi:type="xsd:string">string</tagCode>
<tagExternalId xsi:type="xsd:string">string</tagExternalId>
<customFields xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="tns:TagCustomField[1]">
<item xsi:type="tns:TagCustomField">
<label xsi:type="xsd:string">string</label>
<value xsi:type="xsd:string">string</value>
</item>
</customFields>
</item>
</tags>
<skills xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="tns:ScheduleCategorySkill[1]">
<item xsi:type="tns:ScheduleCategorySkill">
<scatName xsi:type="xsd:string">string</scatName>
<skillDescription xsi:type="xsd:string">string</skillDescription>
</item>
</skills>
</item>
</return>
</tns:wsdlGetShiftCategoriesResponse>
</soap:Body>
</soap:Envelope>Change log
| Date | Description |
|---|---|
| 2019-12-02 | Added includeTags |
| 2020-02-14 | Added includeSkills |
| 2020-07-29 | Added isFreeDay, countPunchHours, countScheduleHours |