POST/Reservations/check-in-unplanned
Checks in a resource that arrived with nothing reserved for it. Creates a need on the named procurement and puts it on
an event order: on an External order it adds the line and checks in the order's own hold; on an Internal order it books
a reservation from the arrival time to the end of that day and checks it in. Goods check in as one delivery of the
quantity. Send orderId (an event order that accepts line edits) or newOrder to create one with the check-in. Undo with
Reservations_UndoShiftAttendance on the returned attendanceId; the need, line and order stay. procurementId comes from
Procurements_GetProcurements, resourceTypeId and resourceVariantId from the organization's resource types, orderId from
Orders_GetOrders.
Request Body
| Field | Type | Required | Description |
|---|
| orderId | uuid | Optional | |
| newOrder | CheckInUnplannedRequestNewOrderInfo | Optional | |
| procurementId | uuid | Optional | |
| resourceTypeId | uuid | Optional | |
| resourceVariantId | uuid | Optional | |
| quantity | number | Optional | |
| arrivedAt | date-time | Optional | |
CheckInUnplannedRequestNewOrderInfo
| Field | Type | Description |
|---|
| name | string| null | |
| source | string| null | |
| orderTypeId | uuid| null | |
| values | CheckInUnplannedRequestNewOrderInfoAttributeValueInput[]| null | |
| intakeAnswers | CheckInUnplannedRequestNewOrderInfoIntakeAnswerInput[]| null | |
| roleOccupants | CheckInUnplannedRequestNewOrderInfoRoleOccupantsInput[]| null | |
| Field | Type | Description |
|---|
| attributeId | uuid | |
| value | JsonElement| null | |
| expiresOn | JsonElement| null | |
| itemExpiries | JsonElement| null | |
| Field | Type | Description |
|---|
| questionId | uuid | |
| value | JsonElement| null | |
| Field | Type | Description |
|---|
| roleDefinitionId | uuid | |
| crewIds | uuid[]| null | |
| collaboratorRecordIds | uuid[]| null | |
| resourceIds | uuid[]| null | |
| procurementResourceIds | uuid[]| null | |
Response
| Field | Type | Description |
|---|
| orderId | uuid | |
| orderLineItemId | uuid | |
| procurementResourceId | uuid | |
| reservationId | uuid | |
| attendanceId | uuid | |