Docs

Add Rate

POST /rate-cards/{rateCardId}/rates

POST/rate-cards/{rateCardId}/rates

Required Tokens

FieldTypeRequiredDescription
BearerAuthorization: Bearer <api-key>OptionalYour API key. Pass it as the Bearer token on every request.
Event tokenx-Event-TokenOptionalRun **Get Tokens** in the Authorization folder, or call `GET /Events/{eventId}/authorize` manually.

Adds a rate row: what one resource state costs and charges per period.

Requires EventSettings permission on the event.
Event scoping: This endpoint does not include {eventId} in the URL. The event is determined automatically from your x-Event-Token.

Path Parameters

FieldTypeRequiredDescription
rateCardIdGuidRequiredThe rate card.

Request Body

FieldTypeRequiredDescription
resourceStateIdGuidRequiredThe state this row prices.
periodstringRequiredOne of `Hour`, `Day`, `Week`, `Month`, `Flat`.
costFixeddecimalRequiredFixed cost per period.
costVariabledecimalRequiredVariable cost per period.
chargeFixeddecimalRequiredFixed charge per period.
chargeVariabledecimalRequiredVariable charge per period.
coversHoursdecimal?OptionalHours one period covers.
costMinimumBillableUnitsdecimal?OptionalCost floor on this row, in its own units.
chargeMinimumBillableUnitsdecimal?OptionalCharge floor on this row, in its own units.
resetDefinitionIdGuid?OptionalOne of this card's reset definitions.

On a composite type's card, cost fields are ignored in pricing: cost rolls up from the components.

Response

201 Created. No response body.

Error Codes

HTTP StatusDescription
400Invalid arguments, a duplicate state and period, or a clock from another card.
404Rate card or state not found.