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
| Field | Type | Required | Description |
|---|
| eventId | uuid | Required | |
Request Body
| Field | Type | Required | Description |
|---|
| resourceTypeId | uuid | Optional | |
| copyFromRateCardId | uuid | Optional | |
| name | string | Optional | |
| procurementResourceId | uuid | Optional | |
| reservationId | uuid | Optional | |
| resourceId | uuid | Optional | |
| rates | CopyRateCardToEventRequestRate[] | Optional | |
| minimums | CopyRateCardToEventRequestMinimumsInput | Optional | |
CopyRateCardToEventRequestRate
| Field | Type | Description |
|---|
| resourceStateId | uuid | |
| period | string| null | |
| costFixed | number | |
| costVariable | number | |
| chargeFixed | number | |
| chargeVariable | number | |
| coversHours | number| null | |
| costMinimumBillableUnits | number| null | |
| chargeMinimumBillableUnits | number| null | |
| resetDefinitionId | uuid| null | |
| Field | Type | Description |
|---|
| costMinimumAmount | number| null | |
| chargeMinimumAmount | number| null | |
| costMinimumUnits | number| null | |
| chargeMinimumUnits | number| null | |
| minimumUnitsPeriod | string| null | |
| periodResetDefinitionId | uuid| null | |
| minimumAmountResetDefinitionId | uuid| null | |
| minimumUnitsResetDefinitionId | uuid| null | |
Response
| Field | Type | Description |
|---|
| id | uuid | |