Docs

Check In Unplanned

POST /Reservations/check-in-unplanned

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

FieldTypeRequiredDescription
orderIduuidOptional
newOrderCheckInUnplannedRequestNewOrderInfoOptional
procurementIduuidOptional
resourceTypeIduuidOptional
resourceVariantIduuidOptional
quantitynumberOptional
arrivedAtdate-timeOptional

CheckInUnplannedRequestNewOrderInfo

FieldTypeDescription
namestring| null
sourcestring| null
orderTypeIduuid| null
valuesCheckInUnplannedRequestNewOrderInfoAttributeValueInput[]| null
intakeAnswersCheckInUnplannedRequestNewOrderInfoIntakeAnswerInput[]| null
roleOccupantsCheckInUnplannedRequestNewOrderInfoRoleOccupantsInput[]| null

CheckInUnplannedRequestNewOrderInfoAttributeValueInput

FieldTypeDescription
attributeIduuid
valueJsonElement| null
expiresOnJsonElement| null
itemExpiriesJsonElement| null

CheckInUnplannedRequestNewOrderInfoIntakeAnswerInput

FieldTypeDescription
questionIduuid
valueJsonElement| null

CheckInUnplannedRequestNewOrderInfoRoleOccupantsInput

FieldTypeDescription
roleDefinitionIduuid
crewIdsuuid[]| null
collaboratorRecordIdsuuid[]| null
resourceIdsuuid[]| null
procurementResourceIdsuuid[]| null

Response

FieldTypeDescription
orderIduuid
orderLineItemIduuid
procurementResourceIduuid
reservationIduuid
attendanceIduuid