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
| Field | Type | Required | Description |
|---|
| orgId | uuid | Required | |
| procurementResourceId | uuid | Required | |
Query Parameters
| Field | Type | Required | Description |
|---|
| resourceId | uuid | Optional | |
Response
| Field | Type | Description |
|---|
| amount | number| null | |
| period | string| null | |
| source | string| null | |
| rateCardName | string| null | |
| amountsVisible | boolean | |
| estimate | GetProcurementResourceRatePreviewResponseEstimateInfo | |
GetProcurementResourceRatePreviewResponseEstimateInfo
| Field | Type | Description |
|---|
| amount | number| null | |
| period | string| null | |