Docs

Get Rate Preview

GET /organizations/{orgId}/procurement-resources/{procurementResourceId}/rate-preview

GET/organizations/{orgId}/procurement-resources/{procurementResourceId}/rate-preview

Returns what a person would cost on a resource need, resolved as Fulfilled resolves it (their own card, the event's cards for the need, a linked card, then the organization's; a resource of another type than the need is costed as a substitute at its own card), beside the need's own estimate. Use it on a booking step to show the person's rate before reserving with Reservations_AddResourceReservation. amount and period are the card's row at the period the need's plan bills; source is the step that chose the card (person, personLinked, line, eventVariant, eventType, variant, type or none) and rateCardName its name. amountsVisible is false without order amounts, and then amount, period and estimate are null; amount and rateCardName are also null when the card is not one of the event's and the caller lacks resource type read at the organization. procurementResourceId comes from Organizations_GetResourceNeeds and resourceId from the Organization API's Resources_GetResources. Requires organization basic access.

Path Parameters

FieldTypeRequiredDescription
orgIduuidRequired
procurementResourceIduuidRequired

Query Parameters

FieldTypeRequiredDescription
resourceIduuidOptional

Response

FieldTypeDescription
amountnumber| null
periodstring| null
sourcestring| null
rateCardNamestring| null
amountsVisibleboolean
estimateGetProcurementResourceRatePreviewResponseEstimateInfo

GetProcurementResourceRatePreviewResponseEstimateInfo

FieldTypeDescription
amountnumber| null
periodstring| null