Docs

Get Reservation Cost

GET /Reservations/{reservationId}/cost

GET/Reservations/{reservationId}/cost

Prices one organization-level reservation: estimated from its need's plan, actual from the hours entered on it (null until there are any; isApproved says whether every shift is approved, unapprovedActualHours counts the hours of shifts still open). Each side prices every block at the state the person's whole week (every event plus shop work) put it in, with a per-state breakdown in segments. The card is the resource's default rate card, else its type's. When a side cannot be priced its cost is null and its reason says why; a top-level reason (an order hold, a quantity hold, no need, no card) means neither side prices. The reservationId comes from Reservations_GetOrganizationLevelReservations. Requires resource inventory read.

Path Parameters

FieldTypeRequiredDescription
reservationIduuidRequired

Response

FieldTypeDescription
estimatedGetReservationCostResponseCostAnswer
actualGetReservationCostResponseCostAnswer
reasonstring| null

GetReservationCostResponseCostAnswer

FieldTypeDescription
costnumber| null
chargenumber| null
periodstring| null
periodsBillednumber| null
flatAppliedboolean
minimumAppliedboolean
isApprovedboolean
unapprovedActualHoursnumber
reasonstring| null
segmentsGetReservationCostResponseCostSegment[]| null

GetReservationCostResponseCostSegment

FieldTypeDescription
stateNamestring| null
periodstring| null
hoursnumber
costnumber| null
chargenumber| null
isFallbackboolean