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
| Field | Type | Required | Description |
|---|
| reservationId | uuid | Required | |
Response
| Field | Type | Description |
|---|
| estimated | GetReservationCostResponseCostAnswer | |
| actual | GetReservationCostResponseCostAnswer | |
| reason | string| null | |
GetReservationCostResponseCostAnswer
| Field | Type | Description |
|---|
| cost | number| null | |
| charge | number| null | |
| period | string| null | |
| periodsBilled | number| null | |
| flatApplied | boolean | |
| minimumApplied | boolean | |
| isApproved | boolean | |
| unapprovedActualHours | number | |
| reason | string| null | |
| segments | GetReservationCostResponseCostSegment[]| null | |
GetReservationCostResponseCostSegment
| Field | Type | Description |
|---|
| stateName | string| null | |
| period | string| null | |
| hours | number | |
| cost | number| null | |
| charge | number| null | |
| isFallback | boolean | |