Reports
Finished shifts#
List finished shifts.
See: Filtering
Response
Response body:
| Attribute | Type | Description | Nullable |
|---|---|---|---|
| id | Integer | A unique identifier of the shift | false |
| user_id | Integer | ID of the user who worked the shift | false |
| user_login | String | Username of the user who worked the shift | false |
| user_org_level | String | A level of the user who worked the shift. Possible values are COMPANY, DIVISION, REGION, SHOP | false |
| user_position | String | A position of the user who worked the shift | true |
| user_display_name | String | Name of the user who worked the shift. Returns Given name + Surname, or login. | false |
| division_id | Integer | ID of the division of the store where the shift took place. | false |
| division_name | String | Name of the division of the store where the shift took place. | false |
| region_id | Int | ID of the region of the store where the shift took place. | false |
| region_name | String | Name of the region of the store where the shift took place. | false |
| shop_id | String | ID of the store where the shift took place. | false |
| shop_sap | String | Number of the store where the shift took place. | false |
| shop_locality | String | Name of the store where the shift took place. | true |
| shop_address | String | Address of the store where the shift took place. | true |
| start_time | LocalDateTime | Date and time of the start of the shift in UTC. | false |
| start_time_offset | Integer | UTC offset of the timezone where the user was at the start of the shift. (in minutes) | false |
| finish_time | LocalDateTime | Date and time of the end of the shift in UTC. | false |
| finish_time_offset | Integer | UTC offset of the timezone where the user was at the start of the shift. (in minutes) | false |
| duration | Integer | Duration of the shift in seconds. | false |
| comment | String | A comment of the user who worked the shift. | true |
| start_location_lat | Float | The latitude the user was at at the start of the shift | true |
| start_location_lon | Float | The longitude the user was at at the start of the shift | true |
| start_location_distance | Integer | The distance between the user who worked the shift and the store at the start of the shift. | true |
| start_location_match | Boolean | A flag that indicates the distance between the store and the start of shift coordinates does not exceed the permissible value | true |
| finish_location_lat | String | The latitude of the user at at the end of the shift | true |
| finish_location_lon | String | The longitude of the user at the end of the shift | true |
| finish_location_distance | String | The distance between the user who worked the shift and the store at the end of the shift. | true |
| finish_location_match | String | A flag that indicates the distance between the store and the end of shift coordinates does not exceed the permissible value | true |
| auto_finished | String | A flag that indicates the shift was completed automatically. | false |
Examples
200 OK