subscriptions

Create Subscription

Record a subscription window. Overlaps are refused by the database.

The EXCLUDE constraint is what makes "the current subscription" a well-defined question: two windows covering one instant would be two answers with nothing to say which binds.

post/admin/payers/{user_id}/subscription

Request

  • Base URL: https://app.zeno-works.ch (the document declares no server; this is the origin it was published from)
  • URL: https://app.zeno-works.ch/admin/payers/{user_id}/subscription
  • Auth: none declared

Path parameters

user_idstring required

Headers

authorizationstring nullable

Cookies

access_tokenstring nullable

Request body

plan_codestring required
billing_intervalstring
promo_codestring nullable
referral_codestring nullable
monthly_limitinteger required
valid_fromstring date-time required
valid_tostring date-time nullable
notestring nullable

Response

Successful Response

idstring required
payer_user_idstring required
plan_codestring required
price_amountstring required
list_price_amountstring required
discount_amountstring required
currencystring required
billing_intervalstring required
promo_codestring nullable
referral_codestring nullable
monthly_limitinteger required
valid_fromstring date-time required
valid_tostring date-time nullable
notestring nullable

Changes

No recorded changes to this operation across all 1 revision of this API.