Skip to main content
GET
Get a pricing rule

Authorizations

Authorization
string
header
required

Organization-scoped bearer credential: a customer API key (1club_sk_live_...) or an MCP OAuth access token.

Path Parameters

id
integer
required

1club pricing rule id

Response

The pricing rule

One rule of the organization's price list. It applies to the resources its scopes name (none means every area, coach and class) when every one of its conditions holds; when several rules match one slot, the lowest priority wins. Rules are silent: members see the resulting price, never the rule's name.

ruleId
integer
name
string
description
string | null
isActive
boolean
priority
integer

Lower wins.

adjustmentType
enum<string>
Available options:
percentage,
fixed,
absolute
percentageAdjustment
number | null

Set on percentage rules; null on the others.

fixedAmountAdjustment
number | null

The per-hour delta of a fixed rule or the hourly price of an absolute one; null on percentage rules.

scopes
object[]
conditions
object[]

One condition a booking must meet for the rule to apply. Weekday names are lowercase English; times are 24-hour HH:mm in the club timezone (24:00 ends a window at midnight); dates are YYYY-MM-DD.

createdAt
string<date-time>
updatedAt
string<date-time>