Skip to main content
Each class and workshop carries a pricingOptions array listing every way a client can pay for it. A studio can offer several at once — cash, credits, and a membership on the same class.

Reading value and currency together

value means different things depending on type, and currency tells you which reading applies:
  • With currencyvalue is a money amount in that currency. Zenamu accepts ISO 4217 currency codes. Common examples include CZK, EUR, USD, HUF, PLN, GBP, RON, SEK, DKK, and NOK; treat the list as open.
  • Without currencyvalue is a count of credits or entries, or is not meaningful at all.
currency is omitted entirely — not null — whenever an option is not money-based. This includes credit and entry counts, membership coverage, make-up sessions, and options with no monetary unit. Check for the key’s presence, not the type, to decide whether value is money.
Do not render value as a price without checking currency first. A credit option with value: 2 means two credits, not two crowns.

Types

Types do not determine whether currency appears. For example, credit_discount and benefit_surcharge_credit omit it, while a monetary membership_surcharge keeps it.
Treat the list as open. Zenamu can add types within v1, so render an unknown type using name rather than failing.

Naming and description

name is the studio’s own label — show it rather than deriving text from type. It can be null. description is an optional note, present on class pricing options only. Workshop options do not carry it.

Visibility

Only pricing options the studio marked visible are returned. A studio can offer an option in a currency you do not expect — read currency rather than assuming the studio’s default.

One way to pay for a class. See Pricing option for how to read type, value, and currency together.

id
integer

Numeric ID of the pricing option.

type
string

Which payment method the option represents. Current values: default, discount, credit, credit_discount, pass, benefit, benefit_surcharge, benefit_surcharge_credit, membership, membership_surcharge, single_course_session, and other. Treat the list as open: Zenamu can add values within v1, so render an unknown type using name rather than failing. See Pricing option.

name
string | null

Studio-chosen label, for example Single class.

value
number

A money amount in currency for money-based types, or a number of credits or entries for non-money options.

currency
string

ISO 4217 code for a money-based option. Common examples include CZK, EUR, USD, HUF, PLN, GBP, RON, SEK, DKK, and NOK; treat the list as open. Absent whenever the option is not money-based. Use presence of this field, not type, to interpret value as money.

Example:

"CZK"

description
string | null

Optional note. Present on class options only.