Skip to main content
POST
cURL

Authorizations

Authorization
string
header
required

Public API access token issued by /public/v1/oauth/token. Example: Authorization: Bearer fspt_....

Headers

Idempotency-Key
string
required

Required for Public API write requests. Reusing the same key with the same method, path, and body replays the stored successful response; reusing it with a different request returns 409 idempotency.conflict.

Required string length: 1 - 200
Example:

"booking-create-20260714-001"

Body

application/json
name
string
required
Maximum string length: 160
description
string
Maximum string length: 5000
price
number

Price including VAT.

Required range: x >= 0
currency
enum<string>
Available options:
EUR,
USD,
GBP
vatPercentage
number
Required range: 0 <= x <= 100
visibility
enum<string>
Available options:
Visible,
VisibleInStore,
VisibleInStoreAndApp,
VisibleInApp,
HideProduct
trial
boolean
period
enum<string>
Available options:
Payment per month,
Payment per week,
Payment per 2 weeks,
Payment per 4 weeks,
Payment per 8 weeks,
Payment per 2 months,
Payment per 3 months,
Payment per 6 months,
Payment per year
credits
integer
Required range: x >= 0
creditCalendar
enum<string>
Available options:
,
unlimited,
per week,
per 2 weeks,
per 4 weeks,
per month,
custom
creditValidity
object
contractPeriod
integer
Required range: x >= 0
contractPeriodUnit
enum<string>
Available options:
Days,
Weeks,
Months,
Years
autoRenew
boolean
cancellationNoticePeriod
enum<string>
Available options:
No Notification,
1 Month,
2 Month,
3 Month
assignCredits
boolean
allowNegativeCredits
boolean
maxNegativeCredits
integer
Required range: x >= 0

Response

201 - application/json

membership products created

data
object
required
meta
object
required