Allows you to upload planned of punched work shifts. This is interesting when combined with number of visitors or receipts - are the sales people working during the busiest times?
If you are also recording breaks, you should send multiple entries per shift and just have suitable absence codes in place. We'll combine the shifts based on shift ids.
POST https://api.zoined.com/workShifts?dryRun=false&separator=%3B&encoding=utf-8
Identifier of sales person / employee working. Required for punched shifts
Whether this shift is calculated in active work time, default is true
Type of the shift. Freeform, will be available as dimension in portal.
Currency for the purchase price as ISO 4217 currency code. Required if multiple currencies are used.
Identifier of the source system this data is from. Needed when mapping between source system identifiers and master identifiers are used.
- Mock serverhttps://zapi-api.zoined.com/_mock/workShifts
- https://api.zoined.comhttps://api.zoined.com/workShifts
curl -i -X POST \
'https://zapi-api.zoined.com/_mock/workShifts?dryRun=false&separator=%3B&encoding=utf-8' \
-H 'Authorization: Bearer <YOUR_token_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"shift_id": "123",
"organisation_id": "234",
"salesperson_id": "345",
"department_id": "5401",
"scheduled": false,
"productive": true,
"active_work_time": true,
"start_date": "2016-01-01",
"start_time": "15:00:00",
"shift_type": "Chef",
"salary_type": "Evening compensation",
"staff_cost": 500,
"breaks_duration": 0.5,
"breaks_cost": 40,
"overtime_duration": 2,
"overtime_cost": 120,
"absence_code": "BREAK",
"currency": "EUR",
"custom_field_1": "XYZ",
"custom_field_2": "XYZ",
"custom_field_3": "XYZ",
"custom_field_4": "XYZ",
"custom_field_5": "XYZ",
"custom_metric_1": 1,
"custom_metric_2": 100,
"custom_metric_3": 2.2,
"custom_metric_4": 1.05,
"custom_metric_5": 10000,
"source_system": "ABCDEF",
"duration": 8.15
}'{ "status": "OK", "msg": "1 entity added" }