Docs

Resolve Event Rate Card Source

GET /events/{eventId}/rate-cards/resolve

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

FieldTypeRequiredDescription
eventIduuidRequired

Query Parameters

FieldTypeRequiredDescription
procurementResourceIduuidOptional
resourceIduuidOptional
reservationIduuidOptional

Response

FieldTypeDescription
sourceRateCardIduuid| null
namestring| null
amountnumber| null
periodstring| null
sourcestring| null
rateCardNamestring| null
amountsVisibleboolean
cardReadableboolean
estimateGetEventRateCardSourceResponseEstimateInfo
ratesGetEventRateCardSourceResponseRate[]| null
minimumsGetEventRateCardSourceResponseMinimumsInfo
resetDefinitionsGetEventRateCardSourceResponseResetDefinition[]| null

GetEventRateCardSourceResponseEstimateInfo

FieldTypeDescription
amountnumber| null
periodstring| null

GetEventRateCardSourceResponseRate

FieldTypeDescription
resourceStateIduuid
stateNamestring| null
periodstring| null
costFixednumber| null
costVariablenumber| null
chargeFixednumber| null
chargeVariablenumber| null
coversHoursnumber| null
costMinimumBillableUnitsnumber| null
chargeMinimumBillableUnitsnumber| null
resetDefinitionIduuid| null

GetEventRateCardSourceResponseMinimumsInfo

FieldTypeDescription
costMinimumAmountnumber| null
chargeMinimumAmountnumber| null
costMinimumUnitsnumber| null
chargeMinimumUnitsnumber| null
minimumUnitsPeriodstring| null

GetEventRateCardSourceResponseResetDefinition

FieldTypeDescription
iduuid
namestring| null
resetTypestring| null
blockTypeIduuid| null
minDurationnumber| null
durationUnitstring| null
periodstring| null
periodStartDaystring| null