Console
Pay

Create Pass Subscription

Create a Stripe Checkout session for the Vanelton Pass — Vanelton Media's own subscription plan (monthly or annual). Returns a subscription_url to redirect the user to.

POST /api/pay/create_pass_subscription.php
Requires Authorization: AppID:AppKey + user token
This is not Create Subscription — it doesn't take an itemKey or a debug flag. You pick a plan, and the server resolves the right item and always decides Stripe test-vs-live mode itself (it follows Vanelton Media's own "development mode" setting, never the caller).

Request body

FieldTypeRequiredDefaultDescription
tokenstringrequiredUser session token
planstringoptional"monthly"monthly or annual
currencystringoptional"usd"usd, brl, or eur
success_urlstringoptionalVanelton defaultRedirect URL after successful subscription
cancel_urlstringoptionalVanelton defaultRedirect URL if user cancels

Success response 200

{
  "success": true,
  "message": "Vanelton Pass subscription link created successfully.",
  "plan": "annual",
  "subscription_url": "https://checkout.stripe.com/pay/cs_live_..."
}

Errors

CodeMessage
400Invalid 'plan'. Expected 'monthly' or 'annual'.
401Invalid or expired token.