Skip to main content

Create a studio membership plan

Owner or admin. At most 3 active plans. Next attaches Stripe Product and Price ids after save.
1 min read
post/profiles/{studioId}/membership/plans
Request example
Response
post/profiles/{studioId}/membership/plans

Authorization

Authorizationstringheaderrequired#
Better Auth session token. Go resolves the token in the session table and maps it to users.id via auth_user_id. The profile is taken from the path param :studioId when applicable.

Path parameters

studioIdstringrequired#

Body

application/json
namestringrequired#
descriptionstring#
amountCentsintegerrequired#

Range: >= 1

billingIntervalenum<string>required#
Options:monthyear
perksenum<string>[]#
sortOrderinteger#
stripeProductIdstring#
stripePriceIdstring#
isActiveboolean#

Responses

application/json
Created.
dataobjectrequired#
Show child attributes
idstringrequired#
studioIdstringrequired#
namestringrequired#
descriptionstring#
amountCentsintegerrequired#
currencyenum<string>required#
Options:eur
billingIntervalenum<string>required#
Options:monthyear
stripeProductIdstring#
stripePriceIdstring#
perksenum<string>[]required#
isActivebooleanrequired#
sortOrderintegerrequired#
createdAtstringrequired#
updatedAtstringrequired#
request_idstring#