Docs

Copy Rate Card To Event

POST /events/{eventId}/rate-cards

POST/events/{eventId}/rate-cards

Copies one of the type's rate cards (ResourceTypes_GetTypeRateCards), or one of this event's cards for the type (ResourceTypes_GetEventResourceTypes), into a new card only this event uses, and returns its id. The org card is unchanged; set a line to the new card with Procurements_UpdateProcurementResource. Send resourceTypeId and copyFromRateCardId for that. For a booking's custom rate send procurementResourceId (a need on this event) and either reservationId (a reservation on that need) or resourceId (the person about to be booked) instead: the server copies the card the booking costs at, as ResourceTypes_ResolveEventRateCardSource returns it (or a blank card with one row at 0 when none resolves), into a card of the booking's card type (the person's own type for a substitute, else the need's), then applies rates (each row matched by state and period is updated, others added, missing ones removed; a resetDefinitionId names one of the source card's) and minimums. Set the booking to it with Reservations_AddResourceReservation or Reservations_UpdateReservationRateCard; the card is never set on the type, a variant, the need or a line. A sent resourceTypeId must equal the booking's card type. Copying a card that is not one of the event's needs resource type read and order amounts (403 otherwise). Requires Procurement.Edit at the event.

Path Parameters

FieldTypeRequiredDescription
eventIduuidRequired

Request Body

FieldTypeRequiredDescription
resourceTypeIduuidOptional
copyFromRateCardIduuidOptional
namestringOptional
procurementResourceIduuidOptional
reservationIduuidOptional
resourceIduuidOptional
ratesCopyRateCardToEventRequestRate[]Optional
minimumsCopyRateCardToEventRequestMinimumsInputOptional

CopyRateCardToEventRequestRate

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

CopyRateCardToEventRequestMinimumsInput

FieldTypeDescription
costMinimumAmountnumber| null
chargeMinimumAmountnumber| null
costMinimumUnitsnumber| null
chargeMinimumUnitsnumber| null
minimumUnitsPeriodstring| null
periodResetDefinitionIduuid| null
minimumAmountResetDefinitionIduuid| null
minimumUnitsResetDefinitionIduuid| null

Response

FieldTypeDescription
iduuid