GET/events/{eventId}/rate-cards/resolve
Returns the card a booking's custom rate would start from, with its rates, minimums and reset definitions, so a
form can pre-fill them before ResourceTypes_CopyRateCardToEvent creates the custom card. The source is the card the
booking costs at now (the reservation's own rate card first when reservationId is sent, else the person's rate,
resolved as Fulfilled resolves it), else the default card of the booking's type, else none, and then rates
suggests one Day row at 0. amount, period, source (a step such as override, person, personLinked, eventType or
type) and rateCardName are the booking's current rate; estimate is the need's own rate; name is a suggested name
for the custom card. amountsVisible is false without order amounts, and then amount, estimate and every amount in
rates and minimums are null. procurementResourceId comes from Procurements_GetProcurement and must be on this event;
resourceId (a resource from Resources_GetResources) names the person for a new booking; reservationId comes from
Reservations_GetReservations and must be on the need. Requires Procurement.Edit at the event.
Path Parameters
| Field | Type | Required | Description |
|---|
| eventId | uuid | Required | |
Query Parameters
| Field | Type | Required | Description |
|---|
| procurementResourceId | uuid | Optional | |
| resourceId | uuid | Optional | |
| reservationId | uuid | Optional | |
Response
| Field | Type | Description |
|---|
| sourceRateCardId | uuid| null | |
| name | string| null | |
| amount | number| null | |
| period | string| null | |
| source | string| null | |
| rateCardName | string| null | |
| amountsVisible | boolean | |
| cardReadable | boolean | |
| estimate | GetEventRateCardSourceResponseEstimateInfo | |
| rates | GetEventRateCardSourceResponseRate[]| null | |
| minimums | GetEventRateCardSourceResponseMinimumsInfo | |
| resetDefinitions | GetEventRateCardSourceResponseResetDefinition[]| null | |
GetEventRateCardSourceResponseEstimateInfo
| Field | Type | Description |
|---|
| amount | number| null | |
| period | string| null | |
GetEventRateCardSourceResponseRate
| Field | Type | Description |
|---|
| resourceStateId | uuid | |
| stateName | string| null | |
| period | string| null | |
| costFixed | number| null | |
| costVariable | number| null | |
| chargeFixed | number| null | |
| chargeVariable | number| null | |
| coversHours | number| null | |
| costMinimumBillableUnits | number| null | |
| chargeMinimumBillableUnits | number| null | |
| resetDefinitionId | uuid| null | |
GetEventRateCardSourceResponseMinimumsInfo
| Field | Type | Description |
|---|
| costMinimumAmount | number| null | |
| chargeMinimumAmount | number| null | |
| costMinimumUnits | number| null | |
| chargeMinimumUnits | number| null | |
| minimumUnitsPeriod | string| null | |
GetEventRateCardSourceResponseResetDefinition
| Field | Type | Description |
|---|
| id | uuid | |
| name | string| null | |
| resetType | string| null | |
| blockTypeId | uuid| null | |
| minDuration | number| null | |
| durationUnit | string| null | |
| period | string| null | |
| periodStartDay | string| null | |