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
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| token | string | required | — | User session token |
| plan | string | optional | "monthly" | monthly or annual |
| currency | string | optional | "usd" | usd, brl, or eur |
| success_url | string | optional | Vanelton default | Redirect URL after successful subscription |
| cancel_url | string | optional | Vanelton default | Redirect URL if user cancels |
Test this endpoint
Headers
Body
Success response 200
{
"success": true,
"message": "Vanelton Pass subscription link created successfully.",
"plan": "annual",
"subscription_url": "https://checkout.stripe.com/pay/cs_live_..."
}
Errors
| Code | Message |
|---|---|
| 400 | Invalid 'plan'. Expected 'monthly' or 'annual'. |
| 401 | Invalid or expired token. |