Skip to main content
POST
/
subscriptions
/
checkout
Create Checkout Session
curl --request POST \
  --url https://api.veryfront.com/subscriptions/checkout \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "type": "professional",
  "cycle": "monthly",
  "success_url": "<string>",
  "cancel_url": "<string>"
}
'
{
  "checkout_url": "<string>",
  "session_id": "<string>"
}

Authorizations

Authorization
string
header
required

Authentication via JWT token or API key. JWT: Get from Veryfront dashboard. API Key: Format "vf__" - create via /api-keys endpoint.

Body

application/json
type
enum<string>
required

Subscription tier

Available options:
starter,
professional,
enterprise
Example:

"professional"

cycle
enum<string>
required

Billing cycle

Available options:
monthly,
yearly
Example:

"monthly"

success_url
string<uri>

URL to redirect to after successful payment

cancel_url
string<uri>

URL to redirect to if payment is cancelled

Response

Checkout session created

checkout_url
string<uri>
required
session_id
string